Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the technical solution of the present application and are not intended to limit the present application.
For a better understanding of the technical solution of the present application, the following detailed description will be given with reference to the drawings and the specific embodiments.
The main solution of the embodiment of the application is that a network segment data service instruction sent by a diagnosis device is received, a route mirror function of a vehicle target network segment is started according to the network segment data service instruction, and a target network segment message mirror is transmitted to the diagnosis device through an Ethernet diagnosis port.
Technical terms related to the embodiment of the application:
CAN (Controller Area Network) is a serial communication protocol, and is mainly used for realizing distributed control in the fields of industrial automation, automobile electrical systems and the like. The CAN adopts a bus topological structure, supports multiple main modes, has the characteristics of strong real-time performance, high reliability, strong flexibility and the like, and is widely applied to the fields of automobile electronics, industrial automation and the like.
Ethernet (Ethernet), which is a common wired local area network technology, uses CSMA/CD protocol for data transmission and collision detection. It uses twisted pair or optical fiber as physical transmission medium to support high-speed data transmission, and common rates include 10Mbps, 100Mbps, 1Gbps, etc. The Ethernet has the advantages of high reliability, strong usability, good cost benefit and the like, is widely applied to the fields of enterprise networks, data centers, home networks and the like, and is an important technical foundation of modern network communication.
UDS (Unified Diagnostic Services) the service, namely unified diagnostic service, is a standardized automotive diagnostic communication protocol. The UDS service is formulated based on the ISO 14229 standard, which defines a strict security access control mechanism. UDS services are widely used for communication between modern automotive Electronic Control Units (ECU) and diagnostic test equipment. The UDS service provides a standardized set of diagnostic service procedures including reading trouble codes, reading data streams, clearing trouble codes, etc., all of which have their own independent IDs (SIDs) for easy identification. Through the UDS protocol, the diagnosis equipment can be in high-efficiency communication with the vehicle ECU, and rapid positioning and repairing of the vehicle faults are achieved.
ECU (Electronic Control Unit) an electronic control unit) which is an important component in modern vehicles, similar to the "brain" of a vehicle, is responsible for managing and controlling the various electronic systems of the vehicle. The ECU processes and makes decisions by receiving signals from various sensors and then sends instructions to the actuators to achieve precise control of the various systems of the vehicle.
Commercial vehicles often have tens to hundreds of controllers, and when a commercial vehicle has functional anomalies and network routing problems, signals between the controllers of the vehicle need to be analyzed to locate the problem. The existing solution is to use diagnostic equipment or test OBD ports to troubleshoot faults by acquiring messages of a certain controller network segment during the research and development stage of commercial vehicles.
However, the diagnosis equipment can only read the fault code, the root cause of the fault cannot be clearly and effectively positioned, the test OBD port in the research and development stage of the commercial vehicle is utilized to troubleshoot the fault, but when the vehicle is on trial or after trial and post-dose, the test OBD port is cancelled due to the information safety requirement, and the fault cannot be troubleshooted through the test OBD port.
From the above analysis, how to quickly obtain the vehicle network message data is a problem to be solved.
The application provides a solution, which is characterized in that a network segment data service instruction sent by diagnostic equipment is received, the network segment data service instruction is used for acquiring message data of a vehicle target network segment, then a vehicle starts a corresponding route mirror function of the vehicle target network segment according to the network segment data service instruction, the message data mirror image of the vehicle target network segment is copied to an Ethernet diagnostic port, and the message data is forwarded to the diagnostic equipment through the Ethernet diagnostic port, so that the rapid acquisition of the message of the vehicle target network segment is realized, and the subsequent positioning analysis of the vehicle network route abnormality is further carried out according to the message data.
It should be noted that, the execution body of the embodiment may be a computing service device with functions of data processing, network communication and program running, for example, a tablet computer, a personal computer, a mobile phone, or a message forwarding device capable of implementing the above functions. The present embodiment and the following embodiments will be described below by taking a message forwarding device as an example.
Based on this, an embodiment of the present application provides a message forwarding method, where the method is applied to a vehicle, and referring to fig. 1, fig. 1 is a schematic flow chart of a first embodiment of the message forwarding method of the present application.
In this embodiment, the method is applied to a vehicle, and the message forwarding method includes steps S110 to S120:
step S110, receiving a network segment data service instruction sent by diagnostic equipment;
and step S120, according to the network segment data service instruction, starting a route mirror function of a vehicle target network segment, and mirror-forwarding a target network segment message to the diagnosis equipment through an Ethernet diagnosis port.
Specifically, in this embodiment, the message forwarding device is connected to a standard diagnostic port of the vehicle through a UDS service. Firstly, the message forwarding device needs to receive a network segment data service instruction sent by the diagnostic device, then determines a target network segment included in the network segment data service instruction according to diagnostic standards of UDS service, and confirms whether to start routine service of a route mirror image according to routine control state identification.
After the routine service of the route mirror image of the vehicle target network segment is started, the message data mirror image of the vehicle target network segment is copied to the Ethernet diagnosis port, and the message data is forwarded to the diagnosis equipment through the Ethernet diagnosis port, so that the rapid acquisition of the message of the vehicle target network segment is realized.
Among these, the vehicle standard diagnostic ports are often OBD-II ports that provide a standardized 16-pin diagnostic interface and a unified communication protocol (e.g., SAE J1939, ISO 15765, etc.) that enable diagnostic equipment between different brands and models of vehicles to be compatible with each other. The network segment data service instruction is used for instructing the vehicle ECU to start a route mirror function of the target network segment, and is used for mirror copying the message data of the target network segment and sending the message data to the vehicle standard diagnosis port. According to the UDS service, the segment data service instruction is typically an eight byte instruction, where the first byte is used to identify a valid byte in the segment data service instruction, the second byte represents 31 routine service, the third byte represents 31 routine sub-function items, i.e. routine control state identification, the fourth byte and the fifth byte are used to identify a route mirror service routine, and the sixth byte, the seventh byte and the eighth byte are used to identify a target segment.
Further, in order to follow the security access control mechanism of the UDS service, the access right of the diagnostic device needs to be unlocked in advance, so before the step S110, steps a01 to a04 are further included:
Step A01, receiving a security authentication instruction sent by the diagnosis equipment;
Step A02, according to the security authentication instruction, sending a security key seed to the diagnosis equipment to perform security authentication on the diagnosis equipment;
Step A03, receiving a first security key sent by the diagnostic equipment, wherein the first security key is calculated by the diagnostic equipment based on a preset encryption algorithm and the security key seed;
Specifically, the diagnostic device first connects with the vehicle ECU through the vehicle standard diagnostic port and then enters a diagnostic session mode through the diagnostic session control service, for example, enters a default session through instruction 10 01 or enters an extended session through instruction 10 03. Then, the message forwarding device receives the security authentication instruction sent by the diagnostic device, so as to perform security authentication of the diagnostic device.
The message forwarding device needs to send a security key seed to the diagnostic device according to the security authentication instruction sent by the diagnostic device. The diagnosis device needs to calculate the security key seed by using a preset encryption algorithm to obtain a first security key, and sends the first security key to the message forwarding device.
And comparing the first security key with a second security key obtained by the message forwarding device through calculation according to a preset encryption algorithm and the security key seed, and confirming whether the diagnosis device has the permission of safely accessing the vehicle according to a comparison result.
And step A04, when the first security key is consistent with the second security key, sending a positive response message to the diagnosis equipment, and opening the data access authority of the diagnosis equipment, wherein the second security key is obtained by calculating the vehicle and the security key seed based on a preset encryption algorithm before sending the security key seed.
Specifically, when the first security key is compared with the second security key, the message forwarding device sends a positive response message to the diagnosis device, and opens the data access authority of the diagnosis device, so that the diagnosis device can interact with the vehicle ECU to access the vehicle ECU data. It should be appreciated that the data access rights of the diagnostic device should be in a closed state by default.
For example, in the present embodiment, the security authentication for the diagnostic device is Level 1 security authentication. The diagnostic device may open the data access rights of the diagnostic device by sending a security authentication instruction (e.g., 27 01) to the message forwarding device, then the message forwarding device replies with a positive response (e.g., 67 01 XX), then the diagnostic device replies with a positive response (e.g., 27 02 XX) to the message forwarding device, and the message forwarding device replies with a positive response (e.g., 67 02), i.e., level 1 security authentication on behalf of the diagnostic device passes.
It should be appreciated that in order to enable real-time monitoring of message data of a target network segment of a vehicle, a hold session control instruction (e.g., 3e 80) may be sent by the diagnostic device such that the diagnostic device is in a hold state for a long period of time with a session prior to the vehicle.
The embodiment provides a message forwarding method, which is used for receiving a network segment data service instruction sent by diagnostic equipment, starting a route mirror function of a vehicle target network segment according to the network segment data service instruction, and forwarding the target network segment message mirror to the diagnostic equipment through an Ethernet diagnostic port.
The application receives the network segment data service instruction sent by the diagnosis equipment, the network segment data service instruction is used for acquiring the message data of the vehicle target network segment, then the vehicle starts the route mirror function of the corresponding vehicle target network segment according to the network segment data service instruction, copies the message data mirror image of the vehicle target network segment to the Ethernet diagnosis port, and forwards the message data to the diagnosis equipment through the Ethernet diagnosis port, thereby realizing the rapid acquisition of the message of the vehicle target network segment, and further carrying out the positioning analysis of the vehicle network route abnormality according to the message data.
In the second embodiment of the present application, the same or similar content as in the first embodiment of the present application may be referred to the description above, and will not be repeated. On this basis, the network segment data service instruction is an ethernet switch port mirror image instruction, and the vehicle includes a gateway controller, please refer to fig. 2, and further includes steps S210 to S220 before the step S120:
Step S210, configuring data outlets and data inlets of a plurality of Ethernet mirror image source ports through the gateway controller;
Step S220, connecting the data outlet and the data inlet to external ethernet diagnostic ports respectively through the gateway controller, so as to obtain ethernet diagnostic ports configured in a mirror image in advance.
In particular, reference is made to a mirror function example diagram of an ethernet diagnostic port shown in fig. 7. Vehicle ethernet internal communications are typically based on a plurality of ethernet switches for data exchange and communication. Firstly, the message forwarding equipment needs to configure mirror function of each port of the Ethernet switch associated with the vehicle target network segment in advance according to the message acquisition requirement of the vehicle target network segment. In order to distinguish between different types of data streams, it is also necessary to distinguish between a data entry for each port (port 1, port2, etc. in fig. 7) and a data exit, where the data entry represents data that is passed from that port into the gateway controller and the data exit represents data that is sent from that port (including forwarded data) to the other ports. It should be appreciated that because of the limited amount of CAN data for the vehicle target network segment, the ports of the ethernet switch associated with the common or common vehicle target network segment may be preconfigured with mirror functions in advance, such as power domain controllers, power conversion module controllers, body drive domain controllers, body chassis domain controllers, and the like.
Finally, when the message forwarding device needs to mirror the data of the internal Ethernet to the external diagnosis Ethernet, the mirror channel data can be selected according to the required network segment data, the entrance or the exit of the port needing mirror is preconfigured, the data sent by the gateway controller port is mirrored to the external Ethernet diagnosis port through the [1] [3] [5] path shown in fig. 7, and the data sent to the gateway controller port is mirrored to the external Ethernet diagnosis port through the [2] [4] [6] path shown in fig. 7.
The embodiment provides a message forwarding method, which comprises the steps of receiving a network segment data service instruction sent by a diagnosis device, configuring a data outlet and a data inlet of a plurality of Ethernet mirror image source ports through a gateway controller, respectively connecting the data outlet and the data inlet to an external Ethernet diagnosis port through the gateway controller to obtain the Ethernet diagnosis port configured in advance in a mirror image mode, starting a route mirror image function of a vehicle target network segment according to the network segment data service instruction, and forwarding the target network segment message mirror image to the diagnosis device through the Ethernet diagnosis port.
According to the method, the gateway controller is used for configuring the data outlets and the data inlets of the Ethernet mirror image source ports, then the data outlets and the data inlets are respectively connected to the external Ethernet diagnosis ports to obtain the Ethernet diagnosis ports configured in advance in mirror image mode, so that message data can be forwarded to the diagnosis equipment by the aid of the Ethernet diagnosis ports configured in advance in mirror image mode, rapid acquisition of messages of the vehicle target network segment can be achieved, and positioning analysis of vehicle network routing abnormality can be further conducted according to the message data.
In the third embodiment of the present application, the same or similar content as that of the first and/or second embodiments of the present application may be referred to the above description, and will not be repeated. On this basis, referring to fig. 3, the step S120 includes steps S310 to S330:
Step S310, judging whether to start routine service according to the routine control state identification in the network segment data service instruction, wherein the routine service comprises CAN-ETH mirror image service and Ethernet switch port mirror image service;
step S320, when the routine control state identifier is an opening identifier, determining a target network segment according to the network segment data service instruction;
Specifically, the second byte in the segment data service instruction represents 31 routine service, and the third byte represents 31 a subroutine function item of the routine, wherein the third byte is a routine control status identification.
In the UDS service, the sub-functional items of the 31 routine include 01, 02, and 03. Where 31 01 represents a start routine, 31 02 represents a stop routine, and 31 03 represents a request routine result. The fourth byte and the fifth byte in the segment data service instruction are used to set the route mirror service routine.
Whether the routine service is CAN-ETH mirror service or Ethernet switch port mirror service, the message forwarding device needs to acquire the routine control state identifier in the network segment data service instruction, namely the third byte, and judges whether to start the routine service.
If and only if the routine control state identifier is an opening identifier, namely the third byte in the network segment data service instruction is 01, the message forwarding device determines a target network segment according to the sixth, seventh and eighth bytes in the network segment data service instruction, and opens a route mirror function of the target network segment.
It should be noted that when the routine service is a CAN-ETH mirror service, two bytes of F1F 4 may be used to represent mirror CAN bus data to ethernet diagnostic port functions.
When the routine service is an ethernet switch port mirroring service, two bytes F1F 5 may be defined to represent mirror CAN bus data to ethernet switch port functions.
It should be appreciated that the fourth and fifth bytes in the segment data service instruction are typically diagnostic-party-customized routine identifiers, and the present application is not limited to fourth and fifth byte specific data.
In a possible embodiment, the step S320 may include steps B01 to B02:
step B01, when the routine control state identifier is an opening identifier, determining whether a plurality of target network segments exist according to the instruction valid byte identifier in the network segment data service instruction;
Specifically, when the routine control state identifier is an on identifier, the packet forwarding device may determine a valid byte of the network segment data service instruction according to a first byte in the network segment data service instruction. Because only the sixth, seventh and eighth bytes in the segment data service instruction identify the target segment, when the instruction valid byte is identified as 06, the valid byte representing the segment data service instruction is only 6 bytes, and at this time, the target segment is only 1.
When the instruction valid byte identification indicates more than 6 bytes, such as 07,08, etc., there are multiple target segments. In addition, it may be provided that a certain byte code represents all CAN segments of the vehicle.
And B02, when a plurality of target network segments exist, mirroring to acquire CAN message data of the target network segments, and forwarding the CAN message data of the target network segments to the diagnosis equipment one by one through an Ethernet diagnosis port according to a preset priority forwarding level.
Then, the message forwarding device uses the gateway controller to monitor CAN message data on a plurality of target network segments, and mirror copies the CAN message data to be stored in the gateway controller. And then, according to the preset priority, forwarding CAN message data of a plurality of target network segments to the diagnosis equipment in sequence.
The preset priority forwarding level is a message priority forwarding level preset by related personnel according to the safety level or the functional importance of different controller signals of the vehicle.
Step S330, mirror image obtains the CAN message data of the target network segment, and forwards the CAN message data of the target network segment to the diagnosis equipment through the Ethernet diagnosis port.
And finally, after the message forwarding equipment obtains the target network segment, starting a route mirror function of the target network segment according to the CAN-ETH mirror service and the Ethernet switch port mirror service. And according to the network segment data service instruction, mirror image copying is carried out to obtain message data on the CAN bus corresponding to the target network segment, and finally, the CAN message data is forwarded to the diagnosis equipment through the Ethernet diagnosis port.
The CAN bus corresponding to the target network segment CAN be configured by a user by related personnel, for example, the power domain controller network segment corresponds to the network segment CAN1 FD, the power conversion module controller network segment corresponds to the network segment CAN2 FD, and the vehicle body driving domain controller network segment corresponds to the network segment CAN3 FD.
It should be noted that, CAN FD is developed based on CAN, which CAN meet the requirements of higher data transmission rate and larger data volume.
For example, the diagnostic device transmits 1003 to enter a diagnostic extended session mode. After the diagnostic device receives 50ms of the reply from the message forwarding device, the diagnostic device periodically (e.g., every 50 ms) sends an online command 3e 80 to maintain the diagnostic extended session mode. When acquiring the power network segment message, the diagnostic device sends an access request 27 01, and after the message forwarding device replies 67 01 XX XX XX XX XX XX (key seed), the diagnostic device sends 27 02 XX XX XX XX XX XX according to the key seed. When the first security key is consistent with the key generated inside the message forwarding device, the message forwarding device replies 67 02 to unlock the access rights of the diagnostic device. The diagnostic equipment sends 05 31 01 F1 F4 75 0000 to the message forwarding equipment through the UDS diagnosis port, the message forwarding equipment replies 05 71 01 F1 F4 75 0000 to indicate that the message forwarding equipment has opened the power network segment mirror function, and the diagnostic equipment needs to send 03 22 74 03 0000 0000 all the time according to the period of 50ms and normally records the power network segment message. When the mirror image function needs to be exited, the diagnostic device is turned off by the UDS diagnostic CAN transmission 04 31 02 F1 F4 0000 00.
The embodiment provides a message forwarding method, which comprises the steps of receiving a network segment data service instruction sent by diagnostic equipment, judging whether to start routine service according to a routine control state identifier in the network segment data service instruction, wherein the routine service comprises CAN-ETH mirror image service and Ethernet switch port mirror image service, determining a target network segment according to the network segment data service instruction when the routine control state identifier is the start identifier, mirror image obtaining CAN message data of the target network segment, and forwarding the CAN message data of the target network segment to the diagnostic equipment through an Ethernet diagnostic port.
According to the scheme, whether routine service is started is judged according to the routine control state identification in the network segment data service instruction, then when the routine control state identification is the starting identification, the target network segment is determined, CAN message data of the target network segment is obtained through mirroring, and the message data is forwarded to the diagnosis equipment through the Ethernet diagnosis port, so that the rapid acquisition of the message of the target network segment of the vehicle is realized, and the positioning analysis of the vehicle network routing abnormality is further carried out according to the message data.
In the fourth embodiment of the present application, the same or similar contents as those of the above embodiments are referred to the above description, and will not be repeated. On this basis, referring to fig. 4, the method further includes steps S410 to S420:
step S410, when a plurality of network segment data service instructions are received, determining the diagnosis priority ordering of the network segment data service instructions based on a diagnosis priority arbitration mechanism;
And step S420, according to the diagnosis priority order, responding to the network segment data service instruction.
It should be noted that the diagnosis priority arbitration mechanism refers to a priority judging method and rule of diagnosis instructions preset by related personnel, and is used for confirming and sequencing diagnosis priorities of a plurality of network segment data service instructions.
Specifically, when the message forwarding device receives a plurality of network segment data service instructions from different diagnostic devices, the diagnostic device from which the network segment data service instructions originate is needed first, so as to further judge the diagnostic scene corresponding to the network segment data service instructions, such as an external diagnostic device, an OTA, a remote diagnosis and a vehicle-mounted diagnostic device. And then combining a diagnosis priority arbitration mechanism, and determining diagnosis priority ordering of the network segment data service instructions according to diagnosis scenes corresponding to the network segment data service instructions.
In this embodiment, the diagnosis priority arbitration mechanism may be a diagnosis scene priority, where the diagnosis scene priority is defined as follows:
External diagnostic apparatus=ota > remote diagnosis > vehicle-mounted diagnostic apparatus
And finally, according to the diagnosis priority order, starting from the network segment data service instruction with the highest priority, and carrying out response processing one by one.
Further, when the message forwarding device receives the high-priority network segment data service instruction in the process of processing the low-priority network segment data service instruction, the gateway controller stops forwarding the relevant message data of the low-priority network segment data service instruction, delays for a certain time (in millimeter), maintains the last response message route of the low-priority network segment data service instruction in the period, and stops responding to the low-priority network segment data service instruction after a certain time (in millimeter), and starts responding to the high-priority network segment data service instruction. Wherein, certain time is set by the related personnel by oneself, the application is not limited in detail here.
Further, because the diagnostic scenarios may have the same priority, or the diagnostic communication channels in the same diagnostic scenario are different to generate the diagnostic requirement conflict, the method further includes steps C01 to C03:
step C01, determining a corresponding diagnosis scene and a diagnosis communication channel according to the network segment data service instruction;
step C02, when the diagnosis scenes of the network segment data service instructions are the same priority, the network segment data service instructions are processed preferentially based on a preemption principle;
and C03, when the network segment data service instructions belong to different diagnosis communication channels under the same diagnosis scene, carrying out priority processing on the network segment data service instructions based on a pre-emption principle.
It should be understood that two communication channels, namely CAN and ETH, exist in the same diagnostic port, and the network segment data service instruction may also be a CAN-CAN mirror image routing service instruction, which is implemented by acquiring CAN message data of the target network segment by mirroring a certain CAN communication channel or communication port, and transmitting the CAN message data to the dispute device.
Firstly, the message forwarding device needs to determine a diagnosis scene and a diagnosis communication channel corresponding to the network segment data service instruction according to a sending end, a network transmission path, a network protocol and the like of the network segment data service instruction.
When the diagnosis scenes of the network segment data service instructions with the same priority are present, that is, when the network segment data service instructions with the same priority collide, the message forwarding device selects the earliest received network segment data service instruction for priority processing according to the pre-emption principle and the receiving time of the network segment data service instruction.
When a plurality of network segment data service instructions belong to different diagnosis communication channels under the same diagnosis scene, namely, when the network segment data service instructions conflict with CAN and ETH channels under the same diagnosis scene, namely, the network segment data service instructions comprise at least one of CAN-CAN mirror image routing service instructions and CAN-ETH mirror image service instructions and Ethernet switch port mirror image service instructions.
The message forwarding device selects the earliest received network segment data service instruction to be processed preferentially according to the pre-emption principle and the receiving time of the network segment data service instruction.
The embodiment provides a message forwarding method, which comprises the steps of receiving network segment data service instructions sent by diagnostic equipment, starting a route mirror function of a vehicle target network segment according to the network segment data service instructions, forwarding the target network segment message mirror image to the diagnostic equipment through an Ethernet diagnostic port, determining diagnostic priority ordering of the network segment data service instructions based on a diagnostic priority arbitration mechanism when a plurality of network segment data service instructions are received, and responding to the network segment data service instructions according to the diagnostic priority ordering.
According to the scheme, the diagnosis priority arbitration mechanism confirms the diagnosis priority ordering of the network segment data service instructions, and then responds to the network segment data service instructions according to the diagnosis priority ordering, so that conflict processing of the network segment data service instructions from different communication channels of different diagnosis scenes can be solved.
The present application also provides a message forwarding device, please refer to fig. 5, which includes:
a receiving module 10, configured to receive a network segment data service instruction sent by a diagnostic device;
And the message forwarding module 20 is configured to turn on a route mirror function of a target network segment of the vehicle according to the network segment data service instruction, and forward the target network segment message mirror to the diagnostic device through an ethernet diagnostic port.
The message forwarding device provided by the application can solve the technical problem of how to quickly acquire the vehicle network message data by adopting the message forwarding method in the embodiment. Compared with the prior art, the beneficial effects of the message forwarding device provided by the application are the same as those of the message forwarding method provided by the embodiment, and other technical features of the message forwarding device are the same as those disclosed by the method of the embodiment, so that the description is omitted herein.
The application provides a message forwarding device, which comprises at least one processor and a memory in communication connection with the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the message forwarding method in the embodiment.
Referring now to fig. 6, a schematic diagram of a packet forwarding device suitable for use in implementing embodiments of the present application is shown. The message forwarding device in the embodiment of the present application may include, but is not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (Personal DIGITAL ASSISTANT: personal digital assistants), PADs (Portable Application Description: tablet computers), PMPs (Portable MEDIA PLAYER: portable multimedia players), vehicle terminals (e.g., vehicle navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. The message forwarding device shown in fig. 6 is only an example, and should not be construed as limiting the functionality and scope of use of the embodiments of the present application.
As shown in fig. 6, the message forwarding apparatus may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 1002 or a program loaded from a storage device 1003 into a random access Memory (RAM: random Access Memory) 1004. In the RAM1004, various programs and data required for the operation of the message forwarding device are also stored. The processing device 1001, the ROM1002, and the RAM1004 are connected to each other by a bus 1005. An input/output (I/O) interface 1006 is also connected to the bus. In general, a system including an input device 1007 such as a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc., an output device 1008 including a Liquid crystal display (LCD: liquid CRYSTAL DISPLAY), a speaker, a vibrator, etc., a storage device 1003 including a magnetic tape, a hard disk, etc., and a communication device 1009 may be connected to the I/O interface 1006. Communication means 1009 may allow the message forwarding device to communicate wirelessly or by wire with other devices to exchange data. While a message forwarding device having various systems is shown in the figures, it should be understood that not all of the illustrated systems are required to be implemented or provided. More or fewer systems may alternatively be implemented or provided.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through a communication device, or installed from the storage device 1003, or installed from the ROM 1002. The above-described functions defined in the method of the disclosed embodiment of the application are performed when the computer program is executed by the processing device 1001.
The message forwarding device provided by the application can solve the technical problem of how to quickly acquire the vehicle network message data by adopting the message forwarding method in the embodiment. Compared with the prior art, the beneficial effects of the message forwarding device provided by the application are the same as those of the message forwarding method provided by the embodiment, and other technical features of the message forwarding device are the same as those disclosed by the method of the previous embodiment, and are not described in detail herein.
It is to be understood that portions of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof. In the description of the above embodiments, particular features, structures, materials, or characteristics may be combined in any suitable manner in any one or more embodiments or examples.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
The present application provides a computer readable storage medium having computer readable program instructions (i.e., a computer program) stored thereon for performing the message forwarding method of the above embodiments.
The computer readable storage medium provided by the present application may be, for example, a U disk, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, or device, or a combination of any of the foregoing. More specific examples of a computer-readable storage medium may include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access Memory (RAM: random Access Memory), a Read-Only Memory (ROM), an erasable programmable Read-Only Memory (EPROM: erasable Programmable Read Only Memory or flash Memory), an optical fiber, a portable compact disc Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this embodiment, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, or device. Program code embodied on a computer readable storage medium may be transmitted using any appropriate medium, including but not limited to electrical wiring, fiber optic cable, RF (Radio Frequency) and the like, or any suitable combination of the foregoing.
The computer readable storage medium may be included in the message forwarding device or may exist alone without being assembled into the message forwarding device.
The computer readable storage medium carries one or more programs, and when the one or more programs are executed by the message forwarding device, the message forwarding device is enabled to receive a network segment data service instruction sent by the diagnosis device, and according to the network segment data service instruction, a route mirror function of a target network segment of the vehicle is started, and the target network segment message is mirror-forwarded to the diagnosis device through an Ethernet diagnosis port.
Computer program code for carrying out operations of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of remote computers, the remote computer may be connected to the user's computer through any kind of network, including a local area network (LAN: local Area Network) or a wide area network (WAN: wide Area Network), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules involved in the embodiments of the present application may be implemented in software or in hardware. Wherein the name of the module does not constitute a limitation of the unit itself in some cases.
The readable storage medium provided by the application is a computer readable storage medium, and the computer readable storage medium stores computer readable program instructions (namely computer program) for executing the message forwarding method, so that the technical problem of how to quickly acquire the vehicle network message data can be solved. Compared with the prior art, the beneficial effects of the computer readable storage medium provided by the application are the same as those of the message forwarding method provided by the above embodiment, and are not described in detail herein.
An embodiment of the present application provides a computer program product, including a computer program, where the computer program when executed by a processor implements the steps of the method for forwarding a message as described above.
The computer program product provided by the application can solve the technical problem of how to quickly acquire the vehicle network message data. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiment of the present application are the same as those of the message forwarding method provided by the above embodiment, and are not described herein.
The embodiment of the application provides a vehicle, which comprises the message forwarding equipment provided by the embodiment.
The vehicle provided by the application can solve the technical problem of how to quickly acquire the vehicle network message data. Compared with the prior art, the beneficial effects of the vehicle provided by the embodiment of the application are the same as those of the message forwarding method provided by the embodiment, and are not repeated here.
The foregoing description is only of the preferred embodiments of the present application, and is not intended to limit the scope of the application, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein, or any application, directly or indirectly, within the scope of the application.