Data transmission method, device and equipment

The modem debugging data is compressed and encoded by the hardened processor, and the USB accelerator is used to interact with the USB controller, which solves the problem of slow debugging data transmission and loss, and improves the transmission efficiency and speed.

CN118869141AActive Publication Date: 2024-10-29XIAMEN UNISOC TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410826059.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-24
Publication Date
2024-10-29
Estimated Expiration
2044-06-24

AI Technical Summary

Technical Problem

The transmission speed of debugging data in the existing technology is slow, and a large amount of data may be lost during the transmission process, resulting in low debugging efficiency.

Method used

A hardened processor is used to compress and encode the debugging data sent by the modem, and interacts with the USB controller through the USB accelerator to reduce the amount of data transmission and software processing, avoid triggering USB interrupts, and reduce CPU performance degradation.

Benefits of technology

It improves the transmission speed and efficiency of debugging data, reduces data loss, and reduces the occupation of modem and control device CPU resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118869141A_ABST
    Figure CN118869141A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a data transmission method, device and equipment, the method is applied to debugging equipment, the debugging equipment comprises a modem, a hardening processor, a universal serial bus (USB) accelerator and a USB controller, the hardening processor is respectively connected with the modem and the USB accelerator, and the USB accelerator is also connected with the USB controller. The debugging device receives the debugging data sent by the modem through the hardening processor, compresses and encodes the debugging data to obtain encoded data, and stores the encoded data; controlling a USB controller through a USB accelerator to obtain coded data; and sending the coded data to the control equipment based on the USB bus through the USB controller. According to the method, the debugging data is compressed and coded through the debugging device, the data transmission quantity and the CPU resource consumption are reduced, the problem that a large amount of debugging data is lost in the data transmission process is relieved, the data transmission speed is increased, and the data transmission efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer technology, and in particular to a data transmission method, device and equipment. Background Art

[0002] In the software design of the modem, a large amount of debugging data needs to be added. This debugging data needs to be input into the control device so that the control device can quickly locate the problem when the modem fails.

[0003] In the related art, the debugging device may include a modem, an application processor (AP) and a USB controller, and the debugging device may communicate with the control device through the USB controller. Specifically, the debugging data may be transmitted to the AP through the modem, and the AP may upload the debugging data to the control device based on the USB controller after triggering an interrupt.

[0004] However, when there is a large amount of debugging data that needs to be transmitted, using related technologies to transmit these debugging data requires a large amount of central processing unit (CPU) resources. Not only is the transmission speed of the debugging data slow, but a large amount of debugging data may be lost during the transmission process, resulting in low transmission efficiency of the debugging data. Summary of the invention

[0005] The embodiments of the present application provide a data transmission method, apparatus and device to solve the problem in the related art that the transmission speed of the debug log is slow and a large number of debug logs may be lost during the transmission process, resulting in low transmission efficiency of the debug log.

[0006] In a first aspect, an embodiment of the present application provides a data transmission method, wherein the debugging device includes a modem, a hardened processor, a universal serial bus (USB) accelerator, and a USB controller, wherein the hardened processor is connected to the modem and the USB accelerator, respectively, and the USB accelerator is also connected to the USB controller, and the method includes:

[0007] receiving the debugging data sent by the modem through the hardened processor, compressing and encoding the debugging data to obtain encoded data, and storing the encoded data;

[0008] Controlling the USB controller through the USB accelerator to obtain the encoded data;

[0009] The encoded data is sent to a control device via the USB controller based on a USB bus.

[0010] In a possible implementation, the debugging device further includes an application processor, and the application processor is connected to the hardened processor and the USB accelerator respectively; and controlling the USB controller through the USB accelerator to obtain the encoded data includes:

[0011] Controlling the USB accelerator by the application processor to send a configuration instruction to the USB controller, wherein the configuration instruction is used to indicate a storage address of the encoded data;

[0012] According to the configuration instruction, the storage address is determined by the USB controller, and the encoded data is obtained based on the storage address.

[0013] In a possible implementation, controlling the USB accelerator by the application processor to send a configuration instruction to the USB controller includes:

[0014] In response to notification information sent by the hardened processor, controlling the USB accelerator to generate the configuration instruction through the application processor, wherein the notification information includes a storage address of the encoded data;

[0015] Sending a response signal to the application processor through the USB accelerator, wherein the response signal is used to indicate that the configuration instruction has been generated;

[0016] In response to the response signal, sending a trigger signal to the USB accelerator through the application processor;

[0017] In response to the trigger signal, the configuration instruction is sent to the USB controller through the USB accelerator.

[0018] In a possible implementation manner, compressing and encoding the debugging data to obtain encoded data includes:

[0019] Based on a compression algorithm, compressing the debugging data to obtain compressed data;

[0020] The compressed data is encoded to obtain encoded data, wherein the encoded data includes frame header information and transmission data, wherein the frame header information is used to parse the encoded data, and the transmission data includes the compressed data.

[0021] In a possible implementation, storing the encoded data includes:

[0022] A control instruction is sent to a storage controller through the hardened processor, where the control instruction is used to instruct the storage controller to store the encoded data in a target memory.

[0023] In a first aspect, an embodiment of the present application provides a data transmission method, which is applied to a control device, and the method includes:

[0024] Receiving coded data sent by a debugging device, wherein the debugging device is connected to the control device via a universal serial bus (USB) bus;

[0025] Performing verification processing on the encoded data to obtain a verification result;

[0026] When the verification result is that the verification is passed, the encoded data is parsed to obtain frame header information and transmission data;

[0027] According to the frame header information, obtaining compressed data in the transmission data;

[0028] The compressed data is decompressed to obtain debugging data.

[0029] In a possible implementation, obtaining compressed data from the transmission data according to the frame header information includes:

[0030] Determining the location information of the compressed data according to the frame header information;

[0031] The compressed data is extracted from the transmission data according to the position information.

[0032] In a possible implementation, after obtaining the debugging data, the method further includes:

[0033] Determine the target channel corresponding to the debugging data according to the frame header information;

[0034] determining a display interface corresponding to the target channel, and displaying the debugging data on the display interface; or,

[0035] A storage space corresponding to the target channel is determined, and the debugging data is stored in the storage space.

[0036] In a third aspect, an embodiment of the present application provides a data transmission device, which is applied to a control device, including:

[0037] A receiving module, used for receiving coded data sent by a debugging device, wherein the debugging device is connected to the control device via a universal serial bus (USB);

[0038] A verification module, used to perform verification processing on the coded data to obtain a verification result;

[0039] A parsing module, used for parsing the coded data to obtain frame header information and transmission data when the verification result is a verification pass;

[0040] An acquisition module, used for acquiring compressed data from the transmission data according to the frame header information;

[0041] The decompression module is used to decompress the compressed data to obtain debugging data.

[0042] In a possible implementation manner, the acquisition module is specifically used to:

[0043] Determining the location information of the compressed data according to the frame header information;

[0044] The compressed data is extracted from the transmission data according to the position information.

[0045] In a possible implementation, the data transmission device further includes a determination module, a display module, and a storage module, wherein:

[0046] The determination module is used to determine the target channel corresponding to the debugging data according to the frame header information;

[0047] The determination module is further used to determine a display interface corresponding to the target channel;

[0048] The display module is used to display the debugging data on the display interface; or,

[0049] The determination module is further used to determine the storage space corresponding to the target channel;

[0050] The storage module is used to store the debugging data in the storage space.

[0051] In a fourth aspect, an embodiment of the present application provides a chip having a computer program stored thereon, wherein when the computer program is executed by the chip, the method as described in any one of the first aspects is implemented.

[0052] In a fifth aspect, an embodiment of the present application provides a chip having a computer program stored thereon, and when the computer program is executed by the chip, the method as described in any one of the second aspects is implemented.

[0053] In a sixth aspect, an embodiment of the present application provides a chip module, on which a computer program is stored. When the computer program is executed by the chip module, the method described in any one of the first aspects is implemented.

[0054] In a seventh aspect, an embodiment of the present application provides a chip module, on which a computer program is stored. When the computer program is executed by the chip module, the method described in any one of the second aspects is implemented.

[0055] In an eighth aspect, an embodiment of the present application provides a debugging device, the debugging device comprising a modem, a hardened processor, an application processor, a universal serial bus (USB) accelerator, and a USB controller, wherein:

[0056] The hardened processor is connected to the modem, the USB accelerator and the application processor respectively, and the USB accelerator is also connected to the USB controller and the application processor respectively;

[0057] The modem, the hardened processor, the application processor, the USB accelerator and the USB controller are used to implement the method as described in any one of the first aspects.

[0058] In a ninth aspect, an embodiment of the present application provides a control device, including:

[0059] at least one processor; and

[0060] a memory communicatively connected to the at least one processor; wherein,

[0061] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute any method described in the second aspect.

[0062] In a tenth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer execution instructions, and when the computer execution instructions are executed by a processor, they are used to implement the method described in any one of the first aspects.

[0063] In the eleventh aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer execution instructions, and when the computer execution instructions are executed by a processor, they are used to implement the method described in any one of the second aspects.

[0064] In a twelfth aspect, an embodiment of the present application provides a computer program product, including a computer program, which implements any method in the first aspect when executed by a processor.

[0065] In a thirteenth aspect, an embodiment of the present application provides a computer program product, including a computer program, which implements any method in the second aspect when executed by a processor.

[0066] The data transmission method, apparatus and equipment provided by the embodiments of the present application, in which the debugging device can compress the debugging data sent by the modem based on the hardened processor, thereby reducing the amount of data transmission; the hardened processor encodes the compressed transmission data, thereby reducing the software processing process of the modem for data transmission, which is beneficial to reducing the impact of the software processing process on the MIPS performance of the modem; the USB accelerator interacts with the USB controller to obtain the debugging data without triggering the USB interrupt, which is beneficial to alleviating the problem of CPU performance degradation caused by a large number of USB interrupts during the data transmission process, thereby alleviating the problem of a large amount of debugging data loss during the data transmission process, and reducing the impact of the debugging data loss on the debugging process; the control device receives the data sent by the debugging device as compressed data, which can avoid the data transmission process occupying more CPU resources of the control device, thereby helping to speed up the data transmission speed between the debugging device and the control device and improve the data transmission efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0067] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0068] Figure 1 A schematic diagram of a data transmission scenario in the related art;

[0069] Figure 2 A schematic diagram of the hardware structure of a debugging device provided in an embodiment of the present application;

[0070] Figure 3 A flowchart of a data transmission method provided in an embodiment of the present application;

[0071] Figure 4 A schematic diagram of encoding data provided in an embodiment of the present application;

[0072] Figure 5 A flowchart of another data transmission method provided in an embodiment of the present application;

[0073] Figure 6 A schematic diagram of a data transmission process provided in an embodiment of the present application;

[0074] Figure 7 A schematic diagram of the structure of a data transmission device provided in an embodiment of the present application;

[0075] Figure 8 A schematic diagram of the structure of another data transmission device provided in an embodiment of the present application;

[0076] Fig. 9 A schematic diagram of the structure of a control device provided in an embodiment of the present application.

[0077] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0078] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0079] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0080] First, the terms involved in the embodiments of the present application are explained.

[0081] Average execution speed of single-word fixed-point instructions (Million Instructions Per Second, MIPS): indicates the number of millions of instructions executed by the CPU per second.

[0082] In order to facilitate understanding of the technical solutions of the embodiments of the present application, the application scenarios of the embodiments of the present application are introduced below.

[0083] At present, in order to meet the needs of 5G high-speed communication, the modem of the equipment (including chips, chip modules and terminal equipment) is relatively complex in software design or hardware design. During the debugging process, in order to quickly locate the problem of the modem of the debugging equipment, a large number of debug logs need to be added to the software design of the modem. These debug logs need to be output to the control device, so that when problems occur during the debugging process, the control device can quickly locate the problems based on these debug logs.

[0084] In the related art, the debugging device can be Figure 1 The scenario shown in the embodiment transmits these test logs to the control device. Figure 1 is a schematic diagram of a data transmission scenario in the related technology. Figure 1 , including debugging equipment and control equipment, including:

[0085] The debugging device may include a modem, an application processor (AP) and a USB controller. The application processor (AP) may be connected to the modem and the USB controller respectively, and the USB controller may be connected to the control device via a USB bus.

[0086] The debugging device can transmit debugging data to an application processor (AP) via a modem, and the AP uploads the debugging data to the control device based on a USB controller after triggering an interrupt.

[0087] The control device is used for receiving debugging data sent by the debugging device based on a USB bus connected to the debugging device, and managing the debugging device according to the debugging data.

[0088] Exemplarily, the debugging device may include a system on a chip (SoC), the debugging data may include a debug log, and the control device may be referred to as a personal computer (PC).

[0089] However, in the 5G communication environment, there is usually a large amount of debugging data that needs to be transmitted. Figure 1 The debugging device and data transmission method shown need to occupy a large amount of CPU resources of the debugging device and the control device when transmitting the debugging data. Not only is the transmission speed of the debugging data slow, but a large amount of debugging data may be lost during the transmission process, resulting in low debugging efficiency.

[0090] In view of this, an embodiment of the present application provides a debugging device. When transmitting debugging data to a control device based on the debugging device, it can not only reduce the CPU resource consumption and avoid the large-scale loss of debugging data, but also improve the transmission efficiency of the debugging data, thereby improving the debugging efficiency.

[0091] Next, combine Figure 2 The hardware structure of the debugging device provided in the embodiment of the present application is described in detail.

[0092] Figure 2 A hardware structure diagram of a debugging device provided in an embodiment of the present application. Figure 2The debugging device 10 may include a modem 11, a hardened processor 12, an application processor 13, a universal serial bus USB accelerator 14 and a USB controller 15, wherein:

[0093] The hardened processor 12 is connected to the modem 11 , the USB accelerator 14 and the application processor 13 respectively. The USB accelerator 14 is further connected to the USB controller 15 and the application processor 13 respectively.

[0094] In some other examples, the application processor 13 may also be connected to a USB controller, and the application processor 13 may be used to configure some initialization parameters of the USB controller.

[0095] The modem 11, the hardened processor 12, the application processor 13, the USB accelerator 14 and the USB controller 15 can be used to implement the data transmission method provided in the embodiment of the present application.

[0096] The present application provides a data transmission method based on Figure 2 The debugging device shown in the embodiment interacts with the control device to transmit debugging data. The debugging device 10 can be used to receive the debugging data sent by the modem 11 through the hardened processor 12, compress and encode the debugging data to obtain the encoded data, and store the encoded data; control the USB controller 15 through the USB accelerator 14 to obtain the encoded data; and send the encoded data to the control device 30 based on the USB bus through the USB controller 15. The control device 30 can be used to, after receiving the encoded data, verify the encoded data to obtain a verification result; when the verification result is that the verification is passed, parse the encoded data to obtain frame header information and transmission data; obtain compressed data in the transmission data according to the frame header information; decompress the compressed data to obtain debugging data. In the above method, the debugging device can compress the debugging data sent by the modem based on the hardened processor, thereby reducing the amount of data transmission; the hardened processor can encode the compressed transmission data, thereby reducing the software processing process of the modem for data transmission, which is beneficial to reducing the impact of the software processing process on the MIPS performance of the modem; the USB accelerator interacts with the USB controller to obtain debugging data without triggering USB interrupts, which is beneficial to alleviating the problem of CPU performance degradation caused by a large number of USB interrupts during data transmission, thereby alleviating the problem of large-scale loss of debugging data during data transmission, and reducing the impact of the loss of debugging data on the debugging process; the control device receives the data sent by the debugging device as compressed data, which can avoid the data transmission process occupying more CPU resources of the control device, thereby helping to speed up the data transmission speed between the debugging device and the control device and improve data transmission efficiency.

[0097] The method shown in the present application is described below through specific embodiments. It should be noted that the following embodiments can exist independently or in combination with each other, and the same or similar contents will not be described repeatedly in different embodiments.

[0098] Figure 3 A flow chart of a data transmission method provided in an embodiment of the present application. Figure 3 , the method may include:

[0099] S301. The debugging device receives debugging data sent by the modem through a hardened processor, compresses and encodes the debugging data to obtain encoded data, and stores the encoded data.

[0100] In a possible implementation, the hardened processor may determine the coded data based on the following method: based on a compression algorithm, compress the debugging data to obtain compressed data; and encode the compressed data to obtain the coded data.

[0101] It should be noted that the compression algorithm may be any compression algorithm used for data compression processing in the related art, and the present application does not limit the type of the compression algorithm. For example, the compression algorithm may be the LZMA (Lempel-Ziv-Markovchain-Algorithm) algorithm.

[0102] The coded data may include frame header information and transmission data. The frame header information may be used to parse the coded data. The transmission data includes compressed data. Figure 4 , a form of encoded data provided in an embodiment of the present application is described in detail.

[0103] Figure 4 A schematic diagram of encoding data provided in an embodiment of the present application. Figure 4 , the encoded data may include frame header information and transmission data. Among them:

[0104] The frame header information may include protocol header information and diagnostic (diag) frame header information. The protocol header information may include a protocol header (magic), a total length of each frame of data transmitted (payload len), a channel identifier (chan num) and check sum information (check sum). The diagnostic frame header information may include a frame number and a timestamp of each frame of data transmitted.

[0105] The protocol header may be a protocol header customized by the debugging device and the control device, and the protocol header is used for the control device to parse the encoded data. For example, the protocol header may be a Session Management Protocol (SMP) protocol header.

[0106] The total length of each frame of transmitted data can be used to indicate the total length of the compressed data to the control device, so that the control device can locate the compressed data in the transmitted data.

[0107] The channel identifier can be used to control the device to determine the target channel corresponding to the encoded data. It is understood that the modem can include multiple subsystems, and different channels can be set for different subsystems, so that the modem can have multiple channels. Different subsystems in the modem can simultaneously transmit the debugging data of the subsystem to the hardened processor based on the channel corresponding to the subsystem, and the target channel corresponding to each debugging data can be indicated based on the channel identifier.

[0108] The sum check information is used to perform a sum check on the coded data of the control device.

[0109] The transmission data may include compressed data, or compressed data (payload) and tail byte. It is understandable that the data amount of each frame of data transmitted by the hardened processor may be a fixed value, and the data amount of the compressed data (payload) may be less than or equal to the fixed value. When the data amount of the compressed data is equal to the fixed value, the transmission data includes the compressed data; when the data amount of the compressed data is less than the fixed value, the remaining data amount needs to be padded, and the transmission data may include the compressed data and the tail byte.

[0110] S302: The debugging device controls the USB controller through the USB accelerator to obtain the encoded data.

[0111] In one implementation, the USB accelerator sends a configuration instruction to the USB controller, the configuration instruction can be used to indicate the storage address of the encoded data that the USB controller needs to transmit, and the configuration instruction can also be used to indicate the data volume of the encoded data that the USB needs to transmit. The USB controller can determine the storage address of the encoded data based on the configuration instruction, and obtain the encoded data based on the storage address.

[0112] S303: The debugging device sends the encoded data to the control device via the USB controller based on the USB bus.

[0113] Based on the current configuration instruction, the USB controller can obtain the coded data indicated by the current configuration instruction and transmit the coded data to the control device; when the coded data transmission is completed, the USB controller can send a feedback signal to the USB accelerator, and the feedback signal is used to indicate to the USB controller that the coded data indicated by the current configuration instruction has been transmitted. After the USB accelerator receives the feedback signal, it can send the next configuration instruction to the USB controller, so that the USB controller can start the next data transmission process based on the next configuration instruction.

[0114] The debugging device is connected to the control device via a universal serial bus (USB). After receiving the encoded data, the control device can perform the following steps:

[0115] S304: The control device verifies the coded data to obtain a verification result.

[0116] The verification result may be a verification pass or a verification fail. When the verification result is a verification fail, the control device may discard the coded data received this time and receive the next coded data.

[0117] In one implementation, the control device may interact with the debugging device in advance to negotiate the verification rules of the coded data and store the negotiated verification rules. In subsequent use, after the control device receives the coded data sent by the debugging device, the negotiated verification rules may be retrieved to perform verification processing on the coded data sent by the debugging device.

[0118] The verification process may include: checking whether the format of the encoded data is a preset format, and checking whether the data amount of the encoded data satisfies a fixed value.

[0119] In another implementation, the coded data may further include verification data, where the verification data is used to indicate a verification rule for the coded data by the control device, and the control device may verify the coded data based on the verification rule indicated by the verification data.

[0120] S305: When the verification result is that the verification is passed, the control device parses and processes the encoded data to obtain frame header information and transmission data.

[0121] In one implementation, the control device may interact with the debugging device in advance to negotiate the parsing method of the coded data and store the negotiated parsing method. In subsequent use, the control device may call the negotiated parsing method to parse the coded data sent by the debugging device.

[0122] In another implementation, the coded data may further include parsing information, where the parsing information is used to indicate a parsing method of the coded data to the control device, and the control device may parse the coded data based on the parsing method indicated by the parsing information.

[0123] S306: The control device obtains compressed data from the transmission data according to the frame header information.

[0124] The frame header information may include the total length (payload len) of each frame of transmitted data, and the control device may determine that the compressed data is data from the start position to the position of the target length in the transmitted data.

[0125] S307: The control device decompresses the compressed data to obtain debugging data.

[0126] In one implementation, the control device may receive and store the decompression method sent by the debugging device in advance. In subsequent use, the control device may call the decompression method to decompress the compressed data.

[0127] In another implementation, the encoded data may further include decompression information, where the decompression information is used to indicate a decompression method used by the control device to perform decompression processing on the compressed data. The control device may decompress the compressed data based on the decompression method indicated by the decompression information.

[0128] The data transmission method provided in the embodiment of the present application compresses and encodes the debugging data through the debugging device, thereby reducing the data transmission volume and reducing the impact of the software processing process of the data transmission on the MIPS performance of the modem; the USB accelerator interacts with the USB controller to obtain the debugging data without triggering the USB interrupt, which is conducive to alleviating the problem of CPU performance degradation due to a large number of USB interrupts during the data transmission process, and alleviates the problem of a large amount of debugging data loss during the data transmission process; it is conducive to reducing the CPU resources occupied by the control device during the data transmission process, speeding up the data transmission speed between the debugging device and the control device, and improving the data transmission efficiency.

[0129] Figure 5 A flowchart of another data transmission method provided in an embodiment of the present application. Figure 5 , the method specifically comprises:

[0130] S501: The debugging device receives debugging data sent by a modem through a hardened processor.

[0131] The modem may write the debugging data into a memory of the modem based on a first in first out (FIFO) data interaction method.

[0132] S502: The debugging device compresses the debugging data based on a compression algorithm through a hardened processor to obtain compressed data.

[0133] S503: The debugging device encodes the compressed data through a hardened processor to obtain encoded data.

[0134] The encoded data includes frame header information and transmission data. The frame header information is used to parse and process the encoded data, and the transmission data includes compressed data.

[0135] It should be noted that the specific execution process of steps S502 and S503 may refer to the specific execution process of S301, which will not be described in detail here.

[0136] S504: The debugging device sends a control instruction to the storage controller through the hardened processor.

[0137] The control instruction is used to instruct the storage controller to store the encoded data in the target memory.

[0138] The storage controller may be a controller used for data storage or data transfer in the related art. Exemplarily, the storage controller may be a direct memory access (DMA) controller.

[0139] The target memory may be a double data rate (DDR) synchronous dynamic random access memory.

[0140] The debugging device may further include an application processor, which is connected to the hardened processor and the USB accelerator respectively.

[0141] S505: The debugging device controls the USB accelerator through the application processor to send a configuration instruction to the USB controller.

[0142] The configuration instruction may be used to indicate the storage address of the coded data. The configuration instruction may also be used to indicate the amount of coded data to be transmitted.

[0143] Optionally, the application processor may control the USB accelerator in the following manner: in response to the notification information sent by the hardened processor, the debugging device controls the USB accelerator to generate configuration instructions through the application processor; the debugging device sends a response signal to the application processor through the USB accelerator; in response to the response signal, the debugging device sends a trigger signal to the USB accelerator through the application processor; in response to the trigger signal, the debugging device sends the configuration instructions to the USB controller through the USB accelerator.

[0144] It is understandable that after the hardened processor stores the coded data in the target memory, the hardened processor may send notification information to the application processor to inform the application processor that the data transmission process can be started. The notification information may include the storage address of the coded data and the data volume of the coded data.

[0145] The application processor may send a control instruction to the USB accelerator, the control instruction being used to instruct the USB accelerator to generate a configuration instruction. After the configuration instruction is configured, the USB accelerator may send a response signal to the application processor, the response signal being used to indicate that the configuration instruction has been generated.

[0146] S506: According to the configuration instruction, the debugging device determines the storage address through the USB controller, and obtains the encoded data based on the storage address.

[0147] The USB controller may determine a storage space corresponding to the encoded data based on the storage address, and obtain the encoded data in the storage space.

[0148] S507: The debugging device sends the encoded data to the control device via the USB controller based on the USB bus.

[0149] The debugging device is connected to the control device via a universal serial bus (USB). Specifically, the control device can be connected to a USB controller in the debugging device via the USB bus. The control device receives the encoded data and executes the following steps S508 to S514:

[0150] S508: The control device verifies the coded data to obtain a verification result.

[0151] S509: When the verification result is that the verification is passed, the control device parses and processes the encoded data to obtain frame header information and transmission data.

[0152] S510: The control device determines the location information of the compressed data according to the frame header information, and extracts the compressed data from the transmission data according to the location information.

[0153] S511. The control device decompresses the compressed data to obtain debugging data.

[0154] It should be noted that the specific execution process of steps S509 to S511 can refer to the specific execution process of steps S304 to S306.

[0155] S512: The control device determines the target channel corresponding to the debugging data according to the frame header information.

[0156] The frame header information may include a channel identifier, and the target channel may be determined according to the channel identifier.

[0157] S513: The control device determines a display interface corresponding to the target channel, and displays the debugging data on the display interface.

[0158] The control device may determine the display area corresponding to the debugging data in the display interface, and render the debugging data into the display area based on a rendering technology in related technologies.

[0159] S514: The control device determines a storage space corresponding to the target channel, and stores the debugging data in the storage space.

[0160] The control device may determine the frame number corresponding to each debugging data according to the frame header information, and store the debugging data corresponding to each frame number in the storage space in sequence according to the frame number sequence.

[0161] After completing the processing of the current coded data, the control device may receive the next coded data and repeat steps S508 to S514 to process the next coded data.

[0162] The data transmission method provided in the embodiment of the present application compresses and encodes the debugging data through the debugging device, which is beneficial to reducing the data transmission volume and reducing the impact of the software processing process of data transmission on the MIPS performance of the modem; the USB accelerator interacts with the USB controller to obtain the debugging data without triggering the USB interrupt, which is beneficial to eliminating the problem of CPU performance degradation due to a large number of USB interrupts during the data transmission process, and reduces the problem of a large amount of debugging data loss during the data transmission process; it is beneficial to reduce the CPU resources occupied by the control device during the data transmission process, speed up the data transmission speed between the debugging device and the control device, and improve the data transmission efficiency.

[0163] Figure 6 A schematic diagram of a data transmission process provided in an embodiment of the present application. Figure 6 In the debugging device, the modem can send debugging data to the hardened processor, and the hardened processor can compress and encode the debugging data to obtain encoded data, and store the encoded data in the DDR memory. When the hardened processor confirms that the encoded data has been successfully stored, it can send a notification message to the application processor, indicating the storage address of the encoded data through the notification message. After receiving the notification message, the application processor can send a control instruction to the USB accelerator to control the USB accelerator to generate a configuration instruction. After generating the configuration instruction, the USB accelerator can send a response signal to the application processor, and inform the application processor through the response signal that the configuration instruction has been generated. In response to the response signal, the application processor can send a trigger signal to the USB accelerator, and trigger the USB accelerator to send the configuration instruction to the USB controller through the trigger signal. The USB controller can determine the storage address of the encoded data based on the configuration instruction sent by the USB accelerator, and move the encoded data in the DDR memory based on the storage address, and send the encoded data to the control device after the moving is completed.

[0164] The control device can verify the coded data, and parse the coded data after the verification is passed to obtain compressed data; and then decompress the compressed data to obtain debugging data.

[0165] Figure 7This is a schematic diagram of the structure of a data transmission device provided in an embodiment of the present application. The data transmission device may be a chip or a chip module. Figure 7 , the data transmission device 20 may include:

[0166] The receiving module 21 is used to receive the coded data sent by the debugging device, and the debugging device is connected to the control device via a universal serial bus USB bus;

[0167] The verification module 22 is used to perform verification processing on the encoded data to obtain a verification result;

[0168] The parsing module 23 is used to parse the coded data to obtain frame header information and transmission data when the verification result is verification passed;

[0169] An acquisition module 24, configured to acquire compressed data from the transmission data according to the frame header information;

[0170] The decompression module 25 is used to decompress the compressed data to obtain debugging data.

[0171] In a possible implementation manner, the acquisition module 24 is specifically configured to:

[0172] Determining the location information of the compressed data according to the frame header information;

[0173] The compressed data is extracted from the transmission data according to the position information.

[0174] Figure 8 This is a schematic diagram of the structure of another data transmission device provided in an embodiment of the present application. The data transmission device may be a chip or a chip module. Figure 8 ,exist Figure 7 Based on the structure of the data transmission device 20 shown in FIG. 1 , the data transmission device 20 further includes a determination module 26, a display module 27 and a storage module 28, wherein:

[0175] The determination module 26 is used to determine the target channel corresponding to the debugging data according to the frame header information;

[0176] The determination module 26 is further used to determine a display interface corresponding to the target channel;

[0177] The display module 27 is used to display the debugging data on the display interface; or,

[0178] The determination module 26 is further used to determine the storage space corresponding to the target channel;

[0179] The storage module 28 is used to store the debugging data in the storage space.

[0180] The data transmission device provided in the embodiment of the present application can execute the technical solution shown in the above method embodiment, and its implementation principle and beneficial effects are similar, which will not be repeated here.

[0181] Fig. 9 This is a schematic diagram of the structure of the control device provided in the embodiment of the present application. Fig. 9 The control device 30 may include: a memory 31 and a processor 32. Exemplarily, the memory 31 and the processor 32 are interconnected via a bus 33.

[0182] The memory 31 is used to store program instructions;

[0183] The processor 32 is used to execute the program instructions stored in the memory, so as to enable the control device 30 to execute the method shown in the above method embodiment.

[0184] It is understood that the control device may include at least one processor and a memory in communication with the at least one processor. The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method shown in the above embodiment.

[0185] The control device provided in the embodiment of the present application can execute the technical solution shown in the above method embodiment, and its implementation principle and beneficial effects are similar, which will not be repeated here.

[0186] An embodiment of the present application provides a computer-readable storage medium, which is applied to a debugging device. The computer-readable storage medium stores computer-executable instructions, which are used to implement the above-mentioned data transmission method when the computer-executable instructions are executed by a processor.

[0187] An embodiment of the present application provides a computer-readable storage medium, which is applied to a control device. The computer-readable storage medium stores computer-executable instructions, which are used to implement the above-mentioned data transmission method when the computer-executable instructions are executed by a processor.

[0188] The embodiment of the present application may also provide a computer program product, which is applied to a debugging device and includes a computer program. When the computer program is executed by a processor, the above-mentioned data transmission method can be implemented.

[0189] The embodiment of the present application may also provide a computer program product, which is applied to a control device and includes a computer program. When the computer program is executed by a processor, the above-mentioned data transmission method can be implemented.

[0190] All or part of the steps of the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a readable memory. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned memory (storage medium) includes: read-only memory (ROM), random access memory (RAM), flash memory, hard disk, solid state drive, magnetic tape, floppy disk, optical disc and any combination thereof.

[0191] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processing unit of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0192] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0193] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0194] Obviously, those skilled in the art can make various changes and modifications to the embodiments of the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the embodiments of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

[0195] In the present application, the term "include" and its variations may refer to non-restrictive inclusion; the term "or" and its variations may refer to "and / or". The terms "first", "second", etc. in the present application are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. In the present application, "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the previously associated objects are in an "or" relationship.

Claims

1. A data transmission method, characterized in that: The method is applied to a debugging device, wherein the debugging device comprises a modem, a hardened processor, a universal serial bus (USB) accelerator and a USB controller, wherein the hardened processor is connected to the modem and the USB accelerator respectively, and the USB accelerator is also connected to the USB controller, and the method comprises: receiving the debugging data sent by the modem through the hardened processor, compressing and encoding the debugging data to obtain encoded data, and storing the encoded data; Controlling the USB controller through the USB accelerator to obtain the encoded data; The encoded data is sent to a control device via the USB controller based on a USB bus.

2. The method according to claim 1, characterized in that The debugging device further includes an application processor, which is connected to the hardened processor and the USB accelerator respectively; the step of controlling the USB controller through the USB accelerator to obtain the encoded data includes: Controlling the USB accelerator by the application processor to send a configuration instruction to the USB controller, wherein the configuration instruction is used to indicate a storage address of the encoded data; According to the configuration instruction, the storage address is determined by the USB controller, and the encoded data is obtained based on the storage address.

3. The method according to claim 2, characterized in that Controlling the USB accelerator by the application processor to send a configuration instruction to the USB controller includes: In response to notification information sent by the hardened processor, controlling the USB accelerator to generate the configuration instruction through the application processor, wherein the notification information includes a storage address of the encoded data; Sending a response signal to the application processor through the USB accelerator, wherein the response signal is used to indicate that the configuration instruction has been generated; In response to the response signal, sending a trigger signal to the USB accelerator through the application processor; In response to the trigger signal, the configuration instruction is sent to the USB controller through the USB accelerator.

4. The method according to any one of claims 1 to 3, characterized in that: The debugging data is compressed and encoded to obtain encoded data, including: Based on a compression algorithm, compressing the debugging data to obtain compressed data; The compressed data is encoded to obtain encoded data, wherein the encoded data includes frame header information and transmission data, wherein the frame header information is used to parse the encoded data, and the transmission data includes the compressed data.

5. The method according to any one of claims 1 to 4, characterized in that: Storing the encoded data, comprising: A control instruction is sent to a storage controller through the hardened processor, where the control instruction is used to instruct the storage controller to store the encoded data in a target memory.

6. A data transmission method, characterized in that: Applied to a control device, the method comprises: Receiving coded data sent by a debugging device, wherein the debugging device is connected to the control device via a universal serial bus (USB) bus; Performing verification processing on the encoded data to obtain a verification result; When the verification result is that the verification is passed, the encoded data is parsed to obtain frame header information and transmission data; According to the frame header information, obtaining compressed data in the transmission data; The compressed data is decompressed to obtain debugging data.

7. The method according to claim 6, characterized in that Acquiring compressed data from the transmission data according to the frame header information includes: Determining the location information of the compressed data according to the frame header information; The compressed data is extracted from the transmission data according to the position information.

8. The method according to claim 6 or 7, characterized in that: After obtaining the debugging data, the method further includes: Determine the target channel corresponding to the debugging data according to the frame header information; determining a display interface corresponding to the target channel, and displaying the debugging data on the display interface; or, A storage space corresponding to the target channel is determined, and the debugging data is stored in the storage space.

9. A data transmission device, characterized in that: Applied to control equipment, including: A receiving module, used for receiving coded data sent by a debugging device, wherein the debugging device is connected to the control device via a universal serial bus (USB); A verification module, used to perform verification processing on the coded data to obtain a verification result; A parsing module, used for parsing the coded data to obtain frame header information and transmission data when the verification result is a verification pass; An acquisition module, used for acquiring compressed data from the transmission data according to the frame header information; The decompression module is used to decompress the compressed data to obtain debugging data.

10. A debugging device, characterized in that: The debugging device includes a modem, a hardened processor, an application processor, a universal serial bus (USB) accelerator and a USB controller, wherein: The hardened processor is connected to the modem, the USB accelerator and the application processor respectively, and the USB accelerator is also connected to the USB controller and the application processor respectively; The modem, the hardened processor, the application processor, the USB accelerator and the USB controller are configured to implement the method according to any one of claims 1 to 5.

11. A control device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 6 to 8.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method of any one of claims 1 to 5 or 6 to 8 when the computer-executable instructions are executed by a processor.

13. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 5 or 6 to 8 when being executed by a processor.

Citation Information

Patent Citations

  • Data frame generation method, storage medium and computer equipment

    CN112486885A

  • Software debugging method and device of vehicle, electronic equipment and storage medium

    CN115221042A

  • Train terminal equipment graphics library test method, device and system

    CN116028339A

  • Method and apparatus for distributed test pattern decompression

    US6560756B1

  • Apparatus and method for performing trace / debug data compression

    WO2017184265A1