Connection test method, protocol stack instrument, simulation platform equipment and device
The time slot number and half frame number of the protocol stack instrument are updated through the simulation platform device, which solves the problem of mismatch in processing speed and improves the effect of connection testing.
Patent Information
- Application Number
- CN202410107043.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-25
- Publication Date
- 2025-07-25
AI Technical Summary
The processing speed of the simulation platform equipment and the protocol stack instrument does not match, resulting in poor connection testing results.
The uplink data packet is sent by the simulation platform device. The protocol stack instrument updates the slot number and half-frame number based on the uplink data packet, performs parsing and generates downlink data packets, realizing the processing speed matching between the protocol stack instrument and the simulation platform device.
Even if the processing speed of simulation platform equipment is slow, the processing speed matching between the protocol stack instrument and simulation platform equipment can be achieved, improving the connection test effect.
Smart Images

Figure CN120378909A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technologies, and in particular, to a connection test method, a protocol stack instrument, a simulation platform device, and an apparatus. Background Art
[0002] Before the chip of a terminal is taped out, it is necessary to test it through a protocol stack instrument to determine whether the access and data transmission processes between the terminal and the protocol stack instrument can be completed normally.
[0003] Currently, in the testing process, first, a simulated terminal is deployed on a simulation platform device, and then the local clock of the protocol stack instrument is used to drive the interaction process between the protocol stack instrument and the simulated terminal. However, since the simulation platform device is usually deployed on a server and its processing speed is slow, it is difficult to match the processing speed of the protocol stack instrument, resulting in poor connection test effects. Summary of the Invention
[0004] This application provides a connection test method, a protocol stack instrument, a simulation platform device, and an apparatus to solve the technical problem of poor connection test effects caused by the mismatch between the processing speeds of the simulation platform device and the protocol stack instrument.
[0005] In a first aspect, this application provides a connection test method applied to a protocol stack instrument. The method includes:
[0006] Receiving an uplink data packet sent by a simulation platform device;
[0007] Based on the uplink data packet, updating the current first time slot number and first half frame number of the protocol stack instrument to obtain a second time slot number and a second half frame number;
[0008] Based on the second time slot number and the second half frame number, parsing and processing the uplink data packet to obtain an uplink data stream;
[0009] Based on the second time slot number and the second half frame number, scrambling the downlink data stream to generate a downlink data packet;
[0010] Sending the downlink data packet to the simulation platform device;
[0011] The uplink data stream and the downlink data stream are used to test the simulation platform device.
[0012] In a possible implementation manner, the protocol stack instrument includes a first Ethernet interface. Receiving an uplink data packet sent by a simulation platform device includes:
[0013] Receiving an uplink data packet sent by a simulation platform device through the first Ethernet interface.
[0014] In a possible implementation, based on the uplink data packet, update the current first time slot number and first half-frame number of the protocol stack instrument to obtain a second time slot number and a second half-frame number, including:
[0015] Generate a first time slot interrupt signal based on the uplink data packet;
[0016] Based on the first time slot interrupt signal, update the first time slot number and the first half-frame number to obtain a second time slot number and a second half-frame number.
[0017] In a possible implementation, the protocol stack instrument includes an EPLD module. Based on the first time slot interrupt signal, update the first time slot number and the first half-frame number to obtain a second time slot number and a second half-frame number, including:
[0018] Send the first time slot interrupt signal to the EPLD module;
[0019] The EPLD module, after receiving the first time slot interrupt signal, increments the first time slot number by one to obtain a second time slot number; based on the half-frame to which the second time slot number belongs, obtain the second half-frame number.
[0020] In a possible implementation, based on the second time slot number and the second half-frame number, parse and process the uplink data packet to obtain an uplink data code stream, including:
[0021] Perform scrambling processing on the first base sequence of the protocol stack instrument based on the second time slot number and the second half-frame number to obtain a first scrambled base sequence;
[0022] Parse and process the uplink data packet based on the first scrambled base sequence to obtain an uplink data code stream.
[0023] In a possible implementation, the protocol stack instrument further includes a processing module. Based on the second time slot number and the second half-frame number, perform scrambling processing on the downlink data code stream to generate a downlink data packet, including:
[0024] The EPLD module generates a second time slot interrupt signal based on the first time slot interrupt signal, and sends the second time slot interrupt signal, the second time slot number, and the second half-frame number to the processing module;
[0025] After receiving the second time slot interrupt signal, the processing module generates first configuration information based on the second time slot number and the second half-frame number; perform scrambling processing on the downlink data code stream based on the first configuration information to generate a downlink data packet.
[0026] In a possible implementation, send the downlink data packet to the simulation platform device, including:
[0027] Send the downlink data packet to the simulation platform device through the first Ethernet interface.
[0028] In a second aspect, the present application provides a connection test method, which is applied to a simulation platform device. The method includes:
[0029] Scrambling an uplink data stream based on a second time slot number and a second half-frame number to generate an uplink data packet;
[0030] Sending the uplink data packet to a protocol stack instrument, where the uplink data packet is used to update the current first time slot number and first half-frame number of the protocol stack instrument;
[0031] Receiving a downlink data packet sent by the protocol stack instrument;
[0032] Parsing the downlink data packet based on the second time slot number and the second half-frame number to obtain a downlink data stream. The uplink data stream and the downlink data stream are used to test the simulation platform device.
[0033] In a possible implementation manner, the simulation platform device includes a second Ethernet interface. Sending the uplink data packet to the protocol stack instrument includes:
[0034] Sending the uplink data packet to the protocol stack instrument through the second Ethernet interface.
[0035] In a possible implementation manner, scrambling the uplink data stream based on the second time slot number and the second half-frame number to generate an uplink data packet includes:
[0036] Generating second configuration information based on the second time slot number and the second half-frame number;
[0037] Scrambling the uplink data stream based on the second configuration information to generate an uplink data packet.
[0038] In a possible implementation manner, parsing the downlink data packet based on the second time slot number and the second half-frame number to obtain a downlink data stream includes:
[0039] Scrambling a second basic sequence of the simulation platform device based on the second time slot number and the second half-frame number to obtain a second scrambled basic sequence;
[0040] Parsing the downlink data packet based on the second scrambled basic sequence to obtain a downlink data stream.
[0041] In a possible implementation manner, receiving the downlink data packet sent by the protocol stack instrument includes:
[0042] Receiving the downlink data packet sent by the protocol stack instrument through the second Ethernet interface.
[0043] In a third aspect, the present application provides a protocol stack instrument, including a memory, a transceiver, and a processor;
[0044] A memory for storing computer programs; a transceiver for transmitting and receiving data under the control of a processor; a processor for reading the computer programs in the memory and performing the following operations:
[0045] Receiving an uplink data packet sent by a simulation platform device;
[0046] Based on the uplink data packet, updating the current first time slot number and first half-frame number of the protocol stack instrument to obtain a second time slot number and a second half-frame number;
[0047] Based on the second time slot number and the second half-frame number, parsing the uplink data packet to obtain an uplink data stream;
[0048] Based on the second time slot number and the second half-frame number, scrambling the downlink data stream to generate a downlink data packet;
[0049] Sending the downlink data packet to the simulation platform device;
[0050] The uplink data stream and the downlink data stream are used to test the simulation platform device.
[0051] In a possible implementation manner, the protocol stack instrument includes a first Ethernet interface for receiving the uplink data packet sent by the simulation platform device, including:
[0052] Receiving the uplink data packet sent by the simulation platform device through the first Ethernet interface.
[0053] In a possible implementation manner, based on the uplink data packet, updating the current first time slot number and first half-frame number of the protocol stack instrument to obtain a second time slot number and a second half-frame number, including:
[0054] Generating a first time slot interrupt signal based on the uplink data packet;
[0055] Based on the first time slot interrupt signal, updating the first time slot number and the first half-frame number to obtain a second time slot number and a second half-frame number.
[0056] In a possible implementation manner, the protocol stack instrument includes an EPLD module. Based on the first time slot interrupt signal, updating the first time slot number and the first half-frame number to obtain a second time slot number and a second half-frame number, including:
[0057] Sending the first time slot interrupt signal to the EPLD module;
[0058] The EPLD module, after receiving the first time slot interrupt signal, increments the first time slot number by one to obtain the second time slot number; and obtains the second half-frame number based on the half-frame to which the second time slot number belongs.
[0059] In a possible implementation manner, based on the second time slot number and the second half frame number, the uplink data packet is parsed to obtain an uplink data stream, including:
[0060] Scramble the first base sequence of the protocol stack instrument based on the second time slot number and the second half frame number to obtain a first scrambled base sequence;
[0061] Parse the uplink data packet based on the first scrambled base sequence to obtain an uplink data stream.
[0062] In a possible implementation manner, the protocol stack instrument further includes a processing module, which scrambles the downlink data stream based on the second time slot number and the second half frame number to generate a downlink data packet, including:
[0063] Control the EPLD module to generate a second time slot interrupt signal based on the first time slot interrupt signal, and send the second time slot interrupt signal, the second time slot number, and the second half frame number to the processing module;
[0064] After receiving the second time slot interrupt signal, the processing module generates first configuration information based on the second time slot number and the second half frame number; based on the first configuration information, the processing scrambles the downlink data stream to generate a downlink data packet.
[0065] In a possible implementation manner, sending a downlink data packet to the simulation platform device includes:
[0066] Send the downlink data packet to the simulation platform device through the first Ethernet interface.
[0067] In a fourth aspect, the present application provides a simulation platform device, including a memory, a transceiver, and a processor;
[0068] The memory is used to store a computer program; the transceiver is used to send and receive data under the control of the processor; the processor is used to read the computer program in the memory and perform the following operations:
[0069] Scramble the uplink data stream based on the second time slot number and the second half frame number to generate an uplink data packet;
[0070] Send the uplink data packet to the protocol stack instrument, and the uplink data packet is used to update the current first time slot number and the first half frame number of the protocol stack instrument;
[0071] Receive the downlink data packet sent by the protocol stack instrument;
[0072] Parse the downlink data packet based on the second time slot number and the second half frame number to obtain a downlink data stream, and the uplink data stream and the downlink data stream are used to test the simulation platform device.
[0073] In a possible implementation, the simulation platform device includes a second Ethernet interface for sending an uplink data packet to a protocol stack instrument, including:
[0074] Sending an uplink data packet to a protocol stack instrument through the second Ethernet interface.
[0075] In a possible implementation, scrambling the uplink data stream based on a second time slot number and a second half-frame number to generate an uplink data packet, including:
[0076] Generating second configuration information based on the second time slot number and the second half-frame number;
[0077] Scrambling the uplink data stream based on the second configuration information to generate an uplink data packet.
[0078] In a possible implementation, parsing a downlink data packet based on a second time slot number and a second half-frame number to obtain a downlink data stream, including:
[0079] Scrambling a second base sequence of the simulation platform device based on the second time slot number and the second half-frame number to obtain a second scrambled base sequence;
[0080] Parsing the downlink data packet based on the second scrambled base sequence to obtain a downlink data stream.
[0081] In a possible implementation, receiving a downlink data packet sent by a protocol stack instrument, including:
[0082] Receiving a downlink data packet sent by a protocol stack instrument through the second Ethernet interface.
[0083] In a fifth aspect, the present application provides a connection test device, including:
[0084] A first receiving module for receiving an uplink data packet sent by a simulation platform device;
[0085] An updating module for updating a current first time slot number and a first half-frame number of a protocol stack instrument based on the uplink data packet to obtain a second time slot number and a second half-frame number;
[0086] A first processing module for parsing the uplink data packet based on the second time slot number and the second half-frame number to obtain an uplink data stream;
[0087] A second processing module for scrambling the downlink data stream based on the second time slot number and the second half-frame number to generate a downlink data packet;
[0088] A first sending module for sending a downlink data packet to a simulation platform device;
[0089] The upstream data stream and the downstream data stream are used to test the simulation platform device.
[0090] In a possible implementation manner, the first receiving module is specifically configured to:
[0091] Receive the upstream data packet sent by the simulation platform device through the first Ethernet interface.
[0092] In a possible implementation manner, the updating module is specifically configured to:
[0093] Generate a first time slot interrupt signal based on the upstream data packet;
[0094] Update the first time slot number and the first half frame number based on the first time slot interrupt signal to obtain a second time slot number and a second half frame number.
[0095] In a possible implementation manner, the updating module is specifically configured to:
[0096] After receiving the first time slot interrupt signal, increment the first time slot number by one to obtain a second time slot number; obtain the second half frame number based on the half frame to which the second time slot number belongs.
[0097] In a possible implementation manner, the first processing module is specifically configured to:
[0098] Scramble the first base sequence of the protocol stack instrument based on the second time slot number and the second half frame number to obtain a first scrambled base sequence;
[0099] Parse the upstream data packet based on the first scrambled base sequence to obtain the upstream data stream.
[0100] In a possible implementation manner, the first processing module is specifically configured to:
[0101] Generate a second time slot interrupt signal based on the first time slot interrupt signal;
[0102] After generating the second time slot interrupt signal, generate first configuration information based on the second time slot number and the second half frame number; scramble the downstream data stream based on the first configuration information to generate a downstream data packet.
[0103] In a possible implementation manner, the first sending module is specifically configured to:
[0104] Send the downstream data packet to the simulation platform device through the first Ethernet interface.
[0105] In a sixth aspect, the present application provides a connection test device, including:
[0106] A third processing module, configured to scramble the upstream data stream based on the second time slot number and the second half frame number to generate an upstream data packet;
[0107] A second sending module, configured to send an uplink data packet to a protocol stack instrument, where the uplink data packet is used to update the current first time slot number and first half frame number of the protocol stack instrument;
[0108] A second receiving module, configured to receive a downlink data packet sent by the protocol stack instrument;
[0109] A fourth processing module, configured to parse and process the downlink data packet based on a second time slot number and a second half frame number to obtain a downlink data stream, where the uplink data stream and the downlink data stream are used to test a simulation platform device.
[0110] In a possible implementation manner, the second sending module is specifically configured to:
[0111] Send an uplink data packet to the protocol stack instrument through a second Ethernet interface.
[0112] In a possible implementation manner, the third processing module is specifically configured to:
[0113] Generate second configuration information based on the second time slot number and the second half frame number;
[0114] Perform scrambling processing on the uplink data stream based on the second configuration information to generate an uplink data packet.
[0115] In a possible implementation manner, the fourth processing module is specifically configured to:
[0116] Perform scrambling processing on a second basic sequence of a simulation platform device based on the second time slot number and the second half frame number to obtain a second scrambled basic sequence;
[0117] Parse and process the downlink data packet based on the second scrambled basic sequence to obtain a downlink data stream.
[0118] In a possible implementation manner, the second receiving module is specifically configured to:
[0119] Receive a downlink data packet sent by the protocol stack instrument through a second Ethernet interface.
[0120] In a seventh aspect, the present application provides a processor-readable storage medium storing a computer program, where the computer program is used to cause a computer to execute the connection test method of any item in the first aspect, or the computer program is used to cause a computer to execute the connection test method of any item in the second aspect.
[0121] The connection test method, protocol stack instrument, simulation platform device and apparatus provided by this application. First, the simulation platform device sends an uplink data packet to the protocol stack instrument. The protocol stack instrument updates the current first time slot number and first half frame number of the protocol stack instrument based on the uplink data packet to obtain a second time slot number and a second half frame number, and parses and processes the uplink data packet based on the second time slot number and the second half frame number to obtain an uplink data stream; based on the second time slot number and the second half frame number, scramble the downlink data stream to generate a downlink data packet, and send the downlink data packet to the simulation platform device. The solution of this application realizes the update and promotion of timing through the uplink data packet sent by the simulation platform device. The protocol stack instrument updates the time slot number and half frame number only when it receives the uplink data packet sent by the simulation platform device. Therefore, even when the processing speed of the simulation platform device is slow, it can still achieve the matching of the processing speeds between the protocol stack instrument and the simulation platform device, and test the simulation platform device through the uplink data stream and the downlink data stream, which can improve the effect of connection testing. BRIEF DESCRIPTION OF THE DRAWINGS
[0122] In order to more clearly illustrate the technical solutions in this application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of this application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0123] Figure 1 Schematic diagram of the connection between a protocol stack instrument and an analog terminal Figure 1 ;
[0124] Figure 2 Schematic diagram of the connection between a protocol stack instrument and an analog terminal Figure 2 ;
[0125] Figure 3 Flowchart of the connection test method provided by the embodiment of this application;
[0126] Figure 4 Schematic diagram of the NR non-real-time protocol stack system architecture provided by the embodiment of this application;
[0127] Figure 5 Interaction signaling diagram between the protocol stack instrument and the simulation platform device provided by the embodiment of this application;
[0128] Figure 6 Schematic diagram of data interaction between the protocol stack instrument and the simulation platform device provided by the embodiment of this application;
[0129] Figure 7Schematic diagram of comparing the time slot numbers of the protocol stack instrument and the simulation platform device provided in the embodiments of the present application;
[0130] Figure 8 Schematic diagram of the structure of a protocol stack instrument provided in the embodiments of the present application;
[0131] Figure 9 Schematic diagram of the structure of a simulation platform device provided in the embodiments of the present application;
[0132] Figure 10 Schematic diagram of the structure of a connection test device provided in the embodiments of the present application;
[0133] Figure 11 Schematic diagram of the structure of a connection test device provided in the embodiments of the present application. Detailed implementation manners
[0134] To make the objectives, technical solutions and advantages of the present application clearer, the technical solutions in the present application will be clearly and completely described below with reference to the accompanying drawings in the present application. Apparently, the described embodiments are some but not all of the embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present application without creative efforts shall fall within the protection scope of the present application.
[0135] Protocol stack instruments are usually deployed on the network device side for interaction with terminals. When a protocol stack instrument is docked with a real terminal, it can complete random access and subsequent service tests based on the 3rd Generation Partnership Project (3GPP) protocol.
[0136] Before the internal chip of a real terminal is taped out, corresponding connection tests need to be completed. Specifically, first, an analog terminal is deployed on the simulation platform, and then the protocol stack instrument is connected to the analog terminal deployed on the simulation platform, so as to realize the test of the analog terminal.
[0137] There are two ways to connect the protocol stack instrument to the analog terminal, which will be introduced below with reference to the accompanying drawings.
[0138] Figure 1 Schematic diagram of the connection between a protocol stack instrument and an analog terminal Figure 1 , such as Figure 1As shown in the figure, between the protocol stack instrument and the simulated terminal deployed on the simulation platform device, verification of the simulated terminal is completed through radio frequency connection or air interface connection. Radio frequency modules are deployed on both the protocol stack instrument and the simulated terminal, and the radio frequency modules of the protocol stack instrument and the simulated terminal can interact to achieve connection. The instrument protocol stack generates the clock and the time slot numbers and frame numbers required by the New Radio (NR) protocol according to its own local oscillator or Global Positioning System (GPS) clock, and completes the protocol random access process and subsequent tests. This connection method is mostly used for verification after the terminal is taped out, and there are also cases of terminal logic verification before tape-out.
[0139] Figure 2 It is a schematic diagram of the connection between a protocol stack instrument and a simulated terminal Figure 2 , such as Figure 2 shown, between the protocol stack instrument and the simulated terminal deployed on the simulation platform device, they are connected through Base Band in-phasequadrature (BBIQ) signals. This connection method does not use radio frequency modules and directly connects through real-time BBIQ data. The instrument protocol stack still generates the clock and the time slot numbers and frame numbers required by the NR protocol according to its own local oscillator or GPS clock, and completes the protocol random access process and subsequent tests.
[0140] However, whether it is based on radio frequency connection or air interface connection, or based on BBIQ signal connection, the current method of connecting and testing simulated terminals through protocol stack instruments belongs to a real-time system, which requires the local clock of the protocol stack instrument to drive the operation of the entire system and strictly implement the uplink and downlink processing of the NR system according to the 3GPP protocol. However, the simulated terminal deployed on the simulation platform device runs relatively slowly and it is difficult to dock well with the timing of existing instruments.
[0141] Based on this, the embodiments of the present application provide a connection test method, which drives the normal operation of the entire protocol stack timing system through the time domain data from the simulated terminal deployed on the simulation platform device, and finally completes the random access and subsequent service tests.
[0142] Figure 3 It is a flowchart of the connection test method provided by the embodiments of the present application. This method is applied to a protocol stack instrument, such as Figure 3 shown, this method includes:
[0143] S31, receive the uplink data packet sent by the simulation platform device.
[0144] The simulation platform device is used to deploy simulated terminals, while the protocol stack instrument is deployed on the network device. The interaction between the simulation platform device and the protocol stack instrument is used to test the communication process between the terminal and the network device, so as to determine whether the interaction between the terminal and the network device can meet the 3GPP protocol.
[0145] After the protocol stack instrument and the simulation platform device establish a connection, the simulation platform device sends an uplink data packet to the protocol stack instrument for uplink data transmission.
[0146] S32, based on the uplink data packet, update the current first time slot number and first half frame number of the protocol stack instrument to obtain a second time slot number and a second half frame number.
[0147] In the embodiment of the present application, the uplink data packet is used to drive the operation of the entire protocol timing. After the protocol stack instrument receives the uplink data packet, the protocol stack instrument updates the timing based on the uplink data packet, specifically including the update of the time slot number and the update of the half frame number.
[0148] The current time slot number of the protocol stack instrument is the first time slot number, and the current half frame number is the first half frame number. The first time slot number is used to indicate the current time slot of the protocol stack instrument, and the first half frame number is used to indicate the current half frame of the protocol stack instrument. After receiving the uplink data packet, the current time slot of the protocol stack instrument needs to be updated, advancing one time slot, so as to obtain the updated second time slot number. Correspondingly, the first half frame number also needs to be updated based on the update of the time slot to obtain the updated second half frame number.
[0149] S33, based on the second time slot number and the second half frame number, parse and process the uplink data packet to obtain the uplink data code stream.
[0150] After updating the time slot number and the half frame number, based on the second time slot number and the second half frame number, the protocol stack instrument parses and processes the uplink data packet to obtain the uplink data code stream. The parsing process may include a series of processes such as channel estimation, equalization, and decoding.
[0151] S34, based on the second time slot number and the second half frame number, scramble the downlink data code stream to generate a downlink data packet.
[0152] The uplink data packet realizes the update of the timing information of the protocol stack instrument. Therefore, based on the updated timing information - the second time slot number and the second half frame number, the downlink data code stream can be scrambled to generate a downlink data packet.
[0153] S35, send the downlink data packet to the simulation platform device.
[0154] The uplink data code stream and the downlink data code stream are used to test the simulation platform device.
[0155] After generating the downlink data packet, the protocol stack instrument sends the downlink data packet to the simulation platform device, and the simulation platform device receives the downlink data packet. Thus, a round of data interaction is completed between the protocol stack instrument and the simulation platform device. Among them, the uplink data stream and the downlink data stream are used to test the simulation platform device, to test whether data interaction can be carried out normally between the simulation platform device and the protocol stack instrument, whether it meets the requirements of the 3GPP protocol, and so on.
[0156] The connection test method provided by the embodiments of the present application is as follows: First, the simulation platform device sends an uplink data packet to the protocol stack instrument. The protocol stack instrument updates the current first time slot number and the first half-frame number of the protocol stack instrument based on the uplink data packet to obtain a second time slot number and a second half-frame number, and based on the second time slot number and the second half-frame number, parses and processes the uplink data packet to obtain an uplink data stream; based on the second time slot number and the second half-frame number, scramble the downlink data stream to generate a downlink data packet, and send the downlink data packet to the simulation platform device. The solution of the embodiments of the present application realizes the update and promotion of the timing through the uplink data packet sent by the simulation platform device. The protocol stack instrument updates the time slot number and the half-frame number only when it receives the uplink data packet sent by the simulation platform device. Therefore, even when the processing speed of the simulation platform device is slow, it is possible to achieve the matching of the processing speeds between the protocol stack instrument and the simulation platform device. By testing the simulation platform device through the uplink data stream and the downlink data stream, the effect of the connection test can be improved.
[0157] Based on any of the above embodiments, the solutions of the embodiments of the present application will be further introduced below with reference to the accompanying drawings.
[0158] Please refer to Figure 1 , for the method of connecting between the protocol stack instrument and the analog terminal through radio frequency, both the protocol stack instrument and the analog terminal need to deploy radio frequency modules, which not only increases the verification variables but also increases the verification cost. At the same time, the connection of radio frequency is mostly used for verification after the terminal chip is taped out, increasing the risk of tape-out failure.
[0159] In order to implement connection testing without increasing verification variables, the embodiments of the present application provide an NR non-real-time protocol stack system, which realizes data transmission between the protocol stack instrument and the analog terminal based on the Ethernet protocol. The framework of the NR non-real-time protocol stack system will be introduced below with reference to Figure 4 the accompanying drawings.
[0160] Figure 4 FIG. is a schematic diagram of the architecture of the NR non-real-time protocol stack system provided by the embodiments of the present application. As shown in Figure 4 , the NR non-real-time protocol stack system includes a protocol stack instrument and a simulation platform device. The simulation platform device is used to provide a terminal simulation environment, and an analog terminal is deployed on the simulation platform device.
[0161] The NR non-real-time protocol stack system is mainly based on simulation platform devices, supplemented by protocol stack instruments. The simulation platform devices need to drive the entire protocol timing operation.
[0162] In the NR non-real-time protocol stack system, the protocol stack instruments and the simulation platform devices do not interact through the radio frequency unit, but through the Ethernet interface (Ethereum-Input / Output, ETH-IQ) to implement interaction by using the Ethernet protocol.
[0163] Specifically, as Figure 4 shown, the protocol stack instrument includes a first Ethernet interface, and the simulation platform device includes a second Ethernet interface. Between the protocol stack instrument and the simulation platform device, BBIQ data is transmitted through the first Ethernet interface and the second Ethernet interface.
[0164] In the NR non-real-time protocol stack system, the interaction mode between the protocol stack instrument and the simulation platform device is driven by the simulation platform device. Specifically, the simulation platform device sends uplink BBIQ data through the second Ethernet interface. After the protocol stack instrument receives the uplink BBIQ data, it generates a time slot interrupt signal. The protocol stack instrument relies on the time slot interrupt signal to drive the entire protocol stack to work until it sends downlink data of one time slot and sends it to the simulation platform device through the first Ethernet interface. In the above process, after the protocol stack instrument receives the time slot interrupt signal, it triggers the protocol stack to start, drives the operation of the protocol stack time slot number and the system frame number, and then drives the protocol stack instrument to send data of 500 us. This process repeats to complete the protocol data interaction between the protocol stack and the terminal, and complete the terminal access and service testing.
[0165] In the above embodiment, the architecture of the NR non-real-time protocol stack system is introduced in combination with Figure 4 the following. Based on the architecture of the NR non-real-time protocol stack system, the specific interaction process between the protocol stack instrument and the simulation platform device is introduced.
[0166] Figure 5 The interaction signaling diagram between the protocol stack instrument and the simulation platform device provided by the embodiment of the present application is as Figure 5 shown, which altogether includes three stages, namely the connection establishment stage, the data interaction stage, and the disconnection stage.
[0167] In the connection establishment stage, the simulation platform device sends a handshake request to the protocol stack instrument to request to establish a connection with the protocol stack instrument. After the protocol stack instrument receives the handshake request, the protocol stack instrument sends a handshake response to the simulation platform device. When the simulation platform device receives the handshake response, a connection is established between the simulation platform device and the protocol stack instrument.
[0168] In the data interaction phase, it is a process in which the simulation platform device sends an upstream data packet to the protocol stack instrument and the simulation platform device sends a downstream data packet to the protocol stack instrument. For the process of data interaction, reference can be made to Figure 6 the relevant introduction.
[0169] Figure 6 FIG. is a schematic diagram of data interaction between the protocol stack instrument and the simulation platform device provided by an embodiment of the present application. As Figure 6 shown, after a connection is established between the protocol stack instrument and the simulation platform device, first, the simulation platform device scrambles the upstream data stream based on the second time slot number and the second half-frame number to generate an upstream data packet, and sends the upstream data packet to the protocol stack instrument. Among them, the upstream data packet is used to update the current first time slot number and the first half-frame number of the protocol stack instrument.
[0170] Specifically, the simulation platform device first generates second configuration information based on the second time slot number and the second half-frame number, and scrambles the upstream data stream based on the second configuration information to generate an upstream data packet.
[0171] The second configuration information may include relevant parameters such as the second scrambling base sequence of the simulation platform device, the time domain position, the frequency domain position, and the size of the upstream data stream of the upstream data stream. Among them, the second scrambling base sequence is obtained by scrambling the second base sequence of the simulation platform device based on the second time slot number and the second half-frame number.
[0172] The protocol stack instrument includes a first Ethernet interface, and the simulation platform device includes a second Ethernet interface. Data interaction can be performed between the first Ethernet interface and the second Ethernet interface based on the Ethernet protocol. Optionally, the simulation platform device sends an upstream data packet to the protocol stack instrument through the second Ethernet interface. Correspondingly, the protocol stack instrument receives the upstream data packet sent by the simulation platform device through the first Ethernet interface.
[0173] After receiving the upstream data packet, the protocol stack instrument needs to update the current first time slot number and the first half-frame number of the protocol stack instrument based on the upstream data packet. Specifically, after receiving the upstream data packet, the protocol stack instrument first generates a first time slot interrupt signal based on the upstream data packet, and the first time slot interrupt signal is used to generate a time slot interrupt. After generating the first time slot interrupt signal, based on the first time slot interrupt signal, the first time slot number and the first half-frame number are updated to obtain the second time slot number and the second half-frame number.
[0174] Please refer to Figure 6, the protocol stack instrument includes an Erasable Programmable Logic Device (EPLD) module. In the process of updating the first time slot number and the first half frame number based on the first time slot interrupt signal, the protocol stack instrument first sends the first time slot interrupt signal to the EPLD module. After receiving the first time slot interrupt signal, the EPLD module increments the first time slot number by one to obtain a second time slot number, and obtains a second half frame number based on the half frame to which the second time slot number belongs.
[0175] The first time slot number is used to indicate the current first time slot of the protocol stack instrument, that is, the current protocol stack timing, while the second time slot number is used to indicate the second time slot, and the second time slot is the next time slot of the first time slot. The first half frame number is the half frame to which the first time slot number belongs. One half frame includes 5 ms and corresponds to 5 time slots. The second half frame number is the half frame to which the second time slot number belongs. The first time slot indicated by the first time slot number and the second time slot indicated by the second time slot number belong to different time slots. The half frame indicated by the first half frame number and the half frame indicated by the second half frame number may belong to the same half frame or different half frames. By updating the first time slot number and the first half frame number through the simulation platform device, the control of the protocol stack timing is realized, and the protocol stack instrument is driven to work.
[0176] Optionally, after obtaining the second time slot number and the second half frame number, the protocol stack instrument parses and processes the uplink data packet to obtain an uplink data stream.
[0177] Specifically, after obtaining the second time slot number and the second half frame number, the protocol stack instrument scrambles the first base sequence of the protocol stack instrument based on the second time slot number and the second half frame number to obtain a first scrambled base sequence. In the embodiment of the present application, the first base sequence is the base sequence of the first reference signal of the protocol stack instrument, and the first reference signal is the reference signal of the protocol stack instrument defined by the 3GPP protocol.
[0178] After obtaining the first scrambled base sequence, the protocol stack instrument parses and processes the uplink data packet based on the first scrambled base sequence to obtain an uplink data stream. For example, the protocol stack instrument can perform channel estimation, equalization, decoding, etc. on the uplink data packet based on the first scrambled base sequence, and finally obtain an uplink data stream.
[0179] Optionally, the protocol stack instrument further includes a processing module. After updating the first time slot number and the first half frame number, the EPLD module generates a second time slot interrupt signal based on the first time slot interrupt signal. Correspondingly, the EPLD module sends the second time slot interrupt signal, the second time slot number, and the second half frame number to the processing module, and the second time slot number and the second half frame number are used to control the protocol stack timing.
[0180] Such as Figure 6As shown in the figure, the processing module includes a main control board, Layer 2 (L2), and a Physical Layer (PL). Among them, the main control board further includes Operations and Maintenance (OM), High Layer (HL), and Adaptive Data Layer (ADL). L2 further includes Packet Data Convergence Protocol (PDCP), Radio Link Control (RLC), and Media Access Control (MAC). PL further includes X86, Field-Programmable Gate Array (FPGA), and Ethernet interface.
[0181] Specifically, after receiving the second time slot interruption signal, the processing module generates first configuration information based on the second time slot number and the second half-frame number, and performs scrambling processing on the downlink data stream based on this first configuration information to generate downlink data packets.
[0182] In the embodiments of the present application, there may be multiple processing modules included in the protocol stack instrument. The EPLD module sends the second time slot interruption signal, the second time slot number, and the second half-frame number to each processing module, thereby ensuring that the timing of all processing modules in the protocol stack instrument is consistent. In the process of generating and sending downlink data packets, it involves the pre-configuration of underlying parameters and the subsequent generation and transmission of front-end data, and these processes are completed in different processing modules. The pre-configuration of underlying parameters is the configuration of the first configuration information. The first configuration information may include the first scrambling base sequence scrambled by the second time slot number and the second half-frame number, may include the time domain position and frequency domain position of the downlink data packet, may include the size of the downlink data stream, and the configuration of these parameters may be performed in different processing modules. If the timing of different processing modules in the protocol stack instrument is inconsistent, it will lead to missed detection or missed transmission of data.
[0183] After generating the first configuration information, scrambling processing is performed on the downlink data stream based on the first configuration information to generate downlink data packets. Among them, the scrambling process may include coding processing, may include processing the downlink data stream through the time domain position and frequency domain position of the downlink data packet, and so on.
[0184] After generating a downlink data packet, send the downlink data packet to the simulation platform device. Optionally, the protocol stack instrument sends the downlink data packet to the simulation platform device through the first Ethernet interface. Correspondingly, the simulation platform device receives the downlink data packet sent by the protocol stack instrument through the second Ethernet interface, and based on the second time slot number and the second half-frame number, parses and processes the downlink data packet to obtain a downlink data stream. The parsing process may include a series of processes such as channel estimation, equalization, and decoding.
[0185] Specifically, the simulation platform device performs scrambling processing on the second basic sequence of the simulation platform device based on the second time slot number and the second half-frame number to obtain a second scrambled basic sequence. In the embodiment of the present application, the second basic sequence is the basic sequence of the second reference signal of the simulation platform device, and the second reference signal is the reference signal of the simulation platform device defined by the 3GPP protocol. After obtaining the second scrambled basic sequence, the simulation platform device parses and processes the downlink data packet based on the second scrambled basic sequence to obtain a downlink data stream. For example, the simulation platform device can perform channel estimation, equalization, decoding, etc. on the downlink data packet based on the second scrambled basic sequence, and finally obtain a downlink data stream.
[0186] Figure 7 This is a schematic diagram of the comparison of the time slot numbers of the protocol stack instrument and the simulation platform device provided in the embodiment of the present application. As Figure 7 shown, different time slots can perform different types of interactions. For example, time slots 1, 2, 3, and 8 are used for the transmission of synchronization packets (sync), time slot 4 is used for the transmission of broadcast signals, time slot 7 is used for the transmission of random access messages 1 (Msg1) to 4 (Msg4), time slot 9 is used for paging, and time slot 10 is used for service interaction. Since the time slot number of the protocol stack instrument is updated based on the uplink data packet sent by the simulation platform device, and the simulation platform device also updates its own time slot number when sending the uplink data packet, the time slot numbers of the simulation platform device and the protocol stack instrument are synchronized.
[0187] After the protocol stack instrument and the simulation platform device establish a connection, the simulation platform device drives the protocol stack instrument to initiate BBIQ data interaction. The protocol stack instrument does not drive the service based on clock resources and waits for the simulation platform device to send sample data to sense the system time progress. Whether there is uplink data at this time or not, the simulation platform device will send uplink data to inform the instrument of the system time progress, and the protocol stack instrument will also feedback the downlink data of the simulation platform device to respond to the system timing tracking. Including the TDD mode, regardless of the uplink and downlink ratio stages, the simulation platform device and the protocol stack instrument need to transmit data to complete the simulation system timing advancement and response, which has nothing to do with the actual service.
[0188] In the disconnection phase, as Figure 5As shown in the figure, the simulation platform device sends a disconnection request packet to the protocol stack instrument to request disconnection from the protocol stack instrument. After the protocol stack instrument receives the disconnection request packet, the protocol stack instrument sends a disconnection response packet to the simulation platform device. When the simulation platform device receives the disconnection response packet, the connection between the simulation platform device and the protocol stack instrument is disconnected.
[0189] In summary, the solution of the embodiment of the present application can update and promote the timing by the uplink data packet sent by the simulation platform device, can match the processing speeds between the protocol stack instrument and the simulation platform device, and can improve the connection test effect by testing the simulation platform device with the uplink data stream and the downlink data stream. Further, the solution of the embodiment of the present application does not require the deployment of a radio frequency module, realizes data interaction based on the Ethernet protocol through an Ethernet interface, and ensures the success rate of terminal chip flow by intervening in the simulation test before the terminal chip flow by the protocol stack instrument.
[0190] Figure 8 The following is a schematic structural diagram of a protocol stack instrument provided by an embodiment of the present application. As Figure 8 shown, the protocol stack instrument includes a memory 820, a transceiver 800, and a processor 810, where:
[0191] The memory 820 is used to store computer programs; the transceiver 800 is used to send and receive data under the control of the processor 810; the processor 810 is used to read the computer programs in the memory 820 and perform the following operations:
[0192] Receive an uplink data packet sent by the simulation platform device;
[0193] Based on the uplink data packet, update the current first time slot number and first half frame number of the protocol stack instrument to obtain a second time slot number and a second half frame number;
[0194] Based on the second time slot number and the second half frame number, parse and process the uplink data packet to obtain an uplink data stream;
[0195] Based on the second time slot number and the second half frame number, scramble the downlink data stream to generate a downlink data packet;
[0196] Send the downlink data packet to the simulation platform device;
[0197] The uplink data stream and the downlink data stream are used to test the simulation platform device.
[0198] Specifically, the transceiver 800 is used to receive and send data under the control of the processor 810.
[0199] Among them, in Figure 8Among them, the bus architecture may include any number of interconnected buses and bridges, and various circuits of one or more processors represented by the processor 810 and the memory represented by the memory 820 are specifically linked together. The bus architecture can also link together various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art, and thus will not be further described herein. The bus interface provides an interface. The transceiver 800 may be multiple components, that is, including a transmitter and a receiver, and provides a unit for communicating with various other devices on the transmission medium, and these transmission mediums include wireless channels, wired channels, optical fiber cables, and other transmission mediums. The processor 810 is responsible for managing the bus architecture and general processing, and the memory 820 can store the data used by the processor 810 when executing operations.
[0200] Optionally, the processor 810 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), an FPGA, or a complex programmable logic device (CPLD), and the processor may also adopt a multi-core architecture.
[0201] The processor is used to execute any method provided by the embodiments of the present application according to the obtained executable instructions by calling the computer program stored in the memory. The processor and the memory may also be physically separated.
[0202] In a possible implementation manner, the protocol stack instrument includes a first Ethernet interface, and receives an upstream data packet sent by the simulation platform device, including:
[0203] Receive the upstream data packet sent by the simulation platform device through the first Ethernet interface.
[0204] In a possible implementation manner, based on the upstream data packet, update the current first time slot number and the first half frame number of the protocol stack instrument to obtain a second time slot number and a second half frame number, including:
[0205] Generate a first time slot interrupt signal based on the upstream data packet;
[0206] Based on the first time slot interrupt signal, update the first time slot number and the first half frame number to obtain a second time slot number and a second half frame number.
[0207] In a possible implementation manner, the protocol stack instrument includes an EPLD module, and based on the first time slot interrupt signal, update the first time slot number and the first half frame number to obtain a second time slot number and a second half frame number, including:
[0208] Send a first time slot interrupt signal to the EPLD module;
[0209] The EPLD module, after receiving the first time slot interrupt signal, increments the first time slot number by one to obtain a second time slot number; based on the half frame to which the second time slot number belongs, obtains a second half frame number.
[0210] In a possible implementation manner, based on the second time slot number and the second half frame number, parse and process the uplink data packet to obtain an uplink data stream, including:
[0211] Scramble the first base sequence of the protocol stack instrument based on the second time slot number and the second half frame number to obtain a first scrambled base sequence;
[0212] Parse and process the uplink data packet based on the first scrambled base sequence to obtain an uplink data stream.
[0213] In a possible implementation manner, the protocol stack instrument further includes a processing module, which, based on the second time slot number and the second half frame number, scrambles the downlink data stream to generate a downlink data packet, including:
[0214] Control the EPLD module to generate a second time slot interrupt signal based on the first time slot interrupt signal, and send the second time slot interrupt signal, the second time slot number, and the second half frame number to the processing module;
[0215] After receiving the second time slot interrupt signal, the processing module generates first configuration information based on the second time slot number and the second half frame number; scramble the downlink data stream based on the first configuration information to generate a downlink data packet.
[0216] In a possible implementation manner, send the downlink data packet to the simulation platform device, including:
[0217] Send the downlink data packet to the simulation platform device through the first Ethernet interface.
[0218] It should be noted here that the above protocol stack instrument provided in the embodiments of the present application can implement all the method steps implemented by the method embodiments with the protocol stack instrument as the execution subject, and can achieve the same technical effects. The same parts and beneficial effects as those in the method embodiments will not be specifically described in this embodiment.
[0219] Figure 9 This is a schematic structural diagram of a simulation platform device provided in the embodiments of the present application. As Figure 9 shown, the simulation platform device includes a memory 920, a transceiver 900, and a processor 910, where:
[0220] A memory 920 for storing computer programs; a transceiver 900 for transmitting and receiving data under the control of a processor 910; the processor 910 for reading the computer programs in the memory 920 and performing the following operations:
[0221] Scramble the uplink data stream based on the second time slot number and the second half-frame number to generate an uplink data packet;
[0222] Send the uplink data packet to the protocol stack instrument, where the uplink data packet is used to update the current first time slot number and the first half-frame number of the protocol stack instrument;
[0223] Receive the downlink data packet sent by the protocol stack instrument;
[0224] Parse the downlink data packet based on the second time slot number and the second half-frame number to obtain a downlink data stream, where the uplink data stream and the downlink data stream are used to test the simulation platform device.
[0225] Specifically, the transceiver 900 is used to receive and transmit data under the control of the processor 910.
[0226] Among them, in Figure 9 The bus architecture may include any number of interconnected buses and bridges, specifically various circuits represented by one or more processors represented by the processor 910 and the memory represented by the memory 920 are linked together. The bus architecture can also link together various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art, so they will not be further described herein. The bus interface provides an interface. The transceiver 900 may be multiple components, that is, including a transmitter and a receiver, providing a unit for communicating with various other devices on the transmission medium, and these transmission mediums include wireless channels, wired channels, optical cables and other transmission mediums. The processor 910 is responsible for managing the bus architecture and general processing, and the memory 920 may store the data used by the processor 910 when performing operations.
[0227] Optionally, the processor 910 may be a CPU, ASIC, FPGA or CPLD, and the processor may also adopt a multi-core architecture.
[0228] The processor is used to execute any method provided in the embodiments of the present application according to the obtained executable instructions by calling the computer programs stored in the memory. The processor and the memory may also be physically separated.
[0229] In a possible implementation manner, the simulation platform device includes a second Ethernet interface, and sending the uplink data packet to the protocol stack instrument includes:
[0230] Send the uplink data packet to the protocol stack instrument through the second Ethernet interface.
[0231] In a possible implementation manner, based on the second time slot number and the second half-frame number, scramble the uplink data stream to generate an uplink data packet, including:
[0232] Generate second configuration information based on the second time slot number and the second half-frame number;
[0233] Scramble the uplink data stream based on the second configuration information to generate an uplink data packet.
[0234] In a possible implementation manner, based on the second time slot number and the second half-frame number, parse the downlink data packet to obtain a downlink data stream, including:
[0235] Scramble the second basic sequence of the simulation platform device based on the second time slot number and the second half-frame number to obtain a second scrambled basic sequence;
[0236] Parse the downlink data packet based on the second scrambled basic sequence to obtain a downlink data stream.
[0237] In a possible implementation manner, receive a downlink data packet sent by a protocol stack instrument, including:
[0238] Receive the downlink data packet sent by the protocol stack instrument through a second Ethernet interface.
[0239] It should be noted here that the above-mentioned simulation platform device provided by the embodiments of the present application can implement all the method steps of the method embodiments with the simulation platform device as the execution subject, and can achieve the same technical effects. The same parts and beneficial effects as those in the method embodiments will not be specifically described in this embodiment.
[0240] Figure 10 It is a schematic structural diagram of a connection test device provided by an embodiment of the present application. As Figure 10 shown, it includes:
[0241] A first receiving module 1010, configured to receive an uplink data packet sent by a simulation platform device;
[0242] An updating module 1020, configured to update the current first time slot number and the first half-frame number of the protocol stack instrument based on the uplink data packet to obtain a second time slot number and a second half-frame number;
[0243] A first processing module 1030, configured to parse the uplink data packet based on the second time slot number and the second half-frame number to obtain an uplink data stream;
[0244] A second processing module 1040, configured to scramble the downlink data stream based on the second time slot number and the second half-frame number to generate a downlink data packet;
[0245] The first sending module 1050 is configured to send a downlink data packet to the simulation platform device;
[0246] The uplink data stream and the downlink data stream are used to test the simulation platform device.
[0247] In a possible implementation manner, the first receiving module 1010 is specifically configured to:
[0248] Receive an uplink data packet sent by the simulation platform device through the first Ethernet interface.
[0249] In a possible implementation manner, the updating module 1020 is specifically configured to:
[0250] Generate a first time slot interrupt signal based on the uplink data packet;
[0251] Update the first time slot number and the first half frame number based on the first time slot interrupt signal to obtain a second time slot number and a second half frame number.
[0252] In a possible implementation manner, the updating module 1020 is specifically configured to:
[0253] After receiving the first time slot interrupt signal, increment the first time slot number by one to obtain a second time slot number; obtain the second half frame number based on the half frame to which the second time slot number belongs.
[0254] In a possible implementation manner, the first processing module 1030 is specifically configured to:
[0255] Scramble the first base sequence of the protocol stack instrument based on the second time slot number and the second half frame number to obtain a first scrambled base sequence;
[0256] Parse the uplink data packet based on the first scrambled base sequence to obtain an uplink data stream.
[0257] In a possible implementation manner, the first processing module 1030 is specifically configured to:
[0258] Generate a second time slot interrupt signal based on the first time slot interrupt signal;
[0259] After generating the second time slot interrupt signal, generate first configuration information based on the second time slot number and the second half frame number; scramble the downlink data stream based on the first configuration information to generate a downlink data packet.
[0260] In a possible implementation manner, the first sending module 1050 is specifically configured to:
[0261] Send the downlink data packet to the simulation platform device through the first Ethernet interface.
[0262] Specifically, the above-mentioned connection testing device provided by the embodiments of the present application can implement all the method steps implemented by the method embodiments with the protocol stack instrument as the above-mentioned execution subject, and can achieve the same technical effects. Therefore, the same parts and beneficial effects as those in the method embodiments will not be specifically described herein.
[0263] Figure 11 As shown in the structural schematic diagram of a connection testing device provided by the embodiments of the present application, Figure 11 it includes:
[0264] A third processing module 1110, configured to scramble the uplink data stream based on the second time slot number and the second half frame number to generate an uplink data packet;
[0265] A second sending module 1120, configured to send the uplink data packet to the protocol stack instrument, where the uplink data packet is used to update the current first time slot number and the first half frame number of the protocol stack instrument;
[0266] A second receiving module 1130, configured to receive the downlink data packet sent by the protocol stack instrument;
[0267] A fourth processing module 1140, configured to parse the downlink data packet based on the second time slot number and the second half frame number to obtain a downlink data stream, where the uplink data stream and the downlink data stream are used to test the simulation platform device.
[0268] In a possible implementation manner, the second sending module 1120 is specifically configured to:
[0269] Send the uplink data packet to the protocol stack instrument through the second Ethernet interface.
[0270] In a possible implementation manner, the third processing module 1110 is specifically configured to:
[0271] Generate second configuration information based on the second time slot number and the second half frame number;
[0272] Scramble the uplink data stream based on the second configuration information to generate an uplink data packet.
[0273] In a possible implementation manner, the fourth processing module 1140 is specifically configured to:
[0274] Scramble the second basic sequence of the simulation platform device based on the second time slot number and the second half frame number to obtain a second scrambled basic sequence;
[0275] Parse the downlink data packet based on the second scrambled basic sequence to obtain a downlink data stream.
[0276] In a possible implementation manner, the second receiving module 1130 is specifically configured to:
[0277] Receive a downlink data packet sent by a protocol stack instrument through a second Ethernet interface.
[0278] Specifically, the above-mentioned connection test device provided by the embodiments of the present application can implement all the method steps implemented by the method embodiments with the execution subject being a simulation platform device, and can achieve the same technical effects. The same parts and beneficial effects as those in the method embodiments will not be specifically described herein.
[0279] It should be noted that the division of units / modules in the above embodiments of the present application is schematic, only a logical function division, and there may be other division methods in actual implementation. In addition, each functional unit in the various embodiments of the present application may be integrated in one processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit. The above integrated unit may be implemented in the form of hardware or in the form of a software functional unit.
[0280] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a processor-readable storage medium. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the methods in the various embodiments of the present application. The foregoing storage medium includes: various media such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disc that can store program codes.
[0281] In some embodiments, a processor-readable storage medium is further provided. The processor-readable storage medium stores a computer program, and the computer program is used to cause a computer to execute the method for determining a neighboring cell provided in the above method embodiments.
[0282] Specifically, the above-mentioned processor-readable storage medium provided by the embodiments of the present application can implement all the method steps implemented by the above method embodiments, and can achieve the same technical effects. The same parts and beneficial effects as those in the method embodiments will not be specifically described herein.
[0283] It should be noted that: The processor-readable storage medium can be any available medium or data storage device accessible by the processor, including but not limited to magnetic memories (such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO), etc.), optical memories (such as CDs, DVDs, BDs, HVDs, etc.), and semiconductor memories (such as ROM, EPROM, EEPROM, non-volatile memories (NAND FLASH), solid state drives (SSD)), etc.
[0284] It should also be noted that: In the embodiments of the present application, terms such as "first" and "second" are used to distinguish similar objects, rather than to describe a specific order or sequence. It should be understood that such terms can be interchanged under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first" and "second" are usually of the same category, and do not limit the number of objects. For example, the first object can be one or more.
[0285] In the embodiments of the present application, the term "and / or" describes the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally represents an "or" relationship between the associated objects before and after.
[0286] In the embodiments of the present application, the term "plurality" refers to two or more, and other quantifiers are similar.
[0287] The technical solutions provided by the embodiments of this application can be applied to a variety of systems, especially 5G systems. For example, the applicable systems can be the global system of mobile communication (GSM) system, code division multiple access (CDMA) system, Wideband Code Division Multiple Access (WCDMA) general packet radio service (GPRS) system, long term evolution (LTE) system, LTE frequency division duplex (FDD) system, LTE time division duplex (TDD) system, long term evolution advanced (LTE-A) system, universal mobile telecommunication system (UMTS), worldwide interoperability for microwave access (WiMAX) system, 5G New Radio (NR) system, etc. Both terminal devices and network devices are included in these various systems. The system may also include a core network part, such as the Evolved Packet System (EPS), 5G System (5GS), etc.
[0288] Those skilled in the art should understand that the embodiments of this application can be provided as a method, a system, or a computer program product. Therefore, this application can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, this application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memory and optical memory, etc.) containing computer-usable program code.
[0289] This application is described with reference to the flowcharts and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, as well as the combination of flows and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer-executable instructions. These computer-executable instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, such that the instructions executed by the processor of the computer or other programmable data processing devices produce means for implementing the functions specified in one flow Figure 1 one flow or multiple flows and / or blocks Figure 1 or multiple blocks.
[0290] These processor-executable instructions can also be stored in a processor-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, such that the instructions stored in the processor-readable memory produce a manufacture including instruction means that implement the functions specified in one flow Figure 1 one flow or multiple flows and / or blocks Figure 1 or multiple blocks.
[0291] These processor-executable instructions can also be loaded onto a computer or other programmable data processing device, such that a series of operational steps are executed on the computer or other programmable device to generate a computer-implemented process, and thus the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one flow Figure 1 one flow or multiple flows and / or blocks Figure 1 or multiple blocks.
[0292] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Thus, if these modifications and variations of this application fall within the scope of the claims of this application and their equivalent technologies, this application is also intended to include these modifications and variations.
Claims
1. A connection testing method, characterized in that, Applied to a protocol stack instrument, the method includes: Receiving an uplink data packet sent by a simulation platform device; Based on the uplink data packet, updating the current first time slot number and first half-frame number of the protocol stack instrument to obtain a second time slot number and a second half-frame number; Based on the second time slot number and the second half-frame number, parsing the uplink data packet to obtain an uplink data stream; Based on the second time slot number and the second half-frame number, scrambling the downlink data stream to generate a downlink data packet; Sending the downlink data packet to the simulation platform device; The uplink data stream and the downlink data stream are used to test the simulation platform device.
2. The method according to claim 1, characterized in that, The protocol stack instrument includes a first Ethernet interface. The receiving of the uplink data packet sent by the simulation platform device includes: Receiving the uplink data packet sent by the simulation platform device through the first Ethernet interface.
3. The method according to claim 1 or 2, characterized in that, The updating of the current first time slot number and first half-frame number of the protocol stack instrument based on the uplink data packet to obtain a second time slot number and a second half-frame number includes: Generating a first time slot interrupt signal based on the uplink data packet; Based on the first time slot interrupt signal, updating the first time slot number and the first half-frame number to obtain the second time slot number and the second half-frame number.
4. The method according to claim 3, characterized in that The protocol stack instrument includes an erasable programmable logic device (EPLD) module. The updating of the first time slot number and the first half-frame number based on the first time slot interrupt signal to obtain the second time slot number and the second half-frame number includes: Sending the first time slot interrupt signal to the EPLD module; The EPLD module, after receiving the first time slot interrupt signal, increments the first time slot number by one to obtain the second time slot number; based on the half-frame to which the second time slot number belongs, obtaining the second half-frame number.
5. The method according to claim 4, wherein The parsing of the uplink data packet based on the second time slot number and the second half-frame number to obtain an uplink data stream includes: Scrambling the first base sequence of the protocol stack instrument based on the second time slot number and the second half-frame number to obtain a first scrambled base sequence; Parsing the uplink data packet based on the first scrambled base sequence to obtain the uplink data stream.
6. The method according to claim 4, wherein The protocol stack instrument further includes a processing module. The scrambling of the downlink data stream based on the second time slot number and the second half-frame number to generate a downlink data packet includes: The EPLD module generates a second time slot interrupt signal based on the first time slot interrupt signal and sends the second time slot interrupt signal, the second time slot number, and the second half-frame number to the processing module; After receiving the second time slot interrupt signal, the processing module generates first configuration information based on the second time slot number and the second half-frame number; scrambling the downlink data stream based on the first configuration information to generate the downlink data packet.
7. The method according to claim 2, characterized in that, The sending of the downlink data packet to the simulation platform device includes: Sending the downlink data packet to the simulation platform device through the first Ethernet interface.
8. A connection testing method, characterized in that Applied to a simulation platform device, the method includes: Based on a second time slot number and a second half-frame number, scramble an uplink data stream to generate an uplink data packet; Send the uplink data packet to a protocol stack instrument, where the uplink data packet is used to update the current first time slot number and first half-frame number of the protocol stack instrument; Receive a downlink data packet sent by the protocol stack instrument; Based on the second time slot number and the second half-frame number, perform parsing processing on the downlink data packet to obtain a downlink data stream, where the uplink data stream and the downlink data stream are used to test the simulation platform device.
9. The method according to claim 8, wherein The simulation platform device includes a second Ethernet interface, and the sending the uplink data packet to the protocol stack instrument includes: Send the uplink data packet to the protocol stack instrument through the second Ethernet interface.
10. The method according to claim 8 or 9, characterized in that The scrambling the uplink data stream based on a second time slot number and a second half-frame number to generate an uplink data packet includes: Generate second configuration information based on the second time slot number and the second half-frame number; Scramble the uplink data stream based on the second configuration information to generate the uplink data packet.
11. The method according to claim 8 or 9, characterized in that, The performing parsing processing on the downlink data packet based on the second time slot number and the second half-frame number to obtain a downlink data stream includes: Scramble a second basic sequence of the simulation platform device based on the second time slot number and the second half-frame number to obtain a second scrambled basic sequence; Perform parsing processing on the downlink data packet based on the second scrambled basic sequence to obtain the downlink data stream.
12. The method according to claim 9, wherein The receiving the downlink data packet sent by the protocol stack instrument includes: Receive the downlink data packet sent by the protocol stack instrument through the second Ethernet interface.
13. A protocol stack instrument, characterized in that, Includes a memory, a transceiver, and a processor; The memory is used to store computer programs; the transceiver is used to transmit and receive data under the control of the processor; The processor is used to read the computer programs in the memory and perform the following operations: Receive an uplink data packet sent by a simulation platform device; Based on the uplink data packet, update the current first time slot number and first half-frame number of the protocol stack instrument to obtain a second time slot number and a second half-frame number; Based on the second time slot number and the second half-frame number, perform parsing processing on the uplink data packet to obtain an uplink data stream; Based on the second time slot number and the second half-frame number, scramble a downlink data stream to generate a downlink data packet; Send the downlink data packet to the simulation platform device; The uplink data stream and the downlink data stream are used to test the simulation platform device.
14. The protocol stack instrument according to claim 13, characterized in that The protocol stack instrument includes a first Ethernet interface, and the receiving the uplink data packet sent by the simulation platform device includes: Receive the uplink data packet sent by the simulation platform device through the first Ethernet interface.
15. The protocol stack instrument according to claim 13 or 14, characterized in that, The updating the current first time slot number and first half-frame number of the protocol stack instrument based on the uplink data packet to obtain a second time slot number and a second half-frame number includes: Generate a first time slot interrupt signal based on the uplink data packet; Based on the first time slot interruption signal, update the first time slot number and the first half-frame number to obtain the second time slot number and the second half-frame number.
16. The protocol stack instrument according to claim 15, characterized in that The protocol stack instrument includes an EPLD module. The updating the first time slot number and the first half-frame number based on the first time slot interruption signal to obtain the second time slot number and the second half-frame number includes: Send the first time slot interruption signal to the EPLD module; After receiving the first time slot interruption signal, the EPLD module adds one to the first time slot number to obtain the second time slot number; based on the half-frame to which the second time slot number belongs, obtain the second half-frame number.
17. The protocol stack instrument according to claim 16, wherein The parsing and processing the uplink data packet based on the second time slot number and the second half-frame number to obtain the uplink data code stream includes: Perform scrambling processing on the first base sequence of the protocol stack instrument based on the second time slot number and the second half-frame number to obtain a first scrambled base sequence; Parse and process the uplink data packet based on the first scrambled base sequence to obtain the uplink data code stream.
18. The protocol stack instrument according to claim 16, characterized in that, The protocol stack instrument further includes a processing module. The scrambling processing the downlink data code stream based on the second time slot number and the second half-frame number to generate a downlink data packet includes: Control the EPLD module to generate a second time slot interruption signal based on the first time slot interruption signal, and send the second time slot interruption signal, the second time slot number, and the second half-frame number to the processing module; After receiving the second time slot interruption signal, the processing module generates first configuration information based on the second time slot number and the second half-frame number; perform scrambling processing on the downlink data code stream based on the first configuration information to generate the downlink data packet.
19. The protocol stack instrument according to claim 14, characterized in that, The sending the downlink data packet to the simulation platform device includes: Send the downlink data packet to the simulation platform device through the first Ethernet interface.
20. A simulation platform device, characterized in that, Includes a memory, a transceiver, and a processor; The memory is used to store computer programs; The transceiver is used to send and receive data under the control of the processor; The processor is used to read the computer program in the memory and perform the following operations: Perform scrambling processing on the uplink data code stream based on the second time slot number and the second half-frame number to generate an uplink data packet; Send the uplink data packet to the protocol stack instrument, and the uplink data packet is used to update the current first time slot number and first half-frame number of the protocol stack instrument; Receive the downlink data packet sent by the protocol stack instrument; Parse and process the downlink data packet based on the second time slot number and the second half-frame number to obtain a downlink data code stream, and the uplink data code stream and the downlink data code stream are used to test the simulation platform device.
21. The simulation platform device according to claim 20, wherein The simulation platform device includes a second Ethernet interface. The sending the uplink data packet to the protocol stack instrument includes: Send the uplink data packet to the protocol stack instrument through the second Ethernet interface.
22. The simulation platform device according to claim 20 or 21, characterized in that, The performing scrambling processing on the uplink data code stream based on the second time slot number and the second half-frame number to generate an uplink data packet includes: Generate second configuration information based on the second time slot number and the second half-frame number; Perform scrambling processing on the uplink data stream based on the second configuration information to generate the uplink data packet.
23. The simulation platform device according to claim 20 or 21, characterized in that, The parsing processing of the downlink data packet based on the second time slot number and the second half-frame number to obtain a downlink data stream includes: Perform scrambling processing on the second basic sequence of the simulation platform device based on the second time slot number and the second half-frame number to obtain a second scrambled basic sequence; Perform parsing processing on the downlink data packet based on the second scrambled basic sequence to obtain the downlink data stream.
24. The simulation platform device according to claim 21, characterized in that, The receiving the downlink data packet sent by the protocol stack instrument includes: Receive the downlink data packet sent by the protocol stack instrument through the second Ethernet interface.
25. A connection test device, characterized in that, Includes: A first receiving module, configured to receive an uplink data packet sent by a simulation platform device; An updating module, configured to update the current first time slot number and first half-frame number of the protocol stack instrument based on the uplink data packet to obtain a second time slot number and a second half-frame number; A first processing module, configured to perform parsing processing on the uplink data packet based on the second time slot number and the second half-frame number to obtain an uplink data stream; A second processing module, configured to perform scrambling processing on the downlink data stream based on the second time slot number and the second half-frame number to generate a downlink data packet; A first sending module, configured to send the downlink data packet to the simulation platform device; The uplink data stream and the downlink data stream are used to test the simulation platform device.
26. A connection test device, characterized in that, Includes: A third processing module, configured to perform scrambling processing on the uplink data stream based on a second time slot number and a second half-frame number to generate an uplink data packet; A second sending module, configured to send the uplink data packet to the protocol stack instrument, and the uplink data packet is used to update the current first time slot number and first half-frame number of the protocol stack instrument; A second receiving module, configured to receive a downlink data packet sent by the protocol stack instrument; A fourth processing module, configured to perform parsing processing on the downlink data packet based on the second time slot number and the second half-frame number to obtain a downlink data stream, and the uplink data stream and the downlink data stream are used to test a simulation platform device.
27. A processor-readable storage medium, characterized in that, The processor-readable storage medium stores a computer program, and the computer program is used to cause a computer to execute the connection test method according to any one of claims 1 to 7, or the computer program is used to cause a computer to execute the connection test method according to any one of claims 8 to 12.