Application debugging information processing method and device, application debugging system

By assigning application identifiers to applications in the embedded operating system and generating debug information output frames, the problem of mixed debug information from multiple applications is solved, enabling independent window display and efficient debugging.

CN117667739BActive Publication Date: 2024-11-26GUANGZHOU YIHUI INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311761746.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-20
Publication Date
2024-11-26
Estimated Expiration
2043-12-20

AI Technical Summary

Technical Problem

In embedded operating systems, debugging information from multiple applications is often output together, making it difficult for developers to efficiently find useful information and affecting debugging efficiency.

Method used

By assigning a unique application identifier to each application, a corresponding debug information output frame is generated and sent to the terminal through the same communication interface. The terminal parses the frame and displays the debug information of each application in different windows on the display interface.

Benefits of technology

It separates the output of debugging information from multiple applications, avoiding clutter and improving debugging and development efficiency. Independent windows can be displayed without modifying the original code.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117667739B_ABST
    Figure CN117667739B_ABST
Patent Text Reader

Abstract

The present application relates to an application debugging information processing method and device, and an application debugging system. The method includes: obtaining debugging information to be printed for multiple applications; generating debugging information output frames corresponding to each application according to the application identifier of each application and the debugging information of each application; sending multiple debugging information output frames to the terminal through the same communication interface of the embedded device; the terminal is used to parse the received debugging information output frames, identify the application identifier corresponding to each debugging information output frame, and based on the application identifier corresponding to each debugging information output frame, use different windows to display the debugging information of different applications in the display interface of the terminal. The use of this method can realize time-sharing multiplexing of multiple applications to output debugging information on the same interface, so that different applications can be displayed using independent debugging information windows, which effectively improves the debugging efficiency of the application.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of debugging technology, and in particular to a method and apparatus for processing application debugging information, an application debugging system, a computer device, a storage medium, and a computer program product. Background Art

[0002] Regarding the debugging process of the application, since multiple applications can be run simultaneously in an embedded operating system, the traditional method of outputting debugging information is to output all the debugging information of multiple applications to the same serial port, so that all the debugging information is mixed together for output and printing.

[0003] The traditional debugging information output method requires developers to spend a lot of time and effort to find useful debugging information from multiple mixed debugging information, which is time-consuming and labor-intensive, affects the debugging process of different applications, and reduces the debugging efficiency of applications. Summary of the invention

[0004] Based on this, it is necessary to provide an application debugging information processing method, device, application debugging system, computer equipment, storage medium and computer program product that can improve the debugging efficiency of the application program in response to the above technical problems.

[0005] In a first aspect, the present application provides a method for processing application debugging information, comprising:

[0006] Get the debugging information to be printed by multiple applications;

[0007] Generating a debugging information output frame corresponding to each of the applications according to the application identifier of each of the applications and the debugging information of each of the applications;

[0008] The plurality of debugging information output frames are respectively sent to a terminal through the same communication interface of the embedded device; the terminal is used to parse the received debugging information output frames, identify the application identifier corresponding to each debugging information output frame, and based on the application identifier corresponding to each debugging information output frame, use different windows to display the debugging information of different applications in the display interface of the terminal.

[0009] In one embodiment, generating a debugging information output frame corresponding to each application according to the application identifier of each application and the debugging information of each application includes:

[0010] Obtaining preset frame format information; the frame format information is used to characterize position information of different frame parts and data generation rules corresponding to each of the frame parts;

[0011] By calling the debugging information output function, the application identification and debugging information of any application are filled into different frame parts according to the frame format information, so as to form a debugging information output frame corresponding to any application.

[0012] In one embodiment, before the step of filling the application identification and debugging information of any application into different frame parts according to the frame format information by calling the debugging information output function to form a debugging information output frame corresponding to any application, the method further includes:

[0013] The processing flow of the debugging information output function is adjusted to obtain an adjusted processing flow; the adjusted processing flow is used to perform a composition operation on the debugging information output frame and a call and send operation on the communication interface.

[0014] In a second aspect, the present application also provides a method for processing application debugging information, comprising:

[0015] Receive multiple debugging information output frames sent by the embedded device end; the embedded device end is used to obtain debugging information to be printed by multiple applications, generate debugging information output frames corresponding to each application according to the application identifier of each application and the debugging information of each application, and send the multiple debugging information output frames to the terminal through the same communication interface of the embedded device end respectively;

[0016] Parsing each of the received debugging information output frames, and identifying an application identifier corresponding to each of the debugging information output frames;

[0017] Based on the application identifier corresponding to each debugging information output frame, different windows are used to display debugging information of different application programs in the display interface of the terminal.

[0018] In one embodiment, the parsing of each of the received debug information output frames to identify the application identifier corresponding to each of the debug information output frames includes:

[0019] By using the frame parsing tool installed in the terminal, when any debug information output frame passes the detection, the application identifier and debug information of the application corresponding to any debug information output frame are extracted from the any debug information output frame.

[0020] In a third aspect, the present application further provides an application debugging information processing device, comprising:

[0021] A debugging information acquisition module is used to acquire debugging information to be printed by multiple applications;

