CN116567020A - System for realizing remote XCP calibration - Google Patents

System for realizing remote XCP calibration Download PDF

Info

Publication number
CN116567020A
CN116567020A CN202310390481.0A CN202310390481A CN116567020A CN 116567020 A CN116567020 A CN 116567020A CN 202310390481 A CN202310390481 A CN 202310390481A CN 116567020 A CN116567020 A CN 116567020A
Authority
CN
China
Prior art keywords
xcp
calibration
server
ethernet
data packet
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310390481.0A
Other languages
Chinese (zh)
Inventor
凌成烨
袁春海
李辉
郭强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chuangqu Shanghai New Energy Technology Co ltd
Original Assignee
Chuangqu Shanghai New Energy Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chuangqu Shanghai New Energy Technology Co ltd filed Critical Chuangqu Shanghai New Energy Technology Co ltd
Priority to CN202310390481.0A priority Critical patent/CN116567020A/en
Publication of CN116567020A publication Critical patent/CN116567020A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer Security & Cryptography (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a system for realizing remote XCP calibration, which comprises calibration software, a server, a wireless access point, a CAN-Ethernet XCP gateway and an ECU, wherein the ECU and the CAN-Ethernet XCP gateway adopt a CAN connection mode, the CAN-Ethernet XCP gateway is accessed into the server as a TCP/UDP client after being accessed into the wireless access point through a Wi-Fi mode, the calibration software is set as the TCP/UDP connection mode, the IP address and the port of the server are set as the IP and monitoring ports of the server on a public network, and remote measurement and calibration are carried out through the calibration software. According to the invention, through the XCP remote calibration device, the main current XCP measurement calibration mode based on CAN is used, and under the condition of not modifying software and hardware of the ECU, the measurement and calibration of the near-field effect are realized by using universal calibration software, so that the problem time of tracking and processing is greatly simplified, and the calibration efficiency is improved.

Description

System for realizing remote XCP calibration
Technical Field
The invention relates to the technical field of XCP remote calibration, in particular to a system for realizing remote XCP calibration.
Background
In order to meet the increasing demands for the functionality of automobiles, the vehicle-mounted Electronic Control Units (ECUs) are more and more complex, and meanwhile, the innovative research and development period of ECU products is shorter and shorter, so that the requirements for ECU diagnosis and calibration are further improved. Leading to more and more calibration and verification work, and more complex, in order to solve this problem, some companies have proposed the following solutions: at present, the Etas ES820 adopts an embedded computer with a Windows operating system to measure ECU and a vehicle bus. The computer is accessed to a network through a mobile hot spot, and a user can access to a remote desktop through a Team Viewer and use calibration software Inca to carry out remote measurement and calibration. The disadvantage of this solution is that the equipment is expensive and bulky.
The utility model discloses a fault diagnosis system for car that publication number is CN103019232A discloses a through car CAN bus connection CAN-USB conversion card, USB-CAN conversion card connects smart machine, and the smart machine reads the fault code, and the smart machine CAN send fault code information to remote fault diagnosis server. The disadvantage of this solution is that the limited functionality only allows the reading of remote fault codes and does not allow complex measurement and calibration functions.
The automobile remote monitoring, diagnosing and calibrating system with publication number CN101986223A discloses an automobile remote monitoring, diagnosing and calibrating system comprising an onboard part and an indoor part. According to the scheme, the CAN bus signals are converted into the GPRS signals through the vehicle-mounted signal conversion module, the indoor signal conversion module converts the GPRS signals into the CAN bus signals from the GPRS network signals, the indoor CAN card simulates the functions of a vehicle body controller, and the LABVIEW platform is used for displaying and storing the signals of the CAN bus. The scheme uses software developed secondarily, so that the current mainstream calibration software cannot be supported, and complex measurement and calibration functions cannot be realized.
Disclosure of Invention
The invention aims to provide a system for realizing remote XCP calibration, which is characterized in that a main stream XCP measurement calibration mode based on CAN is realized through an X CP remote calibration device, and under the condition that software and hardware of an ECU are not modified, universal calibration software is used for realizing measurement and calibration of near-site effects, so that the problem time of tracking and processing is greatly simplified, and the calibration efficiency is improved.
In order to achieve the above purpose, the invention adopts the following technical scheme: the system for realizing remote XCP calibration comprises calibration software, a server, a wireless access point, a CAN-Ethernet X CP gateway and an ECU, wherein the ECU and the CAN-Ethernet X CP gateway adopt a CAN connection mode, the CAN-Ethernet XCP gateway is accessed into the server as a TCP/UDP client after being accessed into the wireless access point in a Wi-Fi mode, the calibration software is set as the TCP/UDP connection mode, the IP address and the port of the server are set as the IP and monitoring port of the server on a public network, and remote measurement and calibration are carried out through the calibration software.
As further optimization, the CAN-Ethernet XCP gateway comprises a Wi-Fi module, a singlechip and a CAN transceiver, wherein the Wi-Fi module is set to be in a Station mode, is accessed to a wireless access point, and the singlechip comprises a CAN controller and is externally connected with the CAN transceiver for carrying out CAN message transceiving with the ECU.
As a further optimization, the CAN-ethernet XCP gateway processes ethernet messages from the server,
s1) receiving an XCP message based on the Ethernet of a server;
s2) extracting message length and message counter information from the message;
s3) setting the CAN ID as the ECU receiving CAN ID, setting the CAN data length as the data length of the header information and setting the CAN data content as an XCP data packet;
s4) sends this packet to the ECU via CAN.
As a further optimization, the CAN-ethernet XCP gateway processes CAN messages from the ECU as follows,
s1) receiving an ECU CAN message;
s2) judging whether the CAN ID is a CTO data packet or a DTO data packet;
s3) if the data packet is a CTO data packet, adding a message length and a CTO message counter, wherein the counter is from calibration software;
s4) if the data packet is a DTO data packet, adding a message length and a DTO message counter, wherein each time the counter sends one data packet, 1 is added, and counting is started from 0;
s5) merging the XCP frame header and the XCP data packet from the CAN to form a data packet of the Ethernet, and sending the data packet to the server.
As a further optimization, by analyzing the XCP message format, one XCP frame is composed of an XCP frame header, an XCP data packet and an XCP frame trailer; the XCP message based on CAN has no frame head and frame tail, only contains XCP data packet; the XCP message based on TCP/UDP comprises an XCP frame header and an XCP data packet; the LEN of the frame header is the length of the message, the CTR is a counter for detecting the packet loss, the calibration software sends a packet, the value of the counter is increased by 1, and the ecu has the same method.
As further optimization, a plurality of TCP/UDP proxy service threads are run on the server, each thread monitors different ports, and a CAN-Ethernet XCP gateway connected to the same port and calibration software form a virtual straight-through network. Different connection pairs are identified through the ports of the server.
As a further optimization, the calibration software is Etas Inca or Vector Canape.
As a further optimization, the server forwards the data from the XCP remote calibration device to the calibration software when receiving the data; and the server forwards the data from the calibration software to the corresponding XCP remote calibration device.
Compared with the prior art, the invention has the beneficial effects that:
1. the invention changes the current mainstream XCP calibration protocol based on CAN into the calibration protocol based on Ethernet through CAN-Ethernet XCP gateway; the network connection of the vehicle-mounted part and the indoor part is realized through the message forwarding of the server, and the function of observing and calibrating variables consistent with the field in a CAN mode CAN be realized through calibration software (such as the Inca of Etas or the CANape of a Vector) indoors;
2. according to the invention, a main current CAN-based XCP measurement calibration mode is realized through an XCP remote calibration device, and universal calibration software (such as Etas Inca or Vector Canape) is used to realize measurement and calibration of near field effect under the condition that software and hardware of an ECU are not modified, so that the tracking and processing problem time is greatly simplified, and the calibration efficiency is improved.
Drawings
FIG. 1 is a diagram of a remotely calibrated application scenario of the present invention;
FIG. 2 is a flow chart of the remote calibration implementation of the present invention.
Fig. 3 is a hardware block diagram of the CAN-ethernet XCP gateway of the present invention.
Fig. 4 is a frame format of XCP of the present invention.
Fig. 5 is a flow chart of processing an ethernet message from a server by a CAN-ethernet XCP gateway of the present invention.
Fig. 6 is a flow chart of CAN message processing from ECU by the CAN-ethernet XCP gateway of the present invention.
Fig. 7 is a network topology diagram of the system of the present invention.
Fig. 8 is a timing diagram of the interaction of XCP gateway, scaling software and services of the present invention.
Detailed Description
The following are specific embodiments of the present invention, and the technical solutions of the present invention are further described with reference to the accompanying drawings, but the present invention is not limited to these embodiments.
As shown in fig. 1 to 8, the XCP protocol itself supports various transport layers, such as CAN, LIN, ethernet, etc., which are common. The main ECU communication flow of the automobile is a CAN network, generally supports an XCP protocol based on a CAN transmission layer, and a technical engineer CAN access a USB port of a computer through a USB line by adopting PCAN, kvaser, value CAN or Vector CAN, and measures and calibrates by using Etas Inca or Vector Canape. The CAN bus CAN not realize remote calibration, if the CAN bus is converted into an Ethernet bus and is accessed to the Internet, measurement and calibration CAN be carried out at any place which CAN be accessed to the Internet, so that the calibration efficiency is improved, and the development period is shortened.
As shown in fig. 1, the ECU of the automobile converts the XCP protocol based on the CAN bus into the XCP protocol based on the ethernet through a remote XCP calibration device, and accesses the internet through a cellular network. Because in general, nodes accessing the internet through a cellular network or computers in offices are different intranets, they cannot directly communicate, and thus, a TCP/UDP proxy service program connected to a public network server is required to forward data. Thus, the calibration engineer at the other end can set connection in an Ethernet mode through calibration software (such as Etas Inca or Vector Canape), set XCP connection IP and port as the IP and port of the server to carry out remote measurement and calibration.
As shown in fig. 2, the system is composed of calibration software, a server, an AP (wireless access point), a CAN-ethernet XCP gateway (hereinafter referred to as gateway) and an ECU, and compared with the current mainstream connection mode, the system has more public network servers, APs and gateways (the gateway CAN also directly support the cellular network to access the internet, so that the AP is not needed). The ECU and the gateway adopt a CAN connection mode, and the gateway is accessed to the server as a TCP/UDP client after being accessed to the AP through a Wi-Fi mode. The calibration software is set as a TCP/UDP connection mode, and sets the IP address and port of the server as the IP and monitoring port of the server on the public network. The software and hardware of the ECU do not need to be changed, the calibration software only changes the connection mode, the ECU variable observation and calibration which has the effect similar to that of the CAN connection calibration mode CAN be realized and directly used on site, and the computer running the calibration software (XCP Master) only needs to be connected with the capability of the Internet.
As shown in fig. 3, the CAN-ethernet gateway is composed of a Wi-Fi module, a single chip microcomputer and a CAN transceiver. The Wi-Fi module is set to be in a Station mode to be accessed to an AP capable of being accessed to the Internet in the process of remote calibration, so that the Wi-Fi module has the capability of accessing the Internet; the singlechip comprises a CAN controller and is externally connected with a CAN transceiver, and CAN transmit and receive CAN messages with the ECU.
By analyzing the message format of XCP, an XCP frame is composed of an XCP frame header, an XCP data packet and an XCP frame tail; the XCP message based on CAN has no frame head and frame tail, and only contains XCP data packet. The XCP packet based on TCP/UDP includes an XCP frame header and an XCP packet, the LEN of the frame header is the length of the packet, and CTR is a counter for detecting the packet loss, as shown in fig. 4. For each packet sent by the calibration software (XCP Master), the counter will be incremented by one, as will the ECU.
As shown in fig. 5, the gateway processes the ethernet message from the server as follows, and extracts the message length and the message counter information from the message; setting CAN ID as ECU receiving CAN ID, setting CAN data length as the data length of header information, and setting CAN data content as XCP data packet; this packet is sent to the ECU via CAN.
As shown in fig. 6, the CAN-ethernet gateway processes the CAN message from the ECU as follows, and determines whether the CAN ID is a CTO (Command Transfer Object) data packet or a DTO (Data Transfer Object) data packet; if the data packet is a CTO data packet, adding a message length and a CTO message counter, wherein the counter is from calibration software (XCP Master); if the data packet is the DTO data packet, adding a message length and a DTO message counter; the counter counts from 0 for each packet sent, incremented by 1. The gateway combines the XCP frame header and the XCP data packet from the CAN to form a data packet of the Ethernet, and sends the data packet to the server.
The XCP remote calibration device and the computer are generally in different internal networks, and cannot directly communicate with each other, so that a public network server is required to serve as data forwarding to solve the problem. As shown in fig. 7, a plurality of TCP/UDP proxy service threads are running on a server, each thread listens to a different port, and a gateway and an XCP Master connected to the same port form a virtual pass-through network. Different connection pairs are identified through ports of the server, data of different ports do not affect each other, and data only interact on the same port.
As shown in fig. 8, any data from the XCP remote calibration device by the public network server is forwarded to the calibration software as it is; when any data from the calibration software is received, the data is forwarded to the corresponding XCP remote calibration device as is.
The specific embodiments described herein are offered by way of example only to illustrate the spirit of the invention. Those skilled in the art may make various modifications or additions to the described embodiments or substitutions thereof without departing from the spirit of the invention or exceeding the scope of the invention as defined in the accompanying claims.

