A debugging system based on SCA waveform development

By extracting user logic implementation code from the framework of SCA waveform application components, compiling separately and using a software debugger for single-step debugging, the problem of incomplete debugging information of external libraries is solved, and efficient debugging and verification of SCA waveform application components is achieved.

CN119645818BActive Publication Date: 2025-04-25成都谐盈科技有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510167717.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-02-17
Publication Date
2025-04-25
Estimated Expiration
2045-02-17

AI Technical Summary

Technical Problem

In SCA waveform development, the debugging information of the external library is incomplete or incompatible with the debugging environment of the modeling tool, resulting in the inability to debug component function codes in a single step through the modeling tool, affecting system joint debugging.

Method used

By extracting the user logic implementation code from the framework code of the application component, compiling it into an application separately, and using the software debugger for single-step debugging, using the debugging component and the user datagram protocol for data forwarding, simulating the data interaction process in actual runtime.

Benefits of technology

It realizes single-step debugging of user logic implementation code, improves debugging flexibility and efficiency, reduces dependence on external libraries, and avoids the risk of parsing errors and functional mismatch caused by inconsistent with simulated data and actual data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119645818B_ABST
    Figure CN119645818B_ABST
Patent Text Reader

Abstract

The present invention belongs to the field of communication technology, and more specifically, relates to a debugging system based on SCA waveform development; the present invention extracts user logic implementation code from the framework code of the user component, compiles it separately to form an application, and performs single-step debugging through a software debugger, so that developers can freely perform single-step debugging on the user logic implementation code during the debugging process, thereby not being restricted by external libraries, and improving the convenience and efficiency of SCA waveform transplantation and component development and debugging, so that developers can better debug and verify the functions of components.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] The invention belongs to the field of communication technology, and more specifically, relates to a debugging system developed based on SCA waveform. Background Art

[0002] In the existing SCA waveform development, it is a standard process to use modeling tools such as E-Spectra CX for modeling, code generation, compilation, construction, and deployment testing. However, when it comes to using external libraries, debugging difficulties may be encountered. This is usually due to incomplete debugging information of the external library or incompatibility with the debugging environment of the modeling tool, resulting in the inability to single-step debug the component function code through the modeling tool, which in turn affects the entire system joint debugging.

[0003] Usually, an SCA waveform application model contains multiple components. The functions of each component may be provided by different external libraries provided by different developers, resulting in the following problems during integration debugging:

[0004] 1. When a functional module is debugged externally, simulated data is usually used to test the function, because it is difficult to obtain real data flows in the external environment; such simulated data may differ from the data in the actual operating environment, resulting in parsing errors or functional mismatches when facing real data after integration into the SCA component;

[0005] 2. When a problem occurs in a functional component, it is impossible to locate the problem quickly. This is caused by incomplete debugging information of the external library or incompatibility with the debugging environment of the modeling tool. Developers cannot directly perform single-step debugging on the external library, which limits the flexibility and efficiency of developers in debugging component functions.

[0006] 3. Every time developers fix a problem, they must go through a tedious library reload and waveform redeployment process, which greatly consumes development time and reduces the overall debugging progress. Summary of the invention

[0007] The present invention provides a debugging system based on SCA waveform development, which is intended to solve the technical problem that the component function code cannot be single-step debugged through the modeling tool due to incomplete debugging information of the external library or incompatibility with the debugging environment of the modeling tool.

[0008] A debugging system based on SCA waveform development includes a software debugger, at least one debugging component, at least one application component, and a user logic implementation code application corresponding to the number of the application components;

[0009] The application component includes a user logic implementation code, and the user logic implementation code is extracted to form the user logic implementation code application program;

[0010] There are n application components in total, and the input and output ends of the n application components are connected in series in sequence; the input and output ends of the 1st to n-1st application components are all connected to the input end of the debugging component; the input end of the nth application component is connected to the input and output end of the debugging component, and the output end of the nth application component is connected to the output end of the debugging component;

[0011] The data inputted into the input terminal of the debugging component is forwarded to the corresponding user logic implementation code application program through the user datagram protocol; and the data processed by the user logic implementation code application program is forwarded through the debugging component through the user datagram protocol, so that the data processed by the user logic implementation code application program is returned to the output terminal of the corresponding application component;

[0012] The software debugger configures the data flow based on the selected application component that needs to be tested.

[0013] Preferably, the debugging component comprises at least one output port, wherein the number of the debugging component output ports corresponds to the number of the application components.

[0014] The beneficial effects of the present invention include at least:

[0015] The present invention extracts the user logic implementation code from the framework code of the user component, compiles it separately to form an application, and performs single-step debugging through a software debugger, so that developers can freely perform single-step debugging on the user logic implementation code during the debugging process, thereby being free from the restrictions of external libraries, and improving the convenience and efficiency of SCA waveform transplantation and component development and debugging, so that developers can better debug and verify the functions of components. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0017] Figure 1 It is the overall system structure diagram of the present invention. DETAILED DESCRIPTION

[0018] In order to make the technical problems, technical solutions and beneficial effects to be solved by the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0019] See also Figure 1 , a debugging system based on SCA waveform development, comprising a software debugger, at least one debugging component, at least one application component, and a user logic implementation code application corresponding to the number of the application components;

[0020] The application component includes a user logic implementation code, and the user logic implementation code is extracted to form the user logic implementation code application program;

[0021] There are n application components in total, and the input and output ends of the n application components are connected in series in sequence; the input and output ends of the 1st to n-1st application components are all connected to the input end of the debugging component; the input end of the nth application component is connected to the input and output end of the debugging component, and the output end of the nth application component is connected to the output end of the debugging component;

[0022] The data inputted into the input terminal of the debugging component is forwarded to the corresponding user logic implementation code application program through the user datagram protocol; and the data processed by the user logic implementation code application program is forwarded through the debugging component through the user datagram protocol, so that the data processed by the user logic implementation code application program is returned to the output terminal of the corresponding application component;

[0023] The software debugger configures the data flow based on the selected application component that needs to be tested.

[0024] See also Figure 1 As shown, the debugging component of the present invention can connect to multiple application components at the same time and receive data from different application components to implement debugging of multiple application components;

[0025] In addition, the number of output terminals of the debugging component described in the present invention can be set based on the number of application components. If there is one application component, one output terminal can be set; if there are two application components, two output terminals can be set; that is, the output port is configured according to the debugging requirements to ensure that the data flow direction corresponds to the SCA application component currently being debugged, so as to adapt to the debugging of different SCA application components.

[0026] For example, see the attached Figure 1 As shown, in this embodiment, it includes application component 1, application component 2, debugging component, user logic implementation code 1 application program, user logic implementation code 2 application program and software debugger;

[0027] The user logic implementation code 1 application corresponds to the user logic implementation code 1 of the application component 1, that is, the user logic implementation code 1 in the application component 1 is extracted to form the user logic implementation code 1 application;

[0028] The user logic implementation code 2 application corresponds to the user logic implementation code 2 of the application component 2, that is, the user logic implementation code 2 in the application component 2 is extracted to form the user logic implementation code 2 application.

[0029] The output end of the application component 1 is connected to the input end of the application component 2; and the output end and input end of the application component are respectively connected to the input 1 of the debugging component, and the debugging component then inputs the data of the debugging component input end to the user logic implementation code 1 application or the user logic implementation code 2 application through the user datagram protocol; the user implementation logic code 1 application communicates with the debugging component through the user datagram protocol, and sends data to the output 1 of the debugging component based on the user datagram protocol, and then the output 1 of the debugging component is sent to the input end of the application component 2; the output data of the user implementation logic code 2 application enters the output 2 of the debugging component based on the user datagram protocol, and since the output 2 of the debugging component is connected to the output end of the application component 2, the output data of the user logic implementation code 2 application enters the output end of the application component 2 through the output 2 of the debugging component.

[0030] When the user logic implementation code 1 needs to be tested on the application component 1, the data flow line of the application component 1 is configured by the software debugger as follows:

[0031] The input data does not need to enter the application component 1. The input data enters the user logic implementation code 1 application through the input 1 of the debugging component. After being processed by the user logic implementation code 1 application, the processed data is transmitted to the output 1 of the debugging component based on the user datagram protocol, and then enters the input end of the application component 2 through the output 1 of the debugging component; after being processed by the application component 2, the corresponding data is output; in the above steps, the data processed by the user logic implementation code 1 application will be recorded by the software debugger, and the adjustments to the user logic implementation code 1 can be determined based on the processed data. After adjusting the code in the corresponding user logic implementation code 1, the adjusted user logic implementation code 1 is entered into the corresponding user logic implementation code 1.

[0032] Based on the above, it can be known that in the application of SCA waveform, the present invention, by configuring properties or using the functions of the modeling tool, sets the output port of application component 1 to not output data when testing application component 1, thereby ensuring that the output of application component 1 will not directly affect application component 2, but is processed by the debugging component; and the debugging component receives input data from application component 1, outputs the debugging component to a specific output port through property settings, and transmits the data to the user logic implementation code 1 application through the user datagram protocol, and implements the application built with code separately, so that developers can debug the data processing logic in an isolated environment.

[0033] In the independent user logic implementation code 1 application, developers can set breakpoints, single-step code execution, and check variable status based on the software debugger to facilitate the discovery and repair of logic errors. This process allows developers to focus on the user logic implementation code without being restricted by external libraries or application component 1. After the user logic implementation code application processes the data, it sends the result back to the debugging component through the user datagram protocol, and the debugging component then forwards the data to the input end of the application component 2, thereby simulating a normal application process.

[0034] Similarly, the test for the application component 2 is as follows:

[0035] When the user logic implementation code 2 of the application component 2 needs to be tested, the data flow route of the application component 2 is configured by the software debugger as follows:

[0036] The input data does not need to enter the debugging component, but is directly input into the input end of the application component 1. After being processed by the application component 1, the output data enters the input 1 of the debugging component through the output end of the application component, and then the debugging component forwards the input data to the user logic implementation code 2 application through the user datagram protocol. After the user logic implementation code 2 application performs output processing, the output data enters the output 2 of the debugging component, and then returns to the output end of the application component 2 through output 2. In the above steps, the data processed by the logic implementation code 2 application will be recorded by the software debugger, and the adjustments required to the user logic implementation code 2 application can be determined based on the processed data. After the adjustments, the corresponding user logic implementation code 2 will be entered into the user logic implementation code 2 of the corresponding application component 2.

[0037] The data direction configuration can be pre-configured in the above-mentioned software debugger. For example, the data direction when debugging application component 1 or application component 2 can be pre-set in the software debugger; when the user logic implementation code 1 of application component 1 is selected for debugging, the software debugger can configure the data direction according to the pre-set data direction configuration.

[0038] Based on the above method, developers can perform detailed debugging of the user logic implementation code of a single component without affecting the entire SCA waveform application, which improves the flexibility and efficiency of debugging and reduces the need to redeploy the entire application.

[0039] The present invention decouples the user logic implementation code from the CORBA framework by introducing an intermediate layer - debugging component, thereby effectively solving the problem of difficulty in single-step debugging in SCA waveform development due to dependence on external libraries. The present application performs debugging through real data in real scenarios, thus avoiding the technical problem of dependence on external libraries.

[0040] In addition, the present invention solves the debugging problem of traditional methods caused by external library limitations by separating the user logic implementation code from the framework and building it into an independent application. Based on the present invention, developers can use the debugging system of the present invention to debug the code line by line in an environment similar to the real data flow, which not only improves the accuracy of debugging, but also greatly enhances the flexibility of debugging, making problem location and repair more efficient.

[0041] The present invention creates a bridge by forwarding through the User Datagram Protocol, simulates the data interaction process during actual operation, ensures that the data used in the debugging process is as close to the real scene as possible, reduces the risk of parsing errors and functional mismatches caused by inconsistency between simulated data and actual data, and improves the reliability and stability of waveform applications.

[0042] Compared with the inefficient process of existing technologies that require redeployment of the entire waveform for each repair, the present invention allows developers to directly compile and verify the repair results after repairing the problem, without the need to repeatedly deploy the waveform, thereby greatly shortening the development cycle and improving the overall debugging progress; it significantly increases the iteration speed from development to verification, allowing developers to complete component function verification and optimization more quickly; only when the component has been verified can the verified code be integrated into the waveform, thus reducing the position problems that occur in the integration stage, ensuring the quality and stability of the final waveform, while also simplifying the complexity of the integrated test, making the entire development process smoother.

[0043] The above are only preferred embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application should be included in the protection scope of the present application.

Claims

1. A debugging system based on SCA waveform development, characterized in that: The software debugger comprises at least one debugging component, at least one application component, and a user logic implementation code application corresponding to the number of the application components; The application component includes a user logic implementation code, and the user logic implementation code is extracted from the framework code of the application component and compiled separately to form an application program; in the corresponding user logic implementation code application program, it is debugged based on the software debugger; There are n application components in total, and the input ends and output ends of the n application components are connected in series in sequence; The input and output of the first to n-1 application components are connected to the input of the debugging component; the input of the nth application component is connected to the input and output of the debugging component, and the output of the nth application component is connected to the output of the debugging component; The data inputted into the input terminal of the debugging component is forwarded to the corresponding user logic implementation code application program through the user datagram protocol; and the data processed by the user logic implementation code application program is forwarded through the debugging component through the user datagram protocol, so that the data processed by the user logic implementation code application program is returned to the output terminal of the corresponding application component; The software debugger configures the data flow based on the selected application component that needs to be tested.

2. A debugging system based on SCA waveform development according to claim 1, characterized in that: The debugging component includes at least one output port, wherein the number of the debugging component output ports corresponds to the number of the application components.

Citation Information

Patent Citations

  • SCA waveform component construction method and device, computer device, and storage medium

    CN109375903A

  • Customizable implementation method for supporting waveform component interface

    CN111399808A