[0022] A debugging information output frame generation module, used to generate a debugging information output frame corresponding to each of the applications according to the application identifier of each of the applications and the debugging information of each of the applications;

[0023] The debugging information output frame sending module is used to send multiple debugging information output frames to the terminal through the same communication interface of the embedded device end; the terminal is used to parse the received debugging information output frames, identify the application identifier corresponding to each debugging information output frame, and based on the application identifier corresponding to each debugging information output frame, use different windows to display the debugging information of different applications in the display interface of the terminal.

[0024] In a fourth aspect, the present application further provides an application debugging information processing device, comprising:

[0025] A debugging information output frame receiving module is used to receive multiple debugging information output frames sent by an embedded device end; the embedded device end is used to obtain debugging information to be printed by multiple applications, generate debugging information output frames corresponding to each application according to the application identifier of each application and the debugging information of each application, and send the multiple debugging information output frames to the terminal through the same communication interface of the embedded device end respectively;

[0026] A debugging information output frame parsing module, used to parse each of the received debugging information output frames and identify the application identifier corresponding to each of the debugging information output frames;

[0027] The debugging information display module is used to display the debugging information of different application programs in different windows in the display interface of the terminal based on the application identifier corresponding to each debugging information output frame.

[0028] In a fifth aspect, the present application further provides an application debugging system, the application debugging system comprising an embedded device end and a terminal,

[0029] The embedded device end is used to obtain debugging information to be printed of multiple applications, generate debugging information output frames corresponding to each application according to the application identifier of each application and the debugging information of each application, and send the multiple debugging information output frames to the terminal through the same communication interface of the embedded device end respectively;

[0030] The terminal is used to receive multiple debugging information output frames sent by the embedded device, parse each of the received debugging information output frames, identify the application identifier corresponding to each of the debugging information output frames, and based on the application identifier corresponding to each of the debugging information output frames, use different windows to display the debugging information of different applications in the display interface of the terminal.

[0031] In a sixth aspect, the present application further provides a computer device comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the processor implements the steps of the application debugging information processing method as described in the first aspect, and / or the steps of the application debugging information processing method as described in the second aspect.

[0032] In a seventh aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of the application debugging information processing method as described in the first aspect and / or the steps of the application debugging information processing method as described in the second aspect are implemented.

[0033] In an eighth aspect, the present application also provides a computer program product, comprising a computer program, which, when executed by a processor, implements the steps of the application debugging information processing method as described in the first aspect, and / or the steps of the application debugging information processing method as described in the second aspect.

[0034] The above-mentioned application debugging information processing method, device, application debugging system, computer equipment, storage medium and computer program product obtain debugging information to be printed of multiple applications, and then generate debugging information output frames corresponding to each application according to the application identifier of each application and the debugging information of each application, and then send the multiple debugging information output frames to the terminal through the same communication interface of the embedded device end respectively. The terminal is used to parse the received debugging information output frames, identify the application identifier corresponding to each debugging information output frame, and based on the application identifier corresponding to each debugging information output frame, use different windows to display the debugging information of different applications in the display interface of the terminal, so that multiple applications can output debugging information using the same interface in time-sharing multiplexing, which can avoid the mixing of debugging information output, so that different applications can be displayed in independent debugging information windows, which do not affect each other and are convenient to view, effectively improving the debugging efficiency of the application and helping to improve the efficiency of application development. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are 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 creative work.

[0036] Figure 1 A schematic diagram of a flow chart of a method for processing application debugging information in one embodiment;

[0037] Figure 2a A schematic diagram of a multiplexing debugging process flow in one embodiment;

[0038] Figure 2b A schematic diagram of a debug information output frame format in one embodiment;

[0039] Figure 2c A schematic diagram of a multi-application debugging information output process in one embodiment;

[0040] Figure 3 A schematic diagram of a flow chart of a method for processing application debugging information in another embodiment;

[0041] Figure 4 A flowchart of a method for processing application debugging information in another embodiment;

[0042] Figure 5 A schematic diagram of the architecture of an application debugging system in one embodiment;

[0043] Figure 6 It is a structural block diagram of an application debugging information processing device in one embodiment;

[0044] Figure 7 It is a structural block diagram of an application debugging information processing device in another embodiment;

[0045] Figure 8 is an internal structure diagram of a computer device in one embodiment;

[0046] Fig. 9 FIG. 4 is a diagram showing the internal structure of a computer device in another embodiment. DETAILED DESCRIPTION

[0047] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0048] In one embodiment, Figure 1 As shown, a method for processing application debugging information is provided, which is described by taking the method applied to an embedded device as an example, and includes the following steps 101 to 103. Among them:

[0049] Step 101, obtaining debugging information to be printed of multiple applications;

[0050] Among them, a multi-application debugging system based on serial port multiplexing (CMUX, multiplexer mode of serial port) can be used to implement the application debugging information processing method of the present application. The multi-application debugging system (i.e., application debugging system) can include an embedded device end and a terminal. For example, the embedded device can be an electronic device embedded in a specific hardware system of a specific application, which can be used to manage, monitor or control the system or device connected to it.

[0051] As an example, Figure 2a As shown, the embedded device can be configured with a board that can be used to run a multi-application debugging system to support serial port-based multiplexing. The serial port multiplexing of the multi-application debugging system can include but is not limited to the following components: kernel console module, PC-side console tool, and putty tool.

[0052] In practical applications, such as Figure 2b As shown, for different applications or partitions (such as Figure 2a In the process of outputting and printing debugging information of the application program of the embedded operating system, the debugging information to be printed by multiple application programs can be obtained, such as Figure 2b Application 1 prints debugging information, and application 2 prints debugging information, so as to further perform package processing based on each debugging information to be printed.

[0053] In an alternative embodiment, if Figure 2a As shown, the pseudo partition can be used to output operating system kernel debugging information, and can also be used to debug drivers, operating system commands, etc.

[0054] Step 102, generating a debugging information output frame corresponding to each of the applications according to the application identifier of each of the applications and the debugging information of each of the applications;

[0055] In a specific implementation, by calling the driver's debug information output function, the debug information can be grouped into data packets according to the current application or partition ID, that is, a debug information output frame corresponding to each application is generated according to the application identifier of each application and the debug information of each application.

[0056] In one example, multiple applications can be run simultaneously in an embedded operating system, such as Figure 2a As shown, the debugging information of each application can be printed by calling printf(); illustratively, an mx_console module can be added to the embedded operating system, which can be used to uniformly process the debugging information to be printed by multiple applications, and can combine the debugging information into a frame that complies with the GSM07.10 protocol (i.e., a debugging information output frame).

[0057] Step 103: Send the plurality of debugging information output frames to the terminal through the same communication interface of the embedded device.

[0058] Among them, the terminal can be used to parse the received debugging information output frames, identify the application identifier corresponding to each debugging information output frame, and based on the application identifier corresponding to each debugging information output frame, use different windows to display debugging information of different applications in the display interface of the terminal.

[0059] After obtaining the debugging information output frames corresponding to each application, the data packet consisting of the debugging information can be sent out from the physical interface by calling the driver, that is, multiple debugging information output frames are sent to the terminal through the same communication interface of the embedded device end; for example, Figure 2a As shown, based on GSM packet assembly and parsing, and transmitting the GSM packet through the serial port line, the transmission and reception of debugging information between the embedded device and the terminal can be realized.

[0060] In one example, corresponding parsing software can be installed on the PC side that receives and displays debugging information (i.e., the terminal included in the application debugging system). By using the parsing software to parse the debugging information package (i.e., the debugging information output frame), it can be displayed in different windows according to different partition IDs. That is, based on the application identifier corresponding to each debugging information output frame, different windows are used to display the debugging information of different applications in the display interface of the terminal.

[0061] Compared with the traditional method, since different applications or partitions are developed by different entities, when debugging a certain application or partition, it is impossible to modify or shield the codes of other applications or partitions, resulting in that the debugging information output by multiple applications or partitions are all printed out together, requiring a lot of manual effort to find useful debugging information; the technical solution of this embodiment, by in the function of calling the driver to output debugging information, the debugging information is composed into a GSM package according to the current application or partition ID, and then the driver can be called to send the GSM package from the physical interface, and then on the PC side that receives and displays the debugging information, the debugging information package can be parsed based on running the corresponding parsing software, and can be displayed in different windows according to different application or partition IDs, thereby realizing the separate output of debugging information at the bottom layer of the operating system, so that applications or partitions developed by different entities can be displayed in independent debugging information windows, which do not affect each other and are convenient to view, effectively improving the efficiency of application development, and transparent to the application program, and the serial port multiplexing function can be used without modifying the original code

[0062] In the above-mentioned application debugging information processing method, by obtaining the debugging information to be printed of multiple applications, and then generating the debugging information output frames corresponding to each application according to the application identifier of each application and the debugging information of each application, the multiple debugging information output frames are respectively sent to the terminal through the same communication interface of the embedded device end, thereby realizing multiple applications to output debugging information through the same interface in time-sharing multiplexing, which can avoid the mixing of debugging information output, so that different applications can be displayed in independent debugging information windows, which do not affect each other and are convenient to view, effectively improving the debugging efficiency of the application and helping to improve the efficiency of application development.

[0063] In an exemplary embodiment, the step of generating a debugging information output frame corresponding to each application program according to the application identifier of each application program and the debugging information of each application program may include the following steps:

[0064] Obtain preset frame format information; the frame format information is used to characterize the position information of different frame parts and the data generation rules corresponding to each frame part; by calling the debugging information output function, according to the frame format information, fill the application identifier and debugging information of any application into different frame parts to form a debugging information output frame corresponding to any application.

[0065] In actual applications, in embedded operating systems, a unique application ID (i.e., application identifier) ​​can be assigned to each application. When the application needs to output debugging information, the debugging information can be combined into a frame that complies with the GSM07.10 protocol (i.e., debugging information output frame) according to the application ID. Then, the frame can be sent out for multiple applications based on time-sharing multiplexing on the same serial port.

[0066] Specifically, in the process of printing debugging information by the application, the debugging information can be organized into debugging information packets and then sent out in fragments. Each debugging information packet can have data within 256 characters. The debugging information packet can adopt the frame format of the GSM07.10 protocol, thereby reducing interference from the environment and other factors based on CRC check, which can make the system more robust and more resistant to interference.

[0067] In one example, on the embedded device side, when partition 1 calls printf("abc"), the debug information output function, to output the "abc" debug information, the mx_console module can be as follows: Figure 2c The GSM07.10 frame format (ie, frame format information) shown forms the debugging information into a debugging information packet (ie, debugging information output frame).

[0068] For example, Figure 2cAs shown, the 4 bytes of the frame header can be [0xF9, 0x07, 0xEF, 0x07] (assuming that the ID assigned to partition 1 by the operating system is 1, and the second byte is 1<<2|0x03), the original data (such as debugging information) part is [0x61, 0x62, 0x63], and the frame tail part is [crc, 0xF9]. Then the combined frame [0xF9, 0x07, 0xEF, 0x07, 0x61, 0x62, 0x63, crc, 0xF9], that is, the debugging information output frame, can be sent out through the serial port.

[0069] In yet another example, when partition 2 calls printf("abc") to output "abc" debugging information, the combined frame data may be [0xF9, 0x0B, 0xEF, 0x07, 0x61, 0x62, 0x63, crc, 0xF9].

[0070] In an optional embodiment, in order to share the same serial port for multiple applications or partitions and display the data output from the same serial port in different windows, the following can be used: Figure 2c The multiplexed frame format (i.e., frame format information) shown in FIG. 1 packages the original data to be printed by each application or partition (i.e., debugging information). Each data packet may include three parts: a frame header, original data, and a frame tail. Each part has a corresponding composition rule, i.e., the frame format information is used to characterize the position information of different frame parts and the data generation rule corresponding to each frame part.

[0071] For example, Figure 2b As shown, based on the composition rules of the frame header, the following methods can be used for packet processing:

[0072] 1. For the first byte, it can be the constant 0xF9, which can be used to identify the start of the frame;

[0073] 2. For the second byte, it can be partition_index << 2 | 0x03, which can be used to identify the partition or application to which it belongs;

[0074] 3. For the third byte, it can be a constant 0xEF, which can be used to identify that the frame is a data frame;

[0075] 4. For the 4th and 5th bytes, they can be used to identify the length of the original data; if the lowest bit of the 4th byte is 1, there is no 5th byte, and the length of the original data is: (4th byte >> 1); if the lowest bit of the 4th byte is 0, there is a 5th byte, and the length of the original data is: (5th byte << 7) | (4th byte >> 1).

[0076] For example, Figure 2bAs shown, based on the composition rules of the frame tail part, the following methods can be used for packet processing:

[0077] 1. The frame header can be CRC-checked based on the second-to-last byte. For example, if the first byte constant 0xF9 is not included, 3 or 4 bytes such as id, 0xEF, and len can be checked;

[0078] 2. The penultimate byte may be the constant 0xF9, which may be used to mark the end of the frame.

[0079] In this embodiment, by obtaining the preset frame format information and then calling the debug information output function, the application identifier and debug information of any application are filled into different frame parts according to the frame format information to form a debug information output frame corresponding to any application. The debug information can be packaged and transmitted based on the GSM07.10 protocol frame, and the separate output of debug information of multiple applications can be achieved by using the multiplexing of a single serial port.

[0080] In an exemplary embodiment, before the step of filling the application identifier and debug information of any application into different frame parts according to the frame format information by calling the debug information output function to form a debug information output frame corresponding to any application, the following steps may also be included:

[0081] The processing flow of the debugging information output function is adjusted to obtain an adjusted processing flow; the adjusted processing flow is used to perform a composition operation on the debugging information output frame and a call and send operation on the communication interface.

[0082] In a specific implementation, the processing flow of the debug information output function can be adjusted, such as adding a processing flow before sending the debug information, so that before calling the physical interface driver, the corresponding debug information can be packaged according to the current application or partition ID (i.e., the composition operation of the debug information output frame), and then the packaged debug information can be sent by calling the physical interface driver (i.e., the call and send operation for the communication interface). In this way, when the debug information output function at the bottom layer of the operating system is processed, it is avoided to directly send the debug information by calling the physical interface.

[0083] In this embodiment, by adjusting the processing flow of the debug information output function to obtain an adjusted processing flow, multiple applications can time-share and reuse the same interface to output debug information, thereby avoiding mixing of debug information output.

[0084] In one embodiment, Figure 3As shown, another method for processing application debugging information is provided, and the method is applied to a terminal as an example for explanation, wherein the terminal may include but is not limited to various personal computers, laptops, smart phones, tablet computers, Internet of Things devices, and portable wearable devices. In this embodiment, the following steps are included:

[0085] Step 301, receiving multiple debugging information output frames sent by the embedded device end;

[0086] Among them, the embedded device can be used to obtain debugging information to be printed by multiple applications, generate debugging information output frames corresponding to each application according to the application identifier of each application and the debugging information of each application, and send multiple debugging information output frames to the terminal through the same communication interface of the embedded device.

[0087] As an example, the debugging information output frame may be a GSM07.10 protocol frame.

[0088] Step 302, parsing each of the received debugging information output frames, and identifying an application identifier corresponding to each of the debugging information output frames;

[0089] After receiving the debug information output frame, at the receiving end (ie, the terminal) of the debug information, the GSM07.10 protocol frame can be parsed by parsing software to identify different application programs and obtain the application identifier corresponding to each debug information output frame.

[0090] Step 303: Based on the application identifier corresponding to each debugging information output frame, different windows are used to display debugging information of different application programs in the display interface of the terminal.

[0091] In practical applications, such as Figure 2a As shown, by running the parsing software on the PC, the debugging information of different applications can be automatically displayed in different windows according to the application ID (i.e., application identifier) ​​in the frame header of the debugging information output frame; the number of display windows can be the same as the number of applications corresponding to the received debugging information output frame. Therefore, based on the use of pure software means, it can have its own verification processing, resulting in a low error rate and low hardware performance requirements, and can be applied to the debugging scenarios of multiple applications in the time-sharing and partitioned operating system in the integrated modular avionics.

[0092] In one example, based on the application identifier corresponding to each debugging information output frame, different windows are used to display the debugging information of different applications in the display interface of the terminal, which can include: obtaining preset window configuration information; the window configuration information can be used to indicate different application identifiers corresponding to different windows, and then the debugging information of each application can be sent to the window corresponding to the application identifier of each application for display according to the window configuration information.

[0093] In an optional embodiment, the debugging information of the operating system kernel can be transmitted by assigning a specific ID to the operating system, and then the kernel debugging information can be displayed separately by combining the kernel ID.

[0094] In the above-mentioned application debugging information processing method, multiple debugging information output frames sent by the embedded device are received, and then each received debugging information output frame is parsed to identify the application identifier corresponding to each debugging information output frame. Then, based on the application identifier corresponding to each debugging information output frame, different windows are used to display the debugging information of different applications in the display interface of the terminal, so that different applications can be displayed in independent debugging information windows without affecting each other and convenient to view, which effectively improves the debugging efficiency of the application and helps to improve the efficiency of application development.

[0095] In an exemplary embodiment, the parsing of the received debug information output frames to identify the application identifier corresponding to each debug information output frame may include the following steps:

[0096] By using the frame parsing tool installed in the terminal, when any debug information output frame passes the detection, the application identifier and debug information of the application corresponding to any debug information output frame are extracted from the any debug information output frame.

[0097] In the specific implementation, Figure 2b As shown, for the PC side, when receiving the GSM07.10 frame (i.e., any debug information output frame) sent by the embedded device side through the serial port, the frame header and frame tail parts can be detected by running the parsing software (i.e., the frame parsing tool) to detect whether they are correct, such as whether they start and end with 0xF9. Other detection methods can also be used, which are not specifically limited in this embodiment; then the application ID and original data in the frame can be extracted, i.e., the application identification and debug information of the application corresponding to any debug information output frame, and then the original data (i.e., debug information) can be sent to the window corresponding to the application ID for display.

[0098] In one example, since the current process or partition ID (i.e., application identifier) ​​can be easily obtained at the bottom layer of the operating system, the debugging information of different applications can be seamlessly distinguished by using the partition ID, and then the debugging information can be displayed in different windows on the PC according to the partition ID, thereby reducing the pre-mapping configuration for applications or partitions. It is imperceptible and transparent to applications or partitions, and there is no need to manually search for debugging information. The serial port transmission data can be automatically displayed in different debugging information windows.

[0099] In this embodiment, through the frame parsing tool installed in the terminal, when any debugging information output frame is detected and passed, the application identifier and debugging information of the application corresponding to any debugging information output frame are extracted from any debugging information output frame, and different debugging information windows can be displayed independently without affecting each other and convenient to view, thereby effectively improving the debugging efficiency of the application.

[0100] In one embodiment, Figure 4 As shown, another exemplary description of the process of processing application debugging information is provided. In this embodiment, the method includes the following steps:

[0101] In step 401, the debugging information to be printed of multiple applications is obtained. In step 402, the preset frame format information is obtained; the frame format information is used to characterize the position information of different frame parts and the data generation rules corresponding to each frame part. In step 403, by calling the debugging information output function, the application identifier and debugging information of any application are filled into different frame parts according to the frame format information to form a debugging information output frame corresponding to any application. In step 404, multiple debugging information output frames are sent to the terminal through the same communication interface of the embedded device end. In step 405, multiple debugging information output frames sent by the embedded device end are received. In step 406, through the frame parsing tool installed in the terminal, when any debugging information output frame passes the detection, the application identifier and debugging information of the application corresponding to any debugging information output frame are extracted from any debugging information output frame. In step 407, based on the application identifier corresponding to each debugging information output frame, different windows are used to display the debugging information of different applications in the display interface of the terminal. It should be noted that the specific limitations of the above steps can be found in the above specific limitations of an application debugging information processing method, which will not be repeated here.

[0102] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0103] Based on the same inventive concept, the embodiment of the present application also provides an application debugging system for implementing the above-mentioned application debugging information processing method. The implementation solution provided by the system to solve the problem is similar to the implementation solution recorded in the above-mentioned method, so the specific limitations in one or more application debugging system embodiments provided below can refer to the limitations of the application debugging information processing method above, and will not be repeated here.

[0104] In an exemplary embodiment, Figure 5 As shown, an application debugging system is provided, the application debugging system includes an embedded device end and a terminal,

[0105] The embedded device end is used to obtain debugging information to be printed of multiple applications, generate debugging information output frames corresponding to each application according to the application identifier of each application and the debugging information of each application, and send the multiple debugging information output frames to the terminal through the same communication interface of the embedded device end respectively;

[0106] The terminal is used to receive multiple debugging information output frames sent by the embedded device, parse each of the received debugging information output frames, identify the application identifier corresponding to each of the debugging information output frames, and based on the application identifier corresponding to each of the debugging information output frames, use different windows to display the debugging information of different applications in the display interface of the terminal.

[0107] Based on the same inventive concept, the embodiment of the present application also provides an application debugging information processing device for implementing the application debugging information processing method involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in the one or more application debugging information processing device embodiments provided below can refer to the limitations of the application debugging information processing method above, and will not be repeated here.

[0108] In an exemplary embodiment, Figure 6 As shown, a device for processing application debugging information is provided, comprising:

[0109] The debugging information acquisition module 601 is used to acquire the debugging information to be printed of multiple applications;

[0110] The debugging information output frame generating module 602 is used to generate a debugging information output frame corresponding to each application according to the application identifier of each application and the debugging information of each application;

[0111] The debugging information output frame sending module 603 is used to send multiple debugging information output frames to the terminal through the same communication interface of the embedded device end; the terminal is used to parse the received debugging information output frames, identify the application identifier corresponding to each debugging information output frame, and based on the application identifier corresponding to each debugging information output frame, use different windows to display the debugging information of different applications in the display interface of the terminal.

[0112] In one embodiment, the debugging information output frame generation module 602 includes:

[0113] A frame format information acquisition submodule, used to acquire preset frame format information; the frame format information is used to characterize the position information of different frame parts and the data generation rules corresponding to each of the frame parts;

[0114] The debugging information output frame composition submodule is used to fill the application identification and debugging information of any application into different frame parts according to the frame format information by calling the debugging information output function to compose the debugging information output frame corresponding to any application.

[0115] In one embodiment, the apparatus further comprises:

[0116] The function processing flow adjustment module is used to adjust the processing flow of the debugging information output function to obtain an adjusted processing flow; the adjusted processing flow is used to perform a composition operation on the debugging information output frame and a call and send operation on the communication interface.

[0117] Each module in the above application debugging information processing device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0118] Based on the same inventive concept, the embodiment of the present application also provides an application debugging information processing device for implementing the application debugging information processing method involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in the one or more application debugging information processing device embodiments provided below can refer to the limitations of the application debugging information processing method above, and will not be repeated here.

[0119] In an exemplary embodiment, Figure 7 As shown, another application debugging information processing device is provided, comprising:

[0120] The debugging information output frame receiving module 701 is used to receive multiple debugging information output frames sent by the embedded device end; the embedded device end is used to obtain debugging information to be printed by multiple applications, generate debugging information output frames corresponding to each application according to the application identifier of each application and the debugging information of each application, and send the multiple debugging information output frames to the terminal through the same communication interface of the embedded device end respectively;

[0121] The debugging information output frame parsing module 702 is used to parse the received debugging information output frames and identify the application identifier corresponding to each debugging information output frame;

[0122] The debugging information display module 703 is used to display the debugging information of different application programs in different windows in the display interface of the terminal based on the application identifier corresponding to each debugging information output frame.

[0123] In one embodiment, the debugging information output frame parsing module 702 includes:

[0124] The frame parsing tool processing submodule is used to extract the application identifier and debugging information of the application corresponding to any debug information output frame from any debug information output frame through the frame parsing tool installed in the terminal when any debug information output frame is detected and passed.

[0125] Each module in the above application debugging information processing device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0126] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 8As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a method for processing application debugging information is implemented.

[0127] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Fig. 9 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a method for processing application debugging information is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.

[0128] Those skilled in the art will understand that Figure 8 and Fig. 9The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0129] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0130] Get the debugging information to be printed by multiple applications;

[0131] Generating a debugging information output frame corresponding to each of the applications according to the application identifier of each of the applications and the debugging information of each of the applications;

[0132] The plurality of debugging information output frames are respectively sent to a terminal through the same communication interface of the embedded device; the terminal is used to parse the received debugging information output frames, identify the application identifier corresponding to each debugging information output frame, and based on the application identifier corresponding to each debugging information output frame, use different windows to display the debugging information of different applications in the display interface of the terminal.

[0133] In one embodiment, when the processor executes the computer program, the processor also implements the steps of the application debugging information processing method in other embodiments described above.