Claims (8)

1. The system for realizing remote XCP calibration is characterized by comprising calibration software, a server, a wireless access point, a CAN-Ethernet XCP gateway and an ECU, wherein the ECU and the CAN-Ethernet XCP gateway adopt a CAN connection mode, the CAN-Ethernet XCP gateway is accessed into the server as a TCP/UDP client after being accessed into the wireless access point in a Wi-Fi mode, the calibration software is set as the TCP/UDP connection mode, the IP address and the port of the server are set as the IP and monitoring ports of the server on a public network, and remote measurement and calibration are carried out through the calibration software.
2. The system for implementing remote XCP calibration as recited in claim 1, wherein the CAN-Ethernet XCP gateway comprises a Wi-Fi module, a singlechip and a CAN transceiver, the Wi-Fi module is set to be in a Station mode, the singlechip is connected to a wireless access point, the singlechip comprises a CAN controller, and the singlechip is externally connected with the CAN transceiver for carrying out CAN message transceiving with the ECU.
3. The system for implementing remote XCP calibration according to claim 2, wherein the CAN-ethernet XCP gateway processes ethernet messages from the server,
s1) receiving an XCP message based on the Ethernet of a server;
s2) extracting message length and message counter information from the message;
s3) setting the CAN ID as the ECU receiving CAN ID, setting the CAN data length as the data length of the header information and setting the CAN data content as an XCP data packet;
s4) sends this packet to the ECU via CAN.
4. A system for implementing remote XCP calibration as defined in claim 3, wherein the CAN-Ethernet XCP gateway processes CAN messages from the ECU,
s1) receiving an ECU CAN message;
s2) judging whether the CAN ID is a CTO data packet or a DTO data packet;
s3) if the data packet is a CTO data packet, adding a message length and a CTO message counter, wherein the counter is from calibration software;
s4) if the data packet is a DTO data packet, adding a message length and a DTO message counter, wherein each time the counter sends one data packet, 1 is added, and counting is started from 0;
s5) merging the XCP frame header and the XCP data packet from the CAN to form a data packet of the Ethernet, and sending the data packet to the server.
5. A system for implementing remote XCP calibration according to any of claims 2 to 4, wherein the XCP message format is analyzed, an XCP frame consisting of an XCP frame header, an XCP data packet and an XCP frame trailer; the XCP message based on CAN has no frame head and frame tail, only contains XCP data packet; the XCP message based on TCP/UDP comprises an XCP frame header and an XCP data packet; the LEN of the frame header is the length of the message, the CTR is a counter for detecting the packet loss, the calibration software sends a packet, the value of the counter is increased by 1, and the ecu has the same method.
6. A system for implementing remote XCP scaling as claimed in claim 1, wherein a plurality of TCP/UDP proxy service threads are running on a server, each thread listens to a different port, and a CAN-ethernet XCP gateway and scaling software connected to the same port form a virtual pass-through network. Different connection pairs are identified through the ports of the server.
7. A system for implementing remote XCP calibration according to claim 1, wherein the calibration software is Etas Inca or Vector Canape.
8. A system for effecting remote XCP calibration according to claim 1, wherein the server, upon receiving data from the XCP remote calibration means, forwards it to the calibration software; and the server forwards the data from the calibration software to the corresponding XCP remote calibration device.
CN202310390481.0A 2023-04-12 2023-04-12 System for realizing remote XCP calibration Pending CN116567020A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310390481.0A CN116567020A (en) 2023-04-12 2023-04-12 System for realizing remote XCP calibration

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310390481.0A CN116567020A (en) 2023-04-12 2023-04-12 System for realizing remote XCP calibration

Publications (1)

Publication Number Publication Date
CN116567020A true CN116567020A (en) 2023-08-08

Family

ID=87490722

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310390481.0A Pending CN116567020A (en) 2023-04-12 2023-04-12 System for realizing remote XCP calibration

Country Status (1)

Country Link
CN (1) CN116567020A (en)

Similar Documents

Publication Publication Date Title
KR102320043B1 (en) Failure diagnosis apparatus and method for in-vehicle control unit
CN108303964B (en) Network connector and vehicle diagnosis method
CN113204226B (en) Vehicle diagnosis system and method
KR101491260B1 (en) ECU Multiple Diagnostic System and Method on Vehicle Network
WO2018196655A1 (en) Public network communication method for on-board electronic processing unit system
CN105025058A (en) Vehicle remote diagnosis method, vehicle remote monitoring method and vehicle-mounted terminal
US9026711B2 (en) Motor vehicle control system with simplified information exchange
CN101360036A (en) CAN bus gateway controller and data transmission method between CAN buses
CN110908363A (en) Data acquisition method and device for vehicle-mounted terminal
JP2015089092A (en) Method of packaging packet, method of unpackaging packet, and apparatuses using the same
CN104993979A (en) Network connection monitoring method, terminal equipment and communication system
CN114839959A (en) Vehicle remote diagnosis method and system based on SOA (service oriented architecture) service
CN106856445B (en) Motor train unit braking system and working method thereof
CN109660436B (en) Dual-CAN channel data processing method, gateway equipment and system
CN115051975A (en) ECU remote upgrading method based on vehicle-mounted Ethernet
CN116567020A (en) System for realizing remote XCP calibration
CA3145978A1 (en) Method and data network for communicating data content, in particular in an elevator system
CN106506306A (en) A kind of method and apparatus of data-message transmission
CN216391061U (en) Gigabit vehicle-mounted Ethernet testing device and system
Cena et al. Seamless integration of CAN in intranets
CN114338556A (en) Message forwarding method between CAN network and vehicle-mounted Ethernet and gateway system
Elhadeedy et al. 60 GHz Wi-Fi as a Tractor-Trailer Wireless Harness
Elhadeedy et al. ECU over named data networking (ECUoNDN): Data management and integration with heterogenous automotive networks
CN115866079A (en) Device for realizing CAN-Ethernet XCP gateway
CN116709253B (en) Vehicle-mounted gateway and vehicle

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination