Log transmission method and device based on SOMEIP, equipment and medium

Through the Log transmission method based on SOMEIP, the Log subscription signal is generated and transmitted, and the limitations of real-time logging and cross-system transmission in the prior art are solved, and efficient and accurate log management and analysis are achieved.

CN119961084APending Publication Date: 2025-05-09XINGHE ZHILIAN AUTOMOBILE TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411808745.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-10
Publication Date
2025-05-09

AI Technical Summary

Technical Problem

The existing log management technology has limitations in real-time logging, cross-system transmission, permission control and analysis efficiency, and it is difficult to achieve one-to-many log real-time analysis.

Method used

The SOMEIP-based Log transmission method is adopted to generate a Log subscription signal through the SOMEIP service and transmit it to the target terminal, thereby obtaining real-time Log information, and realizing remote log grabbing of the LAN and one-to-many Log grabbing.

Benefits of technology

It realizes real-time log capture without system permissions, solves the problems of log transmission delay and loss, and improves the efficiency and accuracy of log management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119961084A_ABST
    Figure CN119961084A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a log transmission method and device based on SOMEIP, equipment and a medium, and belongs to the technical field of log management. The method comprises the following steps: acquiring a Log capture request, wherein the Log capture request comprises target terminal information; inputting the target terminal information into a control terminal SOMEIP service, and generating a Log subscription signal; transmitting the Log subscription signal to a target terminal; receiving real-time Log information transmitted by the target terminal; wherein the Log subscription signal is used for the target terminal SOMEIP service to generate Log consumption information, and the Log consumption information is used for the target terminal Log service to generate real-time Log information. According to the embodiment of the invention, the log information of a plurality of target terminals can be obtained in real time through the SOMEIP service, the control terminal can select to subscribe to the log information of different target terminals according to needs, and flexible log management is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of log management technology, and in particular to a log transmission method and device, equipment and medium based on SOMEIP. Background Art

[0002] In the current log management field, log capture and analysis face a series of technical challenges. Due to the differences between different systems, the format, storage method and acquisition method of logs are all different. This leads to the need to take different manual operations for different systems when acquiring logs in real time, which greatly increases the complexity and time cost of the operation. Cross-system log transmission is also a problem. Due to the isolation between systems, logs often cannot be directly captured to the current host in real time, but need to go through additional transmission steps, which may not only cause log delays, but also cause log loss. Existing log analysis technologies often cannot achieve one-to-many real-time analysis of logs, which limits the efficiency and accuracy of log management. Current log capture and analysis technologies have certain limitations in terms of log real-time, cross-system transmission, permission control and analysis efficiency, which prompts people to continuously explore and improve log management technologies to meet the growing needs of log management. Summary of the invention

[0003] The main purpose of the embodiments of the present application is to propose a log transmission method and apparatus, device and medium based on SOMEIP, aiming to realize remote log capture and one-to-many log capture in a local area network through SOMEIP.

[0004] To achieve the above-mentioned purpose, a first aspect of an embodiment of the present application proposes a Log transmission method based on SOMEIP, which is applied to a control terminal. The method includes:

[0005] Obtaining a log capture request, wherein the log capture request includes target terminal information;

[0006] Input the target terminal information into the control terminal SOMEIP service to generate a Log subscription signal;

[0007] Transmitting the Log subscription signal to the target terminal;

[0008] Receiving real-time Log information transmitted by the target terminal;

[0009] The Log subscription signal is used by the target terminal SOMEIP service to generate Log consumption information, and the Log consumption information is used by the target terminal Log service to generate real-time Log information.

[0010] In some embodiments, the SOMEIP-based Log transmission method further includes:

[0011] Periodically sending heartbeat information to the target terminal;

[0012] The heartbeat information is used for the target terminal to stop transmitting real-time Log information to the control terminal after failing to receive the heartbeat information sent by the control terminal.

[0013] In some embodiments, the Log subscription signal includes authentication information, and the target terminal SOMEIP service stops generating Log consumption information if the authentication information fails to pass the authentication check.

[0014] To achieve the above-mentioned purpose, a second aspect of an embodiment of the present application proposes a Log transmission method based on SOMEIP, which is applied to a target terminal. The method includes:

[0015] Receive the Log subscription signal from the control terminal;

[0016] Input the Log subscription signal to the target terminal SOMEIP service to generate Log consumption information;

[0017] Generate real-time log information from the target terminal log service through the log consumption information;

[0018] Transmitting real-time Log information to the control terminal;

[0019] The Log subscription signal is generated by inputting the target terminal information into the control terminal SOMEIP service, and the target terminal information is obtained through the Log capture request.

[0020] In some embodiments, the SOMEIP-based Log transmission method further includes:

[0021] Periodically check whether the heartbeat information sent by the control terminal is received;

[0022] If the heartbeat information sent by the control terminal is not received, the transmission of real-time Log information to the control terminal is stopped.

[0023] In some embodiments, the step of receiving a Log subscription signal from the control terminal specifically includes:

[0024] Receive a Log subscription signal from a control terminal, and extract authentication information from the Log subscription signal;

[0025] If the authentication information fails to pass the authentication check of the target terminal SOMEIP service, the generation of Log consumption information is stopped.

[0026] To achieve the above-mentioned purpose, a third aspect of an embodiment of the present application proposes a Log transmission device based on SOMEIP, which is applied to a control terminal, and the device includes:

[0027] A request acquisition module, used to acquire a Log capture request, wherein the Log capture request includes target terminal information;

[0028] A subscription generation module, used to input the target terminal information into the control terminal SOMEIP service and generate a Log subscription signal;

[0029] A subscription sending module, used for transmitting the Log subscription signal to the target terminal;

[0030] Log receiving module, used to receive real-time Log information transmitted by the target terminal;

[0031] The Log subscription signal is used by the target terminal SOMEIP service to generate Log consumption information, and the Log consumption information is used by the target terminal Log service to generate real-time Log information.

[0032] To achieve the above-mentioned purpose, a fourth aspect of the embodiments of the present application proposes a Log transmission device based on SOMEIP, which is applied to a target terminal, and the device includes:

[0033] The subscription receiving module is used to receive the Log subscription signal of the control terminal;

[0034] A consumption request module, used to input the Log subscription signal to the target terminal SOMEIP service and generate Log consumption information;

[0035] A log generation module, used to generate real-time log information from the target terminal log service through the log consumption information;

[0036] Log sending module, used to transmit real-time Log information to the control terminal;

[0037] The Log subscription signal is generated by inputting the target terminal information into the control terminal SOMEIP service, and the target terminal information is obtained through the Log capture request.

[0038] To achieve the above-mentioned purpose, the fifth aspect of an embodiment of the present application proposes an electronic device, which includes a memory and a processor, the memory stores a computer program, and the processor implements the above-mentioned SOMEIP-based Log transmission method when executing the computer program.

[0039] To achieve the above-mentioned purpose, the sixth aspect of the embodiments of the present application proposes a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned Log transmission method based on SOMEIP is implemented.

[0040] The SOMEIP-based Log transmission method, device, equipment and medium proposed in this application generate a Log subscription signal through the SOMEIP service, and transmit the subscription signal to the target terminal, thereby obtaining the real-time Log transmitted by the target terminal. The SOMEIP service is used as a consumer to obtain Log information from the Log service and transmit it to the control terminal in real time, thereby achieving real-time acquisition of Logs for multiple target terminals. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 It is a control terminal flow chart of the Log transmission method based on SOMEIP provided in an embodiment of the present application;

[0042] Figure 2 It is a target terminal flow chart of the Log transmission method based on SOMEIP provided in an embodiment of the present application;

[0043] Figure 3 It is a schematic diagram of the control terminal structure of the Log transmission device based on SOMEIP provided in an embodiment of the present application;

[0044] Figure 4 It is a schematic diagram of the target terminal structure of the Log transmission device based on SOMEIP provided in an embodiment of the present application;

[0045] Figure 5 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION

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

[0047] It should be noted that, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first", "second", etc. in the specification, claims and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0048] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0049] First, some nouns involved in this application are analyzed:

[0050] Log Service: Log Service is a one-stop service for log data, which involves log collection, storage, query, analysis and other aspects. Log Service is a comprehensive log management platform, which provides a series of functions from log collection, storage, indexing, query, analysis to alarm. Through Log Service, users can easily manage a large amount of log data, quickly locate problems, and improve system stability and security.

[0051] SOMEIP: SOME / IP (Scalable service-Oriented MiddlewarE over IP) is the abbreviation of "Scalable service-oriented IP middleware", released by AUTOSAR, and is an automatic / embedded communication protocol. SOME / IP is an IP-based scalable service-oriented middleware that supports remote procedure calls, event notifications, and underlying serialization / wire formats. It adopts a C / S (Client / Server) communication architecture, where the Server is the service provider and the Client is the service consumer. Through the available service discovery SD (Service Discovery) mechanism, SOME / IP can realize dynamic configuration of services.

[0052] Heartbeat information: Heartbeat information usually refers to a special data signal that is sent regularly in network communication or distributed systems to confirm the connection status between two interconnected parties or nodes. This signal is named "heartbeat information" or "heartbeat signal" because of its regular transmission characteristics, similar to the heartbeat of a living thing. Heartbeat information is a small data packet that is sent to the other party of the connection at regular intervals. Whether the communication link between the two parties has been disconnected is determined by whether the other party replies. By sending and receiving heartbeat information, it can be confirmed whether the two interconnected parties or nodes are still online. Some firewalls or computer management software will regard a connection that has not communicated for a long time as a dead connection and disconnect it. The existence of heartbeat information can avoid this situation. In distributed systems, heartbeat information is often used to monitor the health status of nodes to ensure the stability and reliability of the system.

[0053] In the existing system, different systems have different logs. To obtain logs in real time, you need to enter the corresponding system and issue manual instructions. Cross-system logs cannot be captured to the current host in real time and need to be transmitted separately. Logging into the system requires system permission authentication, which increases system risks. It is also impossible to implement one-to-many real-time log analysis.

[0054] Therefore, some systems have permission control, which makes it impossible to log in and capture real-time logs smoothly. After the target system captures the system log, it cannot be transmitted to the control system, resulting in the inability to implement one-to-many log analysis.

[0055] Based on this, the embodiment of the present application provides a log transmission method based on SOMEIP, which aims to capture logs in real time through configurable user permissions without the need for system permissions; realize remote log capture in the local area network and one-to-many log capture; and solve the problem of log storage and transmission.

[0056] The Log transmission method based on SOMEIP provided in the embodiment of the present application relates to the field of log management technology. The Log transmission method based on SOMEIP provided in the embodiment of the present application can be applied to a terminal, can also be applied to a server side, and can also be software running in a terminal or a server side. In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, etc.; the server side can be configured as an independent physical server, or can be configured as a server cluster or a distributed system composed of multiple physical servers, and can also be configured as a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms; the software can realize the application of the Log transmission method based on SOMEIP, etc., but is not limited to the above forms.

[0057] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

[0058] It should be noted that in each specific implementation of the present application, when it is necessary to perform relevant processing based on data related to user identity or characteristics such as user information, user behavior data, user historical data, and user location information, the user's permission or consent will be obtained first, and the collection, use, and processing of these data will comply with relevant laws, regulations, and standards. In addition, when the embodiment of the present application needs to obtain the user's sensitive personal information, the user's separate permission or consent will be obtained through a pop-up window or by jumping to a confirmation page. After clearly obtaining the user's separate permission or consent, the necessary user-related data for the normal operation of the embodiment of the present application will be obtained.

[0059] Figure 1 is an optional flow chart of the Log transmission method based on SOMEIP provided in the embodiment of the present application applied to the control terminal. Figure 1 The method may include but is not limited to steps S101 to S104:

[0060] S101, obtaining a Log capture request, wherein the Log capture request includes target terminal information;

[0061] S102, inputting the target terminal information into the control terminal SOMEIP service to generate a Log subscription signal;

[0062] S103, transmitting the Log subscription signal to the target terminal;

[0063] S104, receiving real-time Log information transmitted by the target terminal;

[0064] The Log subscription signal is used by the target terminal SOMEIP service to generate Log consumption information, and the Log consumption information is used by the target terminal Log service to generate real-time Log information.

[0065] Specifically, the system or control terminal first receives a Log capture request, which contains information about the target terminal for which logs need to be captured. The Log capture request must contain sufficient target terminal information so that the subsequent steps can accurately locate and connect to the target terminal. After receiving the Log capture request, the system will input the target terminal information into the SOME / IP service of the control terminal, and the SOME / IP service will generate a Log subscription signal based on the provided information. Generating a Log subscription signal is the core of this step, which indicates that the control terminal wants to subscribe to the log information of the target terminal. This signal will be used for subsequent interaction with the SOME / IP service of the target terminal. After generating the Log subscription signal, the system will send it to the target terminal, indicating that the control terminal wants to start receiving real-time log information from the target terminal. After the target terminal receives the Log subscription signal, it will start generating and transmitting real-time log information according to the request of the control terminal. The control terminal will receive the log information and perform subsequent processing or storage. The Log subscription signal acts as a bridge in the process. It connects the SOME / IP service of the control terminal and the target terminal. Through this signal, the control terminal can tell the target terminal what kind of log information it needs, and the target terminal can generate and transmit the corresponding log data accordingly. In the SOME / IP service of the target terminal, the Log subscription signal triggers the generation of Log consumption information. This consumption information tells the Log service of the target terminal which control terminals are subscribing to its log information. Then, based on this information, the Log service generates and transmits real-time log information to the corresponding control terminal. This process implements an efficient log capture mechanism through the SOME / IP service, so that the control terminal can obtain the log information of the target terminal in real time, so as to perform monitoring, analysis and debugging operations.

[0066] More specifically, each host will include a Log service, which can redirect Log output; the Log service acts as a message provider for the SOMEIP service and waits for requests from message consumers; after the Log service intercepts the request and completes authentication, it can transmit the Log to the requester in real time; in theory, all target machines and control machines can request each other; the Log service needs to continuously receive the requester's heartbeat to avoid timeout and save bandwidth; the control terminal machine can choose to save and transmit the Log directly.

[0067] In some embodiments, the SOMEIP-based Log transmission method further includes:

[0068] Periodically sending heartbeat information to the target terminal;

[0069] The heartbeat information is used for the target terminal to stop transmitting real-time Log information to the control terminal after failing to receive the heartbeat information sent by the control terminal.

[0070] Specifically, the control terminal periodically sends heartbeat information to the target terminal at a predetermined time interval. This information is usually a small data packet, but it is enough to indicate that the control terminal is still online and hopes to continue to receive log information. If the target terminal does not receive the heartbeat information from the control terminal within a period of time (i.e., the timeout period of the heartbeat information), it will think that the control terminal may be offline or no longer needs to receive log information. Therefore, the target terminal will stop transmitting real-time Log information to the control terminal. The control terminal needs to set a timer to send heartbeat information at a predetermined time interval. Whenever the timer reaches a specified time point, the control terminal will generate a data packet of heartbeat information. This data packet may contain some basic identification information, such as the ID of the control terminal, the current timestamp, etc., so that the target terminal can identify and confirm the source and validity of the heartbeat information. After generating the heartbeat information, the control terminal will send it to the target terminal. If the target terminal does not receive the heartbeat information within the predetermined timeout period, it will stop transmitting real-time Log information to the control terminal. In some embodiments, the target terminal sends a confirmation message to the control terminal to indicate that it has successfully received the heartbeat information. This confirmation information is not required, but can improve the reliability and stability of the system.

[0071] By sending heartbeat information from the control terminal to the target terminal, the target terminal can ensure that the communication link with the control terminal remains valid. If there is a problem with the link (such as network interruption, equipment failure, etc.), the target terminal will be able to stop transmitting log information in time, thereby avoiding unnecessary waste of resources. When the control terminal no longer needs to receive log information (such as the user cancels the log capture request), it can notify the target terminal by stopping sending heartbeat information. In this way, the target terminal can stop generating and transmitting log information, thereby saving system resources.

[0072] In some embodiments, the Log subscription signal includes authentication information, and the target terminal SOMEIP service stops generating Log consumption information if the authentication information fails to pass the authentication check.

[0073] Specifically, the Log subscription signal contains authentication information, which is an important security mechanism. It is used to ensure that only authorized control terminals or clients can receive and process Log information from the target terminal. When the authentication information fails to pass the authentication check, the SOME / IP service of the target terminal will stop generating Log consumption information. This is an effective security measure to prevent unauthorized access and data leakage. Authentication information usually includes user name, password, token or other forms of authentication credentials. During the Log subscription process, the control terminal or client needs to provide this authentication information to the target terminal to prove its identity and authority. Through the authentication check, the target terminal can verify the identity and authority of the control terminal or client. If the authentication information fails to pass the check, the target terminal will refuse to provide it with Log information, thereby preventing unauthorized access and data leakage.

[0074] During the log subscription process, the control terminal or client needs to generate or obtain valid authentication information. This information may be pre-configured or dynamically generated through some authentication mechanism. The control terminal or client sends the authentication information to the target terminal as part of the log subscription signal. After receiving the authentication information, the target terminal will verify it. This usually involves comparing it with the correct information stored in advance to confirm the identity and authority of the control terminal or client. If the authentication information passes the check, the target terminal will continue to generate and send log consumption information to the control terminal or client. If the authentication information fails to pass the check, the target terminal will stop generating log consumption information and may send an error message to the control terminal or client indicating that the authentication failed. When the authentication information fails to pass the check, the SOME / IP service of the target terminal will immediately stop generating log consumption information. This is to prevent unauthorized access and data leakage.

[0075] Figure 2 is an optional flow chart of the Log transmission method based on SOMEIP provided in the embodiment of the present application applied to the target terminal. Figure 2 The method may include but is not limited to steps S101 to S104:

[0076] S201, receiving a Log subscription signal from a control terminal;

[0077] S202, inputting the Log subscription signal to the target terminal SOMEIP service to generate Log consumption information;

[0078] S203, generating real-time Log information from the target terminal Log service through the Log consumption information;

[0079] S204, transmitting real-time Log information to the control terminal;

[0080] The Log subscription signal is generated by inputting the target terminal information into the control terminal SOMEIP service, and the target terminal information is obtained through the Log capture request.

[0081] Specifically, the target terminal first receives the Log subscription signal from the control terminal. This signal usually contains information such as the type, format, frequency, etc. of the Log that the control terminal wants to subscribe to, as well as possible authentication information such as user name, password, token, etc. The target terminal inputs the received Log subscription signal into its SOME / IP service. The SOME / IP service generates corresponding Log consumption information based on the information in the subscription signal. The Log service of the target terminal extracts real-time Log information from the log system of the target terminal based on the generated Log consumption information, and the target terminal transmits the generated real-time Log information to the control terminal through the SOME / IP protocol. The SOME / IP protocol between the control terminal and the target terminal can ensure that the control terminal can accurately subscribe to and receive real-time Log information from the target terminal.

[0082] In some embodiments, the SOMEIP-based Log transmission method further includes:

[0083] Periodically check whether the heartbeat information sent by the control terminal is received;

[0084] If the heartbeat information sent by the control terminal is not received, the transmission of real-time Log information to the control terminal is stopped.

[0085] Specifically, the target terminal needs to set a timer to periodically detect whether the heartbeat information sent by the control terminal is received at a predetermined time interval. Whenever the timer reaches a specified time point, the target terminal will check its receiving buffer or communication interface to determine whether the heartbeat information from the control terminal has been received. If the target terminal receives the heartbeat information within the predetermined time, it will continue to transmit real-time Log information to the control terminal according to the previous process. If the target terminal does not receive the heartbeat information within the predetermined time, it will think that the control terminal may be offline or no longer needs to receive Log information. Therefore, the target terminal will stop transmitting real-time Log information to the control terminal to save system resources and avoid unnecessary network transmission. Periodic monitoring of heartbeat information can also help the target terminal detect failures of the control terminal or network interruptions. If the heartbeat information is not received for a long time, the target terminal can take corresponding fault handling measures, such as recording error logs, sending alarm information, etc.

[0086] Periodically checking whether the heartbeat information sent by the control terminal is received is an important step in the log transmission method based on SOME / IP. It not only ensures that the control terminal is still online and wants to continue to receive log information, but also optimizes the utilization of system resources and provides a fault detection mechanism.

[0087] In some embodiments, the step of receiving a Log subscription signal from a control terminal specifically includes:

[0088] Receive a Log subscription signal from a control terminal, and extract authentication information from the Log subscription signal;

[0089] If the authentication information fails to pass the authentication check of the target terminal SOMEIP service, the generation of Log consumption information is stopped.

[0090] Specifically, the target terminal first receives the Log subscription signal from the control terminal. This signal usually contains information such as the type, format, and frequency of the log that the control terminal wants to subscribe to, as well as authentication information for identity verification, such as user name, password, token, etc. The target terminal extracts the authentication information from the received Log subscription signal and inputs the extracted authentication information into its SOME / IP service for authentication check. If the authentication information passes the authentication check, the target terminal will continue to process the Log subscription signal and generate corresponding Log consumption information so that real-time Log information can be subsequently extracted from the Log service of the target terminal. If the authentication information fails the authentication check, the target terminal will stop generating Log consumption information and may send an error message or alarm message to the control terminal, indicating that the authentication failed and the subscription request was rejected.

[0091] Through authentication checks, the target terminal can ensure that only authorized control terminals can access its log information. This helps prevent unauthorized access and data leakage, thereby enhancing the security of the system. The authentication mechanism can also prevent malicious control terminals from attempting to access the target terminal's sensitive information by forging or tampering with log subscription signals. This helps protect the target terminal from potential network attacks and threats.

[0092] See also Figure 3 The embodiment of the present application further provides a Log transmission device based on SOMEIP, which is applied to a control terminal, and the device includes:

[0093] The request acquisition module 101 is used to acquire a log capture request, wherein the log capture request includes target terminal information;

[0094] The subscription generating module 102 is used to input the target terminal information into the control terminal SOMEIP service and generate a Log subscription signal;

[0095] The subscription sending module 103 is used to transmit the Log subscription signal to the target terminal;

[0096] Log receiving module 104, used to receive real-time Log information transmitted by the target terminal;

[0097] The Log subscription signal is used by the target terminal SOMEIP service to generate Log consumption information, and the Log consumption information is used by the target terminal Log service to generate real-time Log information.

[0098] The specific implementation of the SOMEIP-based Log transmission device is basically the same as the specific implementation of the SOMEIP-based Log transmission method applied to the control terminal, and will not be repeated here.

[0099] See also Figure 4 The embodiment of the present application also provides a Log transmission device based on SOMEIP, which is applied to a target terminal, and the device includes:

[0100] The subscription receiving module 201 is used to receive the Log subscription signal of the control terminal;

[0101] The consumption request module 202 is used to input the Log subscription signal to the target terminal SOMEIP service to generate Log consumption information;

[0102] Log generation module 203, used to generate real-time Log information from the target terminal Log service through the Log consumption information;

[0103] Log sending module 204, used to transmit real-time Log information to the control terminal;

[0104] The Log subscription signal is generated by inputting the target terminal information into the control terminal SOMEIP service, and the target terminal information is obtained through the Log capture request.

[0105] The specific implementation of the SOMEIP-based Log transmission device is basically the same as the specific implementation of the SOMEIP-based Log transmission method applied to the target terminal, and will not be repeated here.

[0106] The embodiment of the present application also provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the above-mentioned Log transmission method based on SOMEIP when executing the computer program. The electronic device can be any intelligent terminal including a tablet computer, a car computer, etc.

[0107] See also Figure 5 , Figure 5The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes:

[0108] The processor 501 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;

[0109] The memory 502 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 502 can store an operating system and other applications. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 502, and the processor 501 calls and executes the Log transmission method based on SOMEIP in the embodiment of this application;

[0110] Input / output interface 503, used to implement information input and output;

[0111] Communication interface 504, used to realize communication interaction between the device and other devices, which can be realized by wired mode (such as USB, network cable, etc.) or wireless mode (such as mobile network, WIFI, Bluetooth, etc.);

[0112] A bus 505 that transmits information between the various components of the device (e.g., the processor 501, the memory 502, the input / output interface 503, and the communication interface 504);

[0113] The processor 501 , the memory 502 , the input / output interface 503 and the communication interface 504 are connected to each other in communication within the device via the bus 505 .

[0114] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned Log transmission method based on SOMEIP is implemented.

[0115] As a non-transient computer-readable storage medium, the memory can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0116] The description of the embodiments of the present application is intended to more clearly illustrate the technical solutions of the embodiments of the present application and does not constitute a limitation on the technical solutions provided by the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of the present application are also applicable to similar technical problems.

[0117] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.

[0118] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.

[0119] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0120] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one of the following" or its similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0121] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0122] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0123] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.

[0124] The preferred embodiments of the present application are described above with reference to the accompanying drawings, but the scope of the rights of the present application is not limited thereto. Any modification, equivalent substitution and improvement made by those skilled in the art without departing from the scope and essence of the present application should be within the scope of the rights of the present application.

Claims

1. A Log transmission method based on SOMEIP, applied to a control terminal, characterized in that: The method comprises: Obtaining a log capture request, wherein the log capture request includes target terminal information; Input the target terminal information into the control terminal SOMEIP service to generate a Log subscription signal; Transmitting the Log subscription signal to the target terminal; Receiving real-time Log information transmitted by the target terminal; The Log subscription signal is used by the target terminal SOMEIP service to generate Log consumption information, and the Log consumption information is used by the target terminal Log service to generate real-time Log information.

2. The Log transmission method based on SOMEIP according to claim 1, characterized in that: The Log transmission method based on SOMEIP also includes: Periodically sending heartbeat information to the target terminal; The heartbeat information is used for the target terminal to stop transmitting real-time Log information to the control terminal after failing to receive the heartbeat information sent by the control terminal.

3. The Log transmission method based on SOMEIP according to claim 1, characterized in that: The Log subscription signal includes authentication information, and the target terminal SOMEIP service stops generating Log consumption information if the authentication information fails to pass the authentication check.

4. A Log transmission method based on SOMEIP, applied to a target terminal, characterized in that: The method comprises: Receive the Log subscription signal from the control terminal; Input the Log subscription signal to the target terminal SOMEIP service to generate Log consumption information; Generate real-time log information from the target terminal log service through the log consumption information; Transmitting real-time Log information to the control terminal; The Log subscription signal is generated by inputting the target terminal information into the control terminal SOMEIP service, and the target terminal information is obtained through the Log capture request.

5. The Log transmission method based on SOMEIP according to claim 4, characterized in that: The Log transmission method based on SOMEIP also includes: Periodically check whether the heartbeat information sent by the control terminal is received; If the heartbeat information sent by the control terminal is not received, the transmission of real-time Log information to the control terminal is stopped.

6. The Log transmission method based on SOMEIP according to claim 4, characterized in that: The step of receiving the Log subscription signal of the control terminal specifically includes: Receive a Log subscription signal from a control terminal, and extract authentication information from the Log subscription signal; If the authentication information fails to pass the authentication check of the target terminal SOMEIP service, the generation of Log consumption information is stopped.

7. A Log transmission device based on SOMEIP, applied to a control terminal, characterized in that: The device comprises: A request acquisition module, used to acquire a Log capture request, wherein the Log capture request includes target terminal information; A subscription generation module, used to input the target terminal information into the control terminal SOMEIP service and generate a Log subscription signal; A subscription sending module, used for transmitting the Log subscription signal to the target terminal; Log receiving module, used to receive real-time Log information transmitted by the target terminal; The Log subscription signal is used by the target terminal SOMEIP service to generate Log consumption information, and the Log consumption information is used by the target terminal Log service to generate real-time Log information.

8. A Log transmission device based on SOMEIP, applied to a target terminal, characterized in that: The device comprises: The subscription receiving module is used to receive the Log subscription signal of the control terminal; A consumption request module, used to input the Log subscription signal to the target terminal SOMEIP service and generate Log consumption information; A log generation module, used to generate real-time log information from the target terminal log service through the log consumption information; Log sending module, used to transmit real-time Log information to the control terminal; The Log subscription signal is generated by inputting the target terminal information into the control terminal SOMEIP service, and the target terminal information is obtained through the Log capture request.

9. An electronic device, characterized in that: The electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the SOMEIP-based Log transmission method according to any one of claims 1 to 6 when executing the computer program.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the SOMEIP-based Log transmission method according to any one of claims 1 to 6 is implemented.