[0134] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0135] Receive multiple debugging information output frames sent by the embedded device end; the embedded device end is used to obtain debugging information to be printed by multiple applications, generate debugging information output frames corresponding to each application according to the application identifier of each application and the debugging information of each application, and send the multiple debugging information output frames to the terminal through the same communication interface of the embedded device end respectively;

[0136] Parsing each of the received debugging information output frames, and identifying an application identifier corresponding to each of the debugging information output frames;

[0137] Based on the application identifier corresponding to each debugging information output frame, different windows are used to display debugging information of different application programs in the display interface of the terminal.

[0138] In one embodiment, when the processor executes the computer program, the processor also implements the steps of the application debugging information processing method in other embodiments described above.

[0139] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0140] Get the debugging information to be printed by multiple applications;

[0141] Generating a debugging information output frame corresponding to each of the applications according to the application identifier of each of the applications and the debugging information of each of the applications;

[0142] The plurality of debugging information output frames are respectively sent to a terminal through the same communication interface of the embedded device; the terminal is used to parse the received debugging information output frames, identify the application identifier corresponding to each debugging information output frame, and based on the application identifier corresponding to each debugging information output frame, use different windows to display the debugging information of different applications in the display interface of the terminal.

[0143] In one embodiment, when the computer program is executed by a processor, the steps of the application debugging information processing method in other embodiments described above are also implemented.

[0144] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0145] Receive multiple debugging information output frames sent by the embedded device end; the embedded device end is used to obtain debugging information to be printed by multiple applications, generate debugging information output frames corresponding to each application according to the application identifier of each application and the debugging information of each application, and send the multiple debugging information output frames to the terminal through the same communication interface of the embedded device end respectively;

[0146] Parsing each of the received debugging information output frames, and identifying an application identifier corresponding to each of the debugging information output frames;

[0147] Based on the application identifier corresponding to each debugging information output frame, different windows are used to display debugging information of different application programs in the display interface of the terminal.

[0148] In one embodiment, when the computer program is executed by a processor, the steps of the application debugging information processing method in other embodiments described above are also implemented.

[0149] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0150] Get the debugging information to be printed by multiple applications;

[0151] Generating a debugging information output frame corresponding to each of the applications according to the application identifier of each of the applications and the debugging information of each of the applications;

[0152] The plurality of debugging information output frames are respectively sent to a terminal through the same communication interface of the embedded device; the terminal is used to parse the received debugging information output frames, identify the application identifier corresponding to each debugging information output frame, and based on the application identifier corresponding to each debugging information output frame, use different windows to display the debugging information of different applications in the display interface of the terminal.

[0153] In one embodiment, when the computer program is executed by a processor, the steps of the application debugging information processing method in other embodiments described above are also implemented.

[0154] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0155] Receive multiple debugging information output frames sent by the embedded device end; the embedded device end is used to obtain debugging information to be printed by multiple applications, generate debugging information output frames corresponding to each application according to the application identifier of each application and the debugging information of each application, and send the multiple debugging information output frames to the terminal through the same communication interface of the embedded device end respectively;

[0156] Parsing each of the received debugging information output frames, and identifying an application identifier corresponding to each of the debugging information output frames;

[0157] Based on the application identifier corresponding to each debugging information output frame, different windows are used to display debugging information of different application programs in the display interface of the terminal.

[0158] In one embodiment, when the computer program is executed by a processor, the steps of the application debugging information processing method in other embodiments described above are also implemented.

[0159] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.

[0160] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0161] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0162] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A method for processing application debugging information, characterized in that: The method comprises: Get the debugging information to be printed by multiple applications; Generate a debugging information output frame corresponding to each application according to the application identifier of each application and the debugging information of each application; including: obtaining frame format information of a multiplexed frame, the frame format information is used to characterize the position information of different frame parts and the data generation rules corresponding to each frame part, the frame part includes a frame header and a frame tail, the frame tail includes a byte used to perform CRC check on the frame header, by calling a debugging information output function, filling the application identifier and debugging information of any application into different frame parts according to the frame format information, so as to obtain a debugging information output frame corresponding to any application; the debugging information output frame is a frame that complies with the GSM07.10 protocol, so as to package and transmit the debugging information of each application based on the GSM07.10 protocol frame; The plurality of debugging information output frames are respectively sent to the terminal through the same communication interface of the embedded device; the terminal is used to parse each of the debugging information output frames in the received GSM package, identify the application identifier corresponding to each of the debugging information output frames, and based on the application identifier corresponding to each of the debugging information output frames, use different windows to display the debugging information of different applications in the display interface of the terminal.

2. The method according to claim 1, characterized in that Before the step of filling the application identification and debugging information of any application into different frame parts according to the frame format information by calling the debugging information output function to form a debugging information output frame corresponding to any application, the method further includes: The processing flow of the debugging information output function is adjusted to obtain an adjusted processing flow; the adjusted processing flow is used to perform a composition operation on the debugging information output frame and a call and send operation on the communication interface.

3. A method for processing application debugging information, characterized in that: The method comprises: Receive multiple debugging information output frames sent by the embedded device end; the embedded device end is used to obtain debugging information to be printed by multiple applications, and obtain frame format information of the multiplexed frame, the frame format information is used to characterize the position information of different frame parts and the data generation rules corresponding to each of the frame parts, the frame parts include a frame header and a frame tail, the frame tail includes a byte for performing CRC check on the frame header, by calling the debugging information output function, according to the frame format information, fill the application identifier and debugging information of any application into different frame parts to form a debugging information output frame corresponding to any application, and send the multiple debugging information output frames to the terminal through the same communication interface of the embedded device end respectively; the debugging information output frame is a frame that complies with the GSM07.10 protocol, so as to package and transmit the debugging information of each of the applications based on the GSM07.10 protocol frame; Parsing each of the debugging information output frames in the received GSM packet, and identifying the application identifier corresponding to each of the debugging information output frames; Based on the application identifier corresponding to each debugging information output frame, different windows are used to display debugging information of different application programs in the display interface of the terminal.

4. The method according to claim 3, characterized in that The step of parsing the received debug information output frames to identify the application identifier corresponding to each debug information output frame includes: By using the frame parsing tool installed in the terminal, when any debug information output frame passes the detection, the application identifier and debug information of the application corresponding to any debug information output frame are extracted from the any debug information output frame.

5. An application debugging information processing device, characterized in that: The device comprises: A debugging information acquisition module is used to acquire debugging information to be printed by multiple applications; A debugging information output frame generation module is used to generate a debugging information output frame corresponding to each application according to the application identifier of each application and the debugging information of each application; the debugging information output frame is a frame that complies with the GSM07.10 protocol, so as to package and transmit the debugging information of each application based on the GSM07.10 protocol frame; A debugging information output frame sending module is used to send multiple debugging information output frames to a terminal through the same communication interface of the embedded device end; the terminal is used to parse each debugging information output frame in the received GSM package, identify the application identifier corresponding to each debugging information output frame, and based on the application identifier corresponding to each debugging information output frame, use different windows to display the debugging information of different applications in the display interface of the terminal; Wherein, the debugging information output frame generation module includes: A frame format information acquisition submodule, used to acquire frame format information of a multiplexed frame; the frame format information is used to characterize position information of different frame parts and data generation rules corresponding to each of the frame parts, the frame parts include a frame header and a frame tail, and the frame tail includes a byte for performing CRC check on the frame header; The debugging information output frame composition submodule is used to fill the application identification and debugging information of any application into different frame parts according to the frame format information by calling the debugging information output function to compose the debugging information output frame corresponding to any application.

6. An application debugging information processing device, characterized in that: The device comprises: A debugging information output frame receiving module is used to receive multiple debugging information output frames sent by an embedded device end; the embedded device end is used to obtain debugging information to be printed by multiple applications, and obtain frame format information of a multiplexed frame, wherein the frame format information is used to characterize the position information of different frame parts and the data generation rules corresponding to each of the frame parts, wherein the frame parts include a frame header and a frame tail, and the frame tail includes a byte used to perform CRC check on the frame header, and by calling a debugging information output function, the application identifier and debugging information of any application are filled into different frame parts according to the frame format information to form a debugging information output frame corresponding to any application, and the multiple debugging information output frames are respectively sent to a terminal through the same communication interface of the embedded device end; the debugging information output frame is a frame that complies with the GSM07.10 protocol, so as to package and transmit the debugging information of each of the applications based on the GSM07.10 protocol frame; A debugging information output frame parsing module, used for parsing each of the debugging information output frames in the received GSM package, and identifying the application identifier corresponding to each of the debugging information output frames; The debugging information display module is used to display the debugging information of different application programs in different windows in the display interface of the terminal based on the application identifier corresponding to each debugging information output frame.

7. An application debugging system, characterized in that: The application debugging system includes an embedded device end and a terminal. The embedded device end is used to obtain the debugging information to be printed of multiple applications, obtain the frame format information of the multiplexed frame, the frame format information is used to characterize the position information of different frame parts, the data generation rules corresponding to each of the frame parts, the frame parts include a frame header and a frame tail, the frame tail includes a byte used to perform CRC check on the frame header, by calling the debugging information output function, according to the frame format information, filling the application identifier and debugging information of any application into different frame parts to form a debugging information output frame corresponding to any application, and sending the multiple debugging information output frames to the terminal through the same communication interface of the embedded device end respectively; The debugging information output frame is a frame that complies with the GSM07.10 protocol, so as to package and transmit the debugging information of each application based on the GSM07.10 protocol frame; The terminal is used to receive multiple debugging information output frames sent by the embedded device, parse each of the debugging information output frames in the received GSM package, identify the application identifier corresponding to each of the debugging information output frames, and based on the application identifier corresponding to each of the debugging information output frames, use different windows to display the debugging information of different applications in the display interface of the terminal.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the processor implements the steps of the method according to any one of claims 1 to 2 and / or the steps of the method according to any one of claims 3 to 4.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 2 and / or the steps of the method according to any one of claims 3 to 4 are implemented.