Log extraction method of vehicle-mounted communication terminal, vehicle-mounted communication terminal and storage medium
By introducing a microcontroller and a microprocessor into the vehicle-mounted communication terminal and utilizing serial peripheral interface lines and asynchronous serial transceiver lines, multi-path transmission and efficient storage of log data are achieved, solving the problems of poor flexibility and insufficient stability in log viewing in the existing technology.
Patent Information
- Application Number
- CN202411151282.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-21
- Publication Date
- 2025-09-16
- Estimated Expiration
- 2044-08-21
AI Technical Summary
In the prior art, the log viewing flexibility of the vehicle-mounted communication terminal is poor, and the stability and reliability are insufficient, resulting in inconvenient transmission of log data and easy loss.
By integrating a microcontroller and microprocessor into the vehicle communication terminal, and utilizing serial peripheral interface (SPI) and asynchronous serial transceiver lines, multipath transmission of log data is achieved. The microcontroller selects the appropriate transmission path based on the log level and data volume, and the microprocessor runs open-source code files to store the logs.
It realizes flexible transmission and efficient storage of log data, avoids the loss of important log data, and improves the stability and reliability of the system.
Smart Images

Figure CN119025382B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of log transmission, and in particular to a log extraction method for a vehicle-mounted communication terminal, a vehicle-mounted communication terminal, and a storage medium. Background Art
[0002] The logs of the MCU (Micro Controller Unit) in the in-vehicle communication terminal (Telematics Box, T-Box) are crucial. Whether during debugging or mass production, developers need to review logs to locate and analyze problems. MCU logs are typically printed in real time to a host computer via the serial port.
[0003] However, serial port printing requires a USB-to-TTL (Transistor-Transistor Logic) converter to view and save logs. Without this converter, or after it's installed on the vehicle, logs cannot be viewed. Furthermore, serial port log printing consumes MCU resources, significantly increasing MCU load, which significantly impacts embedded real-time systems. This results in limited flexibility and system stability issues with existing technologies. Summary of the Invention
[0004] In view of the above-mentioned defects or deficiencies in the prior art, the present application aims to provide a log extraction method for a vehicle-mounted communication terminal, a vehicle-mounted communication terminal and a storage medium to solve the problems of poor flexibility, poor stability and poor reliability in log viewing in the prior art.
[0005] An embodiment of the present application provides a log extraction method for an in-vehicle communication terminal. The method is applied to the in-vehicle communication terminal, wherein the in-vehicle communication terminal includes a microcontroller and a microprocessor, the microcontroller includes a print output serial port, and a serial peripheral interface circuit and an asynchronous serial transceiver circuit are provided between the microcontroller and the microprocessor. The method includes:
[0006] The microcontroller determines the log level of the log data to be transmitted;
[0007] In response to the log level being lower than a preset level, the microcontroller outputs the log data to be transmitted to the print output serial port, or, in response to the log level being greater than or equal to the preset level, determines a target line in the serial peripheral interface line and / or the asynchronous serial transceiver line based on the data volume or transmission frequency of the log data to be transmitted, and transmits the log data to be transmitted to the microprocessor through the target line.
[0008] Optionally, before outputting the log data to be transmitted to the print output serial port, the method further includes:
[0009] The microcontroller obtains a flag bit of a serial port printing function;
[0010] If the flag is function-on, the step of outputting the log data to be transmitted to the print output serial port is executed.
[0011] Optionally, the method further includes:
[0012] The microcontroller receives a diagnostic instruction sent by a diagnostic device, and determines whether the diagnostic instruction is a function-enabling instruction. If so, the microcontroller sets a flag bit of the serial port printing function to function-enabling.
[0013] Optionally, before determining the target line in the serial peripheral interface line and / or the asynchronous serial transceiver line, the method further includes:
[0014] In response to detecting that the vehicle-mounted communication terminal is restarted, the microcontroller determines whether a serial peripheral interface line and an asynchronous serial transceiver line between the microprocessor and the microprocessor are successfully established;
[0015] If so, the microcontroller executes the step of determining a target line among the serial peripheral interface line and / or the asynchronous serial transceiver line.
[0016] Optionally, the microcontroller further includes a log buffer; and the method further includes:
[0017] If the microcontroller determines that the serial peripheral interface line and the asynchronous serial transceiver line are not successfully established, the log data to be transmitted is written into the log buffer.
[0018] Optionally, the method further includes:
[0019] The microprocessor receives a log reading request sent by the vehicle system, and based on the log reading request, sends the stored log data to the vehicle system, so that the vehicle system transmits the log data to the connected mobile storage device; or,
[0020] The microprocessor receives a diagnostic instruction sent by a diagnostic device and determines whether the diagnostic instruction is a data reading instruction. If so, the microprocessor sends the stored log data to the diagnostic device.
[0021] Optionally, the serial peripheral interface circuit includes a serial peripheral host sending channel, a serial peripheral host receiving channel, a host handshake input channel, and a host handshake output channel; the asynchronous serial transceiver circuit includes an asynchronous serial host sending channel and an asynchronous serial host receiving channel; and transmitting the log data to be transmitted to the microprocessor through the target circuit includes:
[0022] If the target line is the serial peripheral interface line, the microcontroller sends a handshake input signal to the microprocessor through the host handshake input channel, and the microprocessor starts data transmission with the microcontroller in response to the handshake input signal, so that the microcontroller transmits the log data to be transmitted through the serial peripheral host receiving channel; and
[0023] If the target line is the asynchronous serial transceiver line, the microcontroller sends the log data to be transmitted to the microprocessor through the asynchronous serial host receiving channel.
[0024] Optionally, after transmitting the log data to be transmitted to the microprocessor through the target line, the method further includes:
[0025] The microprocessor stores the received log data in a disk by running the open source code file.
[0026] The embodiment of the present application further provides a vehicle-mounted communication terminal, the vehicle-mounted communication terminal including a microcontroller and a microprocessor, the microcontroller including a print output serial port, a serial peripheral interface circuit and an asynchronous serial transceiver circuit between the microcontroller and the microprocessor, wherein:
[0027] The microcontroller is used to determine the log level of the log data to be transmitted, and in response to the log level being lower than a preset level, output the log data to be transmitted to the print output serial port, or, in response to the log level being greater than or equal to the preset level, determine a target line in the serial peripheral interface line and / or the asynchronous serial transceiver line based on the data volume or transmission frequency of the log data to be transmitted, and transmit the log data to be transmitted to the microprocessor through the target line.
[0028] An embodiment of the present application further provides an electronic device, comprising:
[0029] processor and memory;
[0030] The processor is used to execute the steps of the log extraction method for the vehicle-mounted communication terminal provided in any embodiment of the present application by calling the program or instruction stored in the memory.
[0031] An embodiment of the present application also provides a computer-readable storage medium, which stores a program or instruction, and the program or instruction enables a computer to execute the steps of the log extraction method of the vehicle-mounted communication terminal provided in any embodiment of the present application.
[0032] In summary, the present application proposes a log extraction method for an on-vehicle communication terminal, which is applied to an on-vehicle communication terminal including a microcontroller and a microprocessor, wherein the microcontroller determines the log level of the log data to be transmitted, and when the log level is lower than the preset level, the log data to be transmitted is output to the print output serial port, or when the log level is greater than or equal to the preset level, the target line is determined in the serial peripheral interface line and / or asynchronous serial transceiver line between the microcontroller and the microprocessor according to the data volume or transmission frequency of the log data to be transmitted, and the log data to be transmitted is sent to the microprocessor through the target line, thereby realizing the output of the log to the print output serial port and the output to the microprocessor, which is different from the prior art that only relies on the serial port. Printing, this method can realize multiple log extraction methods, effectively solving the problems of poor flexibility, high load rate, and poor reliability caused by printing only through the serial port; moreover, this method first determines whether it needs to be transmitted to the print output serial port according to the log level, and can output the log data with lower importance through serial port printing, and transmit the log data with higher importance through the line, thereby avoiding the loss of log data with higher importance; in addition, this method determines the target line according to the data volume or transmission frequency, and can make full use of the transmission characteristics of the line and select the appropriate line for log data transmission. While ensuring the reliability of log data transmission, it greatly improves the efficiency of log data transmission, thereby improving the efficiency of log data extraction and avoiding data loss. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the specific implementation methods of the present application or the technical solutions in the prior art, the following is a brief introduction to the drawings required for use in the specific implementation methods or the description of the prior art. Obviously, the drawings described below are some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0034] Figure 1 A schematic diagram of a vehicle-mounted communication terminal provided in an embodiment of the present application;
[0035] Figure 2 A schematic diagram of a circuit structure provided in an embodiment of the present application;
[0036] Figure 3 This is a flow chart of a log extraction method for a vehicle-mounted communication terminal provided in an embodiment of the present application;
[0037] Figure 4 This is a structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0038] The present application will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely for the purpose of explaining the relevant invention and are not intended to limit the invention. It should also be noted that, for ease of description, only portions relevant to the invention are shown in the accompanying drawings.
[0039] It should be noted that, in the absence of conflict, the embodiments and features of the embodiments in this application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0040] The log extraction method for a vehicle-mounted communication terminal provided in an embodiment of the present application is mainly suitable for extracting logs from a vehicle-mounted communication terminal. Through the print output serial port of the microcontroller in the vehicle-mounted communication terminal and the line between the microprocessor and the microcontroller, serial port printing-based log extraction and microprocessor-based log extraction are realized.
[0041] like Figure 1 As shown, Figure 1 A schematic diagram of a vehicle-mounted communication terminal provided in an embodiment of the present application, wherein the vehicle-mounted communication terminal includes a microcontroller and a microprocessor, the microcontroller includes a print output serial port, and a serial peripheral interface line and an asynchronous serial transceiver line exist between the microcontroller and the microprocessor.
[0042] The serial peripheral interface line may be a traditional four-wire SPI (Serial Peripheral Interface) line, where the four lines are a chip select channel, a clock channel, a serial peripheral host transmit channel, and a serial peripheral host receive channel.
[0043] Alternatively, the serial peripheral interface line can be a six-wire SPI line improved on the traditional four-wire SPI line, such as Figure 2 As shown, Figure 2 A schematic diagram of a circuit structure provided in an embodiment of the present application. The six lines are a chip select channel, a clock channel, a serial peripheral host transmit channel, a serial peripheral host receive channel, a host handshake input channel, and a host handshake output channel. The host handshake input and output channels are used to control the communication handshake between the microcontroller and microprocessor. By adding these channels, bidirectional data transmission between the microcontroller and microprocessor can be achieved.
[0044] In this embodiment, the asynchronous serial transceiver line may be a UART (Universal Asynchronous Receiver / Transmitter) line. Figure 2As shown, the asynchronous serial transceiver circuit can include an asynchronous serial host transmit channel and an asynchronous serial host receive channel. In this vehicle-mounted communication terminal, the composite communication structure composed of SPI and UART can significantly increase the bandwidth of log data transmission between the microprocessor and microcontroller, improve the efficiency and reliability of log data transmission, and avoid data loss.
[0045] As mentioned in the background art, in response to the problems in the prior art, this application proposes a log extraction method for a vehicle-mounted communication terminal. Figure 3 This is a flow chart of a log extraction method for a vehicle-mounted communication terminal provided by an embodiment of the present application. Figure 3 The log extraction method of the vehicle-mounted communication terminal specifically includes:
[0046] S110 : The microcontroller determines the log level of the log data to be transmitted.
[0047] The log data to be transmitted may be log data from a vehicle-mounted communication terminal that the microcontroller desires to transmit. For example, upon detecting new log data from a vehicle-mounted communication terminal, the microcontroller may use the most recently generated log data as the log data to be transmitted. Alternatively, the microcontroller may use the log data from the vehicle-mounted communication terminal generated within a preset transmission period as the log data to be transmitted.
[0048] Specifically, for the log data to be transmitted, the microcontroller may first determine the log level of the log data to be transmitted, so as to determine whether to send the log data to the print output serial port or the microprocessor according to the log level.
[0049] In this embodiment, the log level can reflect the importance of the log data to be transmitted to the subsequent data analysis. For example, the log level can be divided into four levels, from high to low: log_error, log_warn, log_info, log_debug.
[0050] Among them, log_error represents the error level log, which is generally used to record serious errors that occur during the operation of the vehicle communication terminal program. These errors may cause the program to fail to run normally or produce unrecoverable results; for example, database connection failure, file read error, etc.
[0051] Among them, log_warn represents a warning-level log, which is used to record information about possible problems or exceptions in the vehicle communication terminal, but the program can still continue to run; for example, the value of a configuration item is unreasonable but does not cause the program to crash.
[0052] Among them, log_info represents the information level log, which is used to record general useful information in the vehicle communication terminal to help understand the running status and process of the program; for example, system startup, successful module loading, etc.
[0053] Among them, log_debug represents debug-level logs, which usually contain detailed information about the program execution process. It is usually only used during the development and debugging stages and is generally not enabled in a production environment to avoid generating excessive log data; for example, function input parameters, the values of internal variables, etc.
[0054] S120. In response to the log level being lower than a preset level, the microcontroller outputs the log data to be transmitted to the print output serial port. Alternatively, in response to the log level being greater than or equal to the preset level, the microcontroller determines a target line in the serial peripheral interface line and / or the asynchronous serial transceiver line based on the data volume or transmission frequency of the log data to be transmitted, and transmits the log data to be transmitted to the microprocessor through the target line.
[0055] Specifically, after determining the log level of the log data to be transmitted, the microcontroller may compare the log level with a preset level, wherein the preset level may be a pre-set critical level for distinguishing between transmitting data to the print output serial port and the microprocessor.
[0056] For example, considering that the debug level log (log_debug) is usually only used in the development and debugging stages, and it contains information about the program execution process, which is less important for subsequent accident analysis, the preset level can be set to the information level log (log_info) to output the debug level log (log_debug) through the print output serial port, and other level logs are output to the microprocessor for storage to avoid the loss of important logs.
[0057] In this embodiment, if the microcontroller detects that the log level is lower than the preset level, it indicates that the importance of the log data to be transmitted is low. At this time, the microcontroller can send the log data to the print output serial port. The log level determines the way log transmission is carried out, which can realize the free allocation of log data and improve the flexibility of MCU logging.
[0058] It should be noted that if the print output serial port is connected to the host computer, the host computer can obtain and display the log data to be transmitted by the microcontroller to the print output serial port. If the print output serial port is not connected to the host computer, the log data to be transmitted will be lost after being sent to the print output serial port. Since the debug level log (log_debug) is less important, the loss of debug level log data will not affect the subsequent data analysis of the on-board communication terminal.
[0059] In this embodiment, considering that the microcontroller will also occupy the load of the microcontroller and reduce the stability of the microcontroller in the process of sending log data to the print output serial port, this embodiment can also turn on or off the function of the microcontroller sending log data to the print output serial port according to needs, that is, turn on or off the serial port log output function of the microcontroller.
[0060] In a specific embodiment, before outputting the log data to be transmitted to the print output serial port, the method further includes:
[0061] The microcontroller obtains a flag bit of the serial port printing function; if the flag bit indicates that the function is on, the microcontroller executes a step of outputting the log data to be transmitted to the print output serial port.
[0062] The flag bit is used to describe whether the serial port printing function is enabled. Specifically, if the log level of the log data to be transmitted is lower than the preset level, the microcontroller can obtain the flag bit of the serial port printing function before outputting the log data to be transmitted to the print output serial port.
[0063] Furthermore, the microcontroller determines whether the flag bit is function-enabled. If so, it indicates that there is a need to obtain debug-level logs (log_debug). The microcontroller can output the log data to be transmitted to the print output serial port.
[0064] Through the above implementation, the microcontroller can output the log data to be transmitted to the print output serial port when the serial port printing function is turned on, and cancel the sending of the log data to be transmitted when the serial port printing function is not turned on, which can reduce the load of the microcontroller and improve the stability of the microcontroller.
[0065] Optionally, the method provided in the embodiment of the present application further includes:
[0066] The microcontroller receives the diagnostic instruction sent by the diagnostic device and determines whether the diagnostic instruction is a function-enabling instruction. If so, the microcontroller sets the flag bit of the serial port printing function to function-enabling.
[0067] The diagnostic device can send diagnostic instructions to the microcontroller via the Unified Diagnostic Services (UDS) protocol. The diagnostic device can use the diagnostic instructions to control the serial port printing function of the microcontroller.
[0068] Specifically, after receiving the diagnostic instruction sent by the diagnostic device, the microcontroller can determine whether the diagnostic instruction is a function-enabling instruction, wherein the flag bit of the serial port printing function is set to function-off by default. For example, if the diagnostic instruction is 0322 BB AA, it can be determined that the diagnostic instruction is a function-enabling instruction.
[0069] Furthermore, in response to detecting the function enable instruction, the microcontroller can set the serial port printing function flag to function enable to enable the serial port printing function. Of course, after enabling the serial port printing function via the function enable instruction sent by the diagnostic device, the microcontroller can also disable the serial port printing function via the function disable instruction sent by the diagnostic device.
[0070] In this way, the serial port printing function can be enabled according to the actual demand for logs, which improves the flexibility of the microcontroller in outputting log data through the print output serial port.
[0071] In this embodiment, in addition to enabling or disabling the serial port log output function based on log demand, the microcontroller can also enable or disable the serial port log output function based on its own load occupancy rate. For example, the microcontroller can obtain the current load occupancy rate. If the current load occupancy rate is less than a preset occupancy rate threshold, the flag bit of the serial port printing function is set to function enabled; otherwise, the flag bit of the serial port printing function is set to function disabled.
[0072] In this embodiment, if the microcontroller determines that the log level of the log data to be transmitted is greater than or equal to the preset level, it means that the importance of the log data to be transmitted is relatively high. At this time, a target line can be selected from the serial peripheral interface line and / or the asynchronous serial transceiver line, such as using the serial peripheral interface line as the target line, or using the asynchronous serial transceiver line as the target line, or using the serial peripheral interface line and the asynchronous serial transceiver line as the target line at the same time, so as to send the log data to be transmitted to the microprocessor for storage to avoid data loss.
[0073] Among them, in order to ensure that the log data to be transmitted can be reliably transmitted to the microprocessor for storage, this embodiment sets two lines between the microcontroller and the microprocessor, namely the serial peripheral interface line and the asynchronous serial transceiver line. The log data of the microcontroller is transmitted through dual-line communication to ensure that data loss will not occur, thereby improving the reliability of the microcontroller log data storage and the log recording frequency.
[0074] Specifically, the microcontroller can use one of the serial peripheral interface line and the asynchronous serial transceiver line as the target line according to the data volume or transmission frequency of the log data to be transmitted, or use both the serial peripheral interface line and the asynchronous serial transceiver line as the target line.
[0075] For example, considering that the serial peripheral interface line has a high transmission frequency and can transmit messages with a large amount of data, and the asynchronous serial transceiver line has a low transmission frequency, in this embodiment, based on the amount of data or the transmission frequency of the log data to be transmitted, the target line is determined in the serial peripheral interface line and / or the asynchronous serial transceiver line, which can be:
[0076] If the data volume of the log data to be transmitted is greater than the preset data volume threshold, or the transmission frequency of the log data to be transmitted is greater than the preset frequency threshold, the target line is determined to be a serial peripheral interface line; and if the data volume of the log data to be transmitted is lower than the preset data volume threshold, or the transmission frequency of the log data to be transmitted is the frequency of triggered transmission, the target line is determined to be an asynchronous serial transceiver line.
[0077] In this embodiment, combining the line transmission characteristics of the serial peripheral interface line and the asynchronous serial transceiver line, for log data to be transmitted with high frequency transmission or large data volume, by selecting the serial peripheral interface line as the target line, the characteristics of the serial peripheral interface line being high transmission frequency and capable of transmitting large data volume messages can be fully utilized to achieve efficient transmission of the log data; for log data to be transmitted in a triggered manner or with a small data volume, by selecting the asynchronous serial transceiver line as the target line, the characteristics of the asynchronous serial transceiver line being low transmission frequency can be fully utilized, and the log data with a small data volume or triggered data volume can be sent through the asynchronous serial transceiver line. While ensuring the transmission reliability and transmission efficiency of the log data with a small data volume or triggered data volume, the log data with a small data volume or triggered data volume can be prevented from occupying the synchronous serial peripheral interface line, which can further ensure the efficient transmission of the log data.
[0078] It should be noted that when the microcontroller needs to send multiple types of log data to the microprocessor simultaneously, the corresponding target line can be determined for transmission based on the data volume or transmission frequency of each type of log data to be transmitted. In addition, considering that some data may have the characteristics of low transmission frequency but large data volume, such data can be split, with some of the data content transmitted via the serial peripheral interface line and the other content transmitted via the asynchronous serial transceiver line.
[0079] In a specific embodiment, the serial peripheral interface circuit includes a serial peripheral host transmit channel, a serial peripheral host receive channel, a host handshake input channel, and a host handshake output channel, and the asynchronous serial transceiver circuit includes an asynchronous serial host transmit channel and an asynchronous serial host receive channel; transmitting the log data to be transmitted to the microprocessor through the target circuit includes:
[0080] If the target line is a serial peripheral interface line, the microcontroller sends a handshake input signal to the microprocessor through the host handshake input channel, and the microprocessor responds to the handshake input signal and starts data transmission between the microcontroller and the microcontroller, so that the microcontroller transmits the log data to be transmitted through the serial peripheral host receiving channel; and
[0081] If the target line is an asynchronous serial transceiver line, the microcontroller sends the log data to be transmitted to the microprocessor through the asynchronous serial host receiving channel.
[0082] Among them, the serial peripheral host transmit channel is used by the microprocessor to send data to the microcontroller, the serial peripheral host receive channel is used by the microprocessor to receive data sent by the microcontroller, the master handshake input (Master Handshake Input, MHI) channel is used by the microprocessor to receive the handshake input signal sent by the microcontroller, and the master handshake output (Master Handshake Output, MHO) channel is used by the microprocessor to send the handshake output signal to the microcontroller.
[0083] Specifically, if the target line is an SPI line, the process of the microcontroller sending the log data to be transmitted to the microprocessor is as follows: first, the microcontroller can mount a shift register in the buffer and pull up the handshake input level to generate a handshake input signal (which can be understood as an interrupt signal), and send the handshake input signal to the microprocessor through the host handshake input channel. After the microprocessor detects the handshake input signal, it starts data transmission with the microcontroller. The microcontroller can send the log data to be transmitted to the microprocessor through the serial peripheral host receiving channel.
[0084] Furthermore, if the target line is a UART line, the microcontroller can control the transmission of the log data to the microprocessor via the asynchronous serial host receive channel through the built-in UART controller. While the microcontroller is sending log data via the asynchronous serial host receive channel, it can also count the number of transmitted bytes and stop data transmission when it detects that the number of transmitted bytes has reached a preset data length.
[0085] The above implementation method realizes log data transmission based on SPI and UART, wherein, through the host handshake input channel and the host handshake output channel, communication handshake between the microcontroller and the microprocessor can be realized, ensuring the reliability of the communication link establishment and avoiding data loss during the log data transmission process.
[0086] It should be noted that the above describes the process of the microcontroller sending log data to the microprocessor. The microprocessor can also send data to the microcontroller through SPI or UART, such as through a serial peripheral host sending channel or an asynchronous serial host sending channel. The process of the microprocessor sending data can refer to the previous description of the process of the microcontroller sending data, which will not be repeated here.
[0087] In this embodiment, considering that the vehicle-mounted communication terminal may be powered on or reset on the entire board, and the startup time of the microcontroller in the vehicle-mounted communication terminal is short, and the startup time of the microprocessor is long, during the power-on or reset of the vehicle-mounted communication terminal on the entire board, the communication line between the microcontroller and the microprocessor is not established, resulting in the microcontroller's log data being unable to be transmitted to the microprocessor for storage. Therefore, to address this problem, the microcontroller can also determine whether the communication line is established before sending the log data.
[0088] In a specific embodiment, before determining the target line in the serial peripheral interface line and / or the asynchronous serial transceiver line, the method further includes:
[0089] In response to detecting that the vehicle-mounted communication terminal is restarted, the microcontroller determines whether the serial peripheral interface line and the asynchronous serial transceiver line between the microprocessor and the microprocessor are successfully established; if so, the microcontroller executes the step of determining the target line in the serial peripheral interface line and / or the asynchronous serial transceiver line.
[0090] Specifically, if the microcontroller detects that the on-board communication terminal is restarted, it means that the microprocessor may be in the startup process. At this time, the serial peripheral interface line and the asynchronous serial transceiver line between the microprocessor may not be successfully established. Therefore, the microcontroller can determine whether the serial peripheral interface line and the asynchronous serial transceiver line between the microprocessor are successfully established. If established successfully, the microcontroller can further determine the target line in the serial peripheral interface line and / or the asynchronous serial transceiver line, and then send the log data to be transmitted through the target line.
[0091] If the establishment is not successful, the microprocessor may send the log data to be transmitted to the print output serial port, or store the log data to be transmitted in a buffer area.
[0092] In one example, the microcontroller further includes a log buffer; and the method provided in the embodiment of the present application further includes:
[0093] If the microcontroller determines that the serial peripheral interface line and the asynchronous serial transceiver line are not successfully established, the log data to be transmitted is written into the log buffer.
[0094] The log buffer can be a ring buffer opened in the microcontroller, such as a ringbuf buffer. For example, a log buffer can be opened according to the size of the log volume of the microcontroller, and the log buffer is used to cache log data that the microcontroller needs to save during the startup of the microprocessor.
[0095] Specifically, the microcontroller may write the log data to be transmitted into the log buffer when the serial peripheral interface line and the asynchronous serial transceiver line are not successfully established.
[0096] Furthermore, the microcontroller can send the log data cached in the log buffer to the microprocessor through the line for storage when it is detected that the serial peripheral interface line and the asynchronous serial transceiver line are successfully established.
[0097] Through the above implementation, when the entire board of the vehicle communication terminal is powered on or reset, the microcontroller can first cache the log data, avoiding the situation where the communication line is not established due to the long startup time of the microprocessor, and the resulting loss of log data, thereby ensuring the integrity of the microcontroller log data.
[0098] In this embodiment, considering that the serial peripheral interface line can transmit log data with a large amount of data, and the asynchronous serial transceiver line can transmit log data with a small amount of data, the data structure of the log data transmitted in the serial peripheral interface line and the asynchronous serial transceiver line can also be defined, so that when the microcontroller sends the log data to be transmitted, the log data to be transmitted is transmitted in the data structure corresponding to the target line, thereby further improving the efficiency of log data transmission.
[0099] Exemplarily, when the target line is a serial peripheral interface line, the microcontroller sends the log data to be transmitted to the microprocessor in the form of a first data frame via the target line; and when the target line is an asynchronous serial transceiver line, the microcontroller sends the log data to be transmitted to the microprocessor in the form of a second data frame via the target line. The first data frame includes a frame header, a packet length, a sending device identifier, a receiving device identifier, a frame sequence number, the length of each first data block, each first data block, and a check code, the first data block includes a data block identifier and a data body, the second data frame includes each sub-frame identifier, a frame length, a second data block, and a check code, and the second data block includes a data block identifier, a packet number, and a data body.
[0100] Because the length of a data frame on a serial peripheral interface (SPI) is fixed and the data length it can carry is relatively large, multiple data blocks (payloads) are defined within a frame. This effectively improves the transmission efficiency of the six-wire SPI. For example, Table 1 shows a first data frame. As shown in Table 1, the frame header can occupy two bytes, which is defined by default as AA 77, indicating the start of a frame communication packet; the packet length can occupy two bytes, indicating the total length of the valid content of a frame protocol message, that is, the length of Byte0 - ByteM, using big endian byte order, total length = Length(2) +Length(1)*256; the sending device identifier indicates the identifier of the device sending data, which is a required item in multi-device communication; the receiving device identifier indicates the identifier of the device receiving data, which is a required item in multi-device communication; the frame sequence number indicates the sequence number of the sent frame, representing whether the sending end has continuous transmission, and 1~127 is used in a loop; the first data block consists of a data block identifier and a data body. The data block identifier describes the specific meaning of each first data block, and the data body is the specific log data to be transmitted; the check code is used to ensure the reliability of data transmission and reception. Considering the different processing of different chips, a highly efficient and relatively reliable XOR algorithm can be used, that is, Byte(0)~Byte(M-1) can be XORed, and the XOR result can be used as a check code to fill Byte(M).
[0101] Table 1 A first data frame
[0102]
[0103] Since the transmission speed of the asynchronous serial transceiver line is relatively slow, each log data frame to be transmitted is set to a variable frame length, and a data frame only carries one data block. For example, Table 2 shows a second data frame. As shown in Table 2, the frame identifier can be defined as 0x66aabbccdd55, which is used to find a data frame in the RingBuf cache for data parsing and processing; the frame length occupies two bytes, which is the sum of the lengths of byte0 to byteM, including the frame length itself, and uses big endian byte order (big endian). The total length = Length(2) + Length(1) * 256; the second data block consists of a data block identifier, a packet number, and a data body. The data block identifier can be divided into two bytes, the high byte identifies the message type, and the low byte represents the message identifier. The packet number occupies one byte and has a value range of 0 to 255, which increases cyclically. The data body is the valid log data to be transmitted; the check code can be the result of XORing the data from Byte 0 to ByteM-1.
[0104] Table 2 A second data frame
[0105]
[0106] In addition, considering that there may be line interruption during data transmission between the microcontroller and the microprocessor, in order to ensure the reliability of data transmission, a channel anomaly detection mechanism can also be defined to implement channel anomaly detection through heartbeat frames to improve the reliability of system data transmission.
[0107] Exemplarily, while the microcontroller transmits the log data to be transmitted to the microprocessor through the target line, the method further includes:
[0108] The microcontroller sends a heartbeat frame corresponding to the target line to the microprocessor through the target line, so that the microprocessor feeds back a response frame corresponding to the target line in response to the received heartbeat frame, and feeds back a transmission line switching request when no heartbeat frame is received;
[0109] If the microcontroller does not receive the response frame, or receives the transmission line switching request fed back by the microprocessor, it switches the target line.
[0110] Specifically, while the microcontroller is sending the log data to be transmitted via the target line, a heartbeat frame corresponding to the target line may be sent at predetermined intervals. For example, the heartbeat frame corresponding to the serial peripheral interface line may be "0102," and the heartbeat frame corresponding to the asynchronous serial transceiver line may be "0A02."
[0111] Furthermore, after receiving the heartbeat frame, the microprocessor can reply with a response frame corresponding to the target line. For example, the response frame corresponding to the serial peripheral interface line can be "8102," and the response frame corresponding to the asynchronous serial transceiver line can be "8A02." Of course, if the target device does not receive the heartbeat frame due to a line interruption or other reasons, the microprocessor can directly respond with a transmission line switching request.
[0112] Furthermore, if the microcontroller receives a response frame, it can continue to wait for the next preset period and send a heartbeat frame. If the microcontroller does not receive the response frame due to a line interruption or other reasons, or if the microcontroller receives a transmission line switching request, it can switch the target line to another line. For example, the target line can be switched from a serial peripheral interface line to an asynchronous serial transceiver line, or vice versa.
[0113] This approach allows for detection of channel anomalies. If one channel experiences an anomaly, transmission can be promptly switched to another, further improving the reliability of log data transmission. Furthermore, if the heartbeat still stops on the new target channel after switching, data transmission between the microcontroller and microprocessor can be restarted to quickly restore normal operation.
[0114] In this embodiment, considering that the data cache of a certain line may be about to be full during the process of transmitting log data, in this case, a portion of the log data with shorter lengths can be allocated to the asynchronous serial transceiver line, or a portion of the log data with longer lengths can be allocated to the serial peripheral interface line to ensure the real-time transmission of log data. That is, during the process of sending the log data to be transmitted to the microprocessor via the target line, the microcontroller, in response to detecting that the data cache capacity corresponding to the target line is greater than a preset threshold, sends part of the log data to be transmitted to the microprocessor via other lines.
[0115] In addition, in this embodiment, after the microcontroller sends the log data to be transmitted to the microprocessor, the microprocessor may save the log data to be transmitted.
[0116] In one example, after the log data to be transmitted is transmitted to the microprocessor through the target line, the method provided by the embodiment of the present application further includes: the microprocessor stores the received log data in a disk by running an open source code file.
[0117] The open source code file may be a Diagnostic Log and Trace (DLT) file. Specifically, the open source code file may be pre-installed in the microprocessor, which can then run the open source code file and store the received log data on a disk, thereby achieving storage and management of the log data.
[0118] In this way, the microprocessor can store and manage the received log data without reconfiguring the code file, thereby improving the storage and management efficiency of the log data.
[0119] In addition, in this embodiment, multiple ways are provided for exporting logs. For example, logs can be exported through a connection between a mobile storage device and a vehicle system, or through a connection between a diagnostic device and a microprocessor.
[0120] In a specific embodiment, the method provided in the embodiment of the present application further includes:
[0121] The microprocessor receives a log reading request sent by the vehicle system, and based on the log reading request, sends the stored log data to the vehicle system, so that the vehicle system transfers the log data to the connected mobile storage device; or, the microprocessor receives a diagnostic instruction sent by the diagnostic device, and determines whether the diagnostic instruction is a data reading instruction. If so, the stored log data is sent to the diagnostic device.
[0122] Specifically, when the vehicle system detects that a mobile storage device (such as a USB flash drive) is connected, it can display a log export control through the central control screen. In response to detecting that the user triggers the log export control, it generates a log reading request and sends it to the microprocessor. The microprocessor then responds to the log reading request and sends the stored log data to the vehicle system, so that the vehicle system transfers the log data to the connected mobile storage device.
[0123] In addition to exporting log data through the vehicle system, the microprocessor can also receive diagnostic instructions sent by a diagnostic device connected using the OBD (On-Board Diagnostics) interface, where the diagnostic instructions can be generated through the UDS (Unified Diagnostic Services) protocol of DoIP (Diagnostic Communication over Internet Protocol). Furthermore, the microprocessor can determine whether the diagnostic protocol is a data read instruction. If so, it transmits the stored log data to the diagnostic device.
[0124] Through the above implementation, log export based on the vehicle system and diagnostic equipment can be realized, and multiple log export methods are provided, thereby improving the flexibility of MCU log export.
[0125] The log extraction method of the vehicle communication terminal provided by the embodiment of the present application is applied to the vehicle communication terminal including a microcontroller and a microprocessor, wherein the microcontroller determines the log level of the log data to be transmitted, and outputs the log data to be transmitted to the print output serial port when the log level is lower than the preset level, or when the log level is greater than or equal to the preset level, determines the target line in the serial peripheral interface line and / or the asynchronous serial transceiver line between the microcontroller and the microprocessor according to the data volume or transmission frequency of the log data to be transmitted, and sends the log data to be transmitted to the microprocessor through the target line, thereby realizing the output of the log to the print output serial port and the output to the microprocessor, which is different from the prior art that only relies on Serial port printing, this method can realize multiple log extraction methods, effectively solving the problems of poor flexibility, high load rate, and poor reliability caused by printing only through the serial port; moreover, this method first determines whether it needs to be transmitted to the print output serial port according to the log level, and can output the log data with lower importance through serial port printing, and transmit the log data with higher importance through the line, thereby avoiding the loss of log data with higher importance; in addition, this method determines the target line according to the data volume or transmission frequency, and can make full use of the transmission characteristics of the line and select the appropriate line for log data transmission. While ensuring the reliability of log data transmission, it greatly improves the efficiency of log data transmission, thereby improving the efficiency of log data extraction.
[0126] Based on the same purpose, an embodiment of the present application also provides a vehicle-mounted communication terminal, which includes a microcontroller and a microprocessor. The microcontroller includes a print output serial port. A serial peripheral interface circuit and an asynchronous serial transceiver circuit exist between the microcontroller and the microprocessor, wherein:
[0127] The microcontroller is used to determine the log level of the log data to be transmitted, and in response to the log level being lower than a preset level, output the log data to be transmitted to the print output serial port, or, in response to the log level being greater than or equal to the preset level, determine a target line in the serial peripheral interface line and / or the asynchronous serial transceiver line based on the data volume or transmission frequency of the log data to be transmitted, and transmit the log data to be transmitted to the microprocessor through the target line.
[0128] In some embodiments, the microcontroller is further configured to obtain a flag of a serial port printing function; if the flag indicates that the function is enabled, the step of outputting the log data to be transmitted to the print output serial port is executed.
[0129] In some embodiments, the microcontroller is further configured to receive a diagnostic instruction sent by a diagnostic device and determine whether the diagnostic instruction is a function enable instruction. If so, the flag of the serial port printing function is set to function enable.
[0130] In some embodiments, the microcontroller is further used to determine whether the serial peripheral interface line and the asynchronous serial transceiver line between the microprocessor and the microprocessor are successfully established in response to detecting that the vehicle-mounted communication terminal is restarted; if so, execute the step of determining the target line in the serial peripheral interface line and / or the asynchronous serial transceiver line.
[0131] In some embodiments, the microcontroller further includes a log buffer, and the microcontroller is further configured to write the to-be-transmitted log data into the log buffer if it is determined that the serial peripheral interface line and the asynchronous serial transceiver line are not successfully established.
[0132] In some embodiments, the microprocessor is further configured to receive a log reading request sent by the vehicle system, and based on the log reading request, send the stored log data to the vehicle system, so that the vehicle system transmits the log data to the connected mobile storage device; or,
[0133] The microprocessor is further configured to receive a diagnostic instruction sent by the diagnostic device and determine whether the diagnostic instruction is a data reading instruction. If so, the stored log data is sent to the diagnostic device.
[0134] In some embodiments, the serial peripheral interface line includes a serial peripheral host transmit channel, a serial peripheral host receive channel, a host handshake input channel, and a host handshake output channel, and the asynchronous serial transceiver line includes an asynchronous serial host transmit channel and an asynchronous serial host receive channel; the microcontroller is further configured to send a handshake input signal to the microprocessor through the host handshake input channel if the target line is a serial peripheral interface line, and the microprocessor is further configured to start data transmission with the microcontroller in response to the handshake input signal, so that the microcontroller transmits the log data to be transmitted through the serial peripheral host receive channel; and
[0135] The microcontroller is further configured to send the log data to be transmitted to the microprocessor through the asynchronous serial host receiving channel if the target line is an asynchronous serial transceiver line.
[0136] In some embodiments, the microprocessor is further configured to store the received log data in a disk by running an open source code file.
[0137] The vehicle-mounted communication terminal provided in the embodiment of the present application has execution steps and beneficial effects which will not be described in detail here.
[0138] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 4 As shown, the electronic device 400 includes one or more processors 401 and a memory 402 .
[0139] The processor 401 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device 400 to perform desired functions.
[0140] The memory 402 may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory. The non-volatile memory may include, for example, read-only memory (ROM), a hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 301 may execute the program instructions to implement the log extraction method for the in-vehicle communication terminal of any embodiment of the present application described above and / or other desired functions. Various contents such as initial external parameters and thresholds may also be stored in the computer-readable storage medium.
[0141] In one example, electronic device 400 may further include an input device 403 and an output device 404, which are interconnected via a bus system and / or other connection mechanisms (not shown). Input device 403 may include, for example, a keyboard, a mouse, etc. Output device 404 may output various information to the outside, including warning information, braking force, etc. Output device 404 may include, for example, a display, a speaker, a printer, a communication network, and remote output devices connected thereto.
[0142] Of course, to simplify, Figure 4 Only some of the components related to the present application in the electronic device 400 are shown, and components such as buses, input / output interfaces, etc. are omitted. In addition, the electronic device 400 may further include any other appropriate components according to specific application scenarios.
[0143] In addition to the above-mentioned methods and devices, an embodiment of the present application may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the log extraction method for the vehicle-mounted communication terminal provided in any embodiment of the present application.
[0144] The computer program product may be written in any combination of one or more programming languages to implement the program code for performing the operations of the embodiments of the present application, including object-oriented programming languages such as Java, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computing device, partially on the user's computing device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0145] In addition, an embodiment of the present application may also be a computer-readable storage medium having computer program instructions stored thereon. When the computer program instructions are executed by a processor, the processor executes the steps of the log extraction method for the vehicle-mounted communication terminal provided in any embodiment of the present application.
[0146] The computer-readable storage medium may be any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may include, for example, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination thereof. More specific examples (a non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.
[0147] It should be noted that the terms used in this application are only for describing specific embodiments and are not intended to limit the scope of this application. As shown in the specification and claims of this application, unless the context clearly indicates an exception, the words "one", "an", "a kind of" and / or "the" do not specifically refer to the singular and may also include the plural. The terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method or device comprising 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 or device. In the absence of further restrictions, the elements defined by the sentence "comprise a..." do not exclude the presence of other identical elements in the process, method or device comprising the elements.
[0148] It should also be noted that the terms "center", "up", "down", "left", "right", "vertical", "horizontal", "inside", "outside", etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on this application. Unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", etc. should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or an indirect connection through an intermediate medium, or it can be a communication between the internal parts of two elements. For those of ordinary skill in the art, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0149] This article uses specific examples to illustrate the principles and implementation methods of this application. The description of the above embodiments is only used to help understand the method and core ideas of this application. The above is only the preferred implementation method of this application. It should be pointed out that due to the limitations of textual expression, there are objectively infinite specific structures. For ordinary technicians in this technical field, without departing from the principles of this application, they can also make several improvements, modifications or changes, and can also combine the above technical features in an appropriate manner; these improvements, modifications, changes or combinations, or the direct application of the inventive concept and technical solution to other occasions without improvement, should be regarded as the scope of protection of this application.
Claims
1. A log extraction method for a vehicle-mounted communication terminal, characterized in that: The method is applied to a vehicle-mounted communication terminal, the vehicle-mounted communication terminal including a microcontroller and a microprocessor, the microcontroller including a print output serial port, a serial peripheral interface circuit and an asynchronous serial transceiver circuit being provided between the microcontroller and the microprocessor, and the method comprising: The microcontroller determines the log level of the log data to be transmitted; In response to the log level being lower than a preset level, the microcontroller outputs the log data to be transmitted to the print output serial port, or, in response to the log level being greater than or equal to the preset level, determines a target line in the serial peripheral interface line and / or the asynchronous serial transceiver line based on the data volume or transmission frequency of the log data to be transmitted, and transmits the log data to be transmitted to the microprocessor through the target line; Among them, for log data to be transmitted with high frequency or large data volume, the serial peripheral interface line is selected as the target line; for log data to be transmitted with triggered transmission or small data volume, the asynchronous serial transceiver line is selected as the target line; for transmission log data with low transmission frequency and large data volume, part of the data is transmitted through the serial peripheral interface line, and the other part is transmitted through the asynchronous serial transceiver line; The serial peripheral interface circuit includes a serial peripheral host sending channel, a serial peripheral host receiving channel, a host handshake input channel, and a host handshake output channel; the asynchronous serial transceiver circuit includes an asynchronous serial host sending channel and an asynchronous serial host receiving channel; and the log data to be transmitted is transmitted to the microprocessor through the target circuit, including: If the target line is the serial peripheral interface line, the microcontroller sends a handshake input signal to the microprocessor through the host handshake input channel, and the microprocessor starts data transmission with the microcontroller in response to the handshake input signal, so that the microcontroller transmits the log data to be transmitted through the serial peripheral host receiving channel; and If the target line is the asynchronous serial transceiver line, the microcontroller sends the log data to be transmitted to the microprocessor through the asynchronous serial host receiving channel.
2. The method according to claim 1, characterized in that Before outputting the log data to be transmitted to the print output serial port, the method further includes: The microcontroller obtains a flag bit of a serial port printing function; If the flag is function-on, the step of outputting the log data to be transmitted to the print output serial port is executed.
3. The method according to claim 2, characterized in that The method further comprises: The microcontroller receives a diagnostic instruction sent by a diagnostic device, and determines whether the diagnostic instruction is a function-enabling instruction. If so, the microcontroller sets a flag bit of the serial port printing function to function-enabling.
4. The method according to claim 1, wherein Before determining a target line in the serial peripheral interface line and / or the asynchronous serial transceiver line, the method further includes: In response to detecting that the vehicle-mounted communication terminal is restarted, the microcontroller determines whether a serial peripheral interface line and an asynchronous serial transceiver line between the microprocessor and the microprocessor are successfully established; If so, the microcontroller executes the step of determining a target line among the serial peripheral interface line and / or the asynchronous serial transceiver line.
5. The method according to claim 4, characterized in that The microcontroller further includes a log buffer; and the method further includes: If the microcontroller determines that the serial peripheral interface line and the asynchronous serial transceiver line are not successfully established, the log data to be transmitted is written into the log buffer.
6. The method according to claim 1, characterized in that The method further comprises: The microprocessor receives a log reading request sent by the vehicle system, and based on the log reading request, sends the stored log data to the vehicle system, so that the vehicle system transmits the log data to the connected mobile storage device; or, The microprocessor receives a diagnostic instruction sent by a diagnostic device and determines whether the diagnostic instruction is a data reading instruction. If so, the microprocessor sends the stored log data to the diagnostic device.
7. The method according to claim 1, characterized in that After transmitting the to-be-transmitted log data to the microprocessor via the target line, the method further includes: The microprocessor stores the received log data in a disk by running the open source code file.
8. A vehicle-mounted communication terminal, characterized in that: The vehicle-mounted communication terminal includes a microcontroller and a microprocessor. The microcontroller includes a print output serial port. A serial peripheral interface circuit and an asynchronous serial transceiver circuit are provided between the microcontroller and the microprocessor. The microcontroller is configured to determine a log level of log data to be transmitted, and in response to the log level being lower than a preset level, output the log data to be transmitted to the print output serial port, or, in response to the log level being greater than or equal to the preset level, determine a target line in the serial peripheral interface line and / or the asynchronous serial transceiver line based on the data volume or transmission frequency of the log data to be transmitted, and transmit the log data to be transmitted to the microprocessor via the target line; Among them, for log data to be transmitted with high frequency or large data volume, the microcontroller selects the serial peripheral interface line as the target line; for log data to be transmitted with triggered transmission or small data volume, the microcontroller selects the asynchronous serial transceiver line as the target line; for transmission log data with low transmission frequency and large data volume, the microcontroller transmits part of the data through the serial peripheral interface line and transmits the other part through the asynchronous serial transceiver line; The serial peripheral interface circuit includes a serial peripheral host sending channel, a serial peripheral host receiving channel, a host handshake input channel and a host handshake output channel, and the asynchronous serial transceiver circuit includes an asynchronous serial host sending channel and an asynchronous serial host receiving channel; The microcontroller is further used to send a handshake input signal to the microprocessor through the host handshake input channel if the target line is the serial peripheral interface line. The microprocessor is also used to start data transmission between the microcontroller and the microcontroller using the handshake input signal, so that the microcontroller transmits the log data to be transmitted through the serial peripheral host receiving channel; and the microcontroller is further used to send the log data to be transmitted to the microprocessor through the asynchronous serial host receiving channel if the target line is the asynchronous serial transceiver line.
9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a program or instruction, which enables a computer to execute the steps of the log extraction method for a vehicle-mounted communication terminal according to any one of claims 1 to 7.
Citation Information
Patent Citations
A debugging log grading method based on a whitley platform under a server management system
CN109918301A
Embedded log management system and method
CN112306834A
Log collection method and device, computer equipment and storage medium
CN115022163A