未解决
知从玄武ETHERNET刷写功能


 

1      概述

玄武上位机软件用来将电子控制器中的应用程序和数据,从PC端下载到电子控制器上。支持UDSonCAN、UDSonEth、UDSonK-Line、UDSonLIN协议。提供客户协议定制集成,广泛应用在电子控制器产品开发阶段,测试阶段,售后服务阶段。

知从玄武程序刷新与诊断测试工具可应用于OEM和Tier1多种应用场景下。用户可以方便的在实验室,试验车辆以及实车上方便的进行程序刷写工作。

玄武上位机软件目前应用于各类电子控制器的程序刷写:

Ø   车身控制器 (BCM)

Ø   空调控制器

Ø   DC/DC控制器

Ø   电子助力转向控制器

Ø  发动机控制器 (EMS)

Ø  变速箱控制器 (TCM)

Ø  电池管理系统 (BMS)

Ø  整车控制器 (VCU)

Ø  电机控制器 (MCU)

Ø  电动助力转向系统 (EPS)

Ø  防抱死制动系统 (ABS)

Ø  电子稳定性控制程序 (ESP)

Ø  主动防撞系统 (ACC)

Ø  牵引力控制系统 (TCS)

Ø  ADAS控制器


 

2      以太网刷写介绍 

在智能网联汽车发展的时代潮流中,随着处理器运算能力与硬件性能的快速提升,众多创新在汽车领域得以迅速落地。汽车电子控制器在整车中的占比持续攀升,与之相应的是,连接 ECU 的网络带宽需求也大幅增加,这一需求已远远超过 CAN 等传统车载网络的容量上限。此外,随着车辆网联化、智能化进程的推进,云计算与大数据技术的应用,以及高级驾驶辅助系统(ADAS)的广泛普及,构建全新的电子网络总线平台已成为新一代汽车发展的必然选择。

传统的车辆诊断通常依赖于专用的诊断工具和设备,限制了远程诊断和跨设备的兼容性。随着互联网协议(IP)的普及,DOIP作为一种基于IP的诊断技术应运而生,它支持通过以太网和Wi-Fi等标准网络进行通信,能够更快速、更灵活地进行远程诊断。

 

 

 

2.1     物理层 Physical Layer

100Base-Tx,OBD接口如下:

image.png

2.2     TCP/UDP层 TCP/UDP Layer

TCP 是一种可靠的传输层协议,它确保数据包正确无误地从源传输到目的地。在 DoIP 中,TCP 用于需要高可靠性的诊断通信,如 ECU 编程。TCP 通过三次握手过程建立连接,确保两端的通信是同步的,并且通过序列号和确认应答机制保证数据的顺序和完整性。

Ø  车内所有 DoIP 实体均应实现 TCP;

Ø  TCP 使用一对端口号来标识连接,TCP 连接时目的端口应当是 TCP_DATA;

Ø  DoIP 实体应在创建 socket 之后监听 TCP_DATA,用于与试图连接 DoIP 实体的外部测试设备建立通信;

Ø  外部测试设备应支持多个 TCP_DATA socket,本地端口将在创建 socket 时自动选择,远程端口应为 TCP_DATA。


UDP 是一种无连接的协议,它允许数据包在没有事先建立连接的情况下发送。这种方法减少了开销,使得通信更快,但也牺牲了可靠性。在 DoIP 中,UDP 用于那些不需要确认的服务,如车辆发现或基本诊断请求。

车内所有 DoIP 实体均应实现 UDP当需要外部设备对车辆 IP 节点进行广播或多播消息请求时,由于 TCP 的传输机制限制无法实现,因此须使用 UDP。

image.png

 

 

2.3     Doip 协议 Doip Protocol:

Doip总共有三类报文:节点管理类、诊断类和节点状态类。


负载类型

取值

节点管理类

0x0000 - 0x0008

诊断类

0x8001 - 0x8003

节点状态类

0x4001 - 0x4004

预留

……

image.png

Doip在 OSI 模型中位于传输层,故 Doip报文发送前要封装 ETH 首部、IP 首部及 TCP/UDP 首部,Doip数据作为 SDU 层层向下传递,直至构成完整的以太网帧,通过物理层的介质发送出去。封装格式如下所示:


image.png

 

3      玄武Doip刷写介绍 

3.1     硬件连接 HardWare Connect

将RJ45端口连到电脑端,另一端与ECU相连,另一端需要根据ECU当前端口进行适配,常见端口有RJ45或者OBD。


image.png

3.2     刷写配置 Flash Config

根据ECU当前的IP地址,在网络适配器中将电脑与ECU设置处于同一网段下。


image.png

玄武打开以后,根据需要设置ECU的配置信息。

还可以对维持上位机和ECU之间的TCP连接进行心跳设置。

image.png

3.3     连接及刷写 Connect and Flash

点击连接之后,玄武会自动发送车辆识别,路由激活等指令,成功和ECU建立连接之后,便可开始刷写。

image.png

期间可通过WireShark工具进行抓包观察原始以太网报文。

image.png

4      证书

image.png

玄武软件著作权登记证书
image.png


阅读全文 收起
发布于 2025-06-04 14:20:01
写回答
好问题0
好问题0
已收藏
收藏问题
未解决
ZC.XUANWU ETHERNET FLASH


 

1     Overview

ZC.XuanWu upper computer software is used to download application programs and data from the PC to the electronic controller. It supports UDS on CAN, UDS on Eth, UDS on K-Line, and UDS on LIN protocols. It offers customized integration of customer-specific protocols and is widely used in the development, testing, and after-sales service stages of electronic controller products.

ZC.XuanWu program refresh and diagnostic testing tools can be applied in various application scenarios for OEMs and Tier 1 suppliers. Users can conveniently perform program flashing work in laboratories, test vehicles, and actual vehicles.

ZC.XuanWu upper computer software is currently used for program flashing of various electronic controllers:

Ø   Body Control Module (BCM)

Ø   Air Conditioning Controller

Ø   DC/DC Converter

Ø   Electric Power Steering Controller

Ø  Engine Management System (EMS)

Ø  Transmission Control Module (TCM)

Ø  Battery Management System (BMS)

Ø  Vehicle Control Unit (VCU)

Ø  Motor Control Unit (MCU)

Ø  Electric Power Steering System (EPS)

Ø  Anti-lock Braking System (ABS)

Ø  Electronic Stability Program (ESP)

Ø  Active Collision Avoidance System (ACC)

Ø  Traction Control System (TCS)

Ø  Advanced Driver Assistance Systems Controller


 

2       Eth Flash Introduction

In the trend of the intelligent connected vehicle era, with the rapid development of processor computing power and hardware, many innovations have been rapidly promoted in the automotive environment. The proportion of automotive electronic products in the entire vehicle is also increasing day by day, and the network bandwidth demand for connecting ECUs has correspondingly increased significantly. This demand will far exceed the capacity limit of traditional in-vehicle networks such as CAN. In addition, with the advancement of vehicle networking and intelligence, the application of cloud and big data, and the popularization of advanced driver assistance systems (ADAS), building a new electronic network bus platform has become an inevitable task for the new generation of vehicles.

Traditional vehicle diagnostics typically rely on dedicated diagnostic tools and equipment, which limits remote diagnostics and cross-device compatibility.With the popularization of Internet Protocol (IP), DOIP (Diagnostic over IP), an IP-based diagnostic technology, has emerged. It supports communication through standard networks such as Ethernet and Wi-Fi, enabling faster and more flexible remote diagnostics.

 

 

 

2.1      Physical Layer

100Base-Tx,OBD接口如下:

image.png

2.2      TCP/UDP Layer

TCP is a reliable transport - layer protocol that ensures data packets are transmitted from the source to the destination accurately and error - free. In DoIP, TCP is used for diagnostic communications that require high reliability, such as ECU programming. TCP establishes a connection through a three - way handshake process to ensure that the communication at both ends is synchronized, and guarantees the order and integrity of data through sequence numbers and acknowledgment mechanisms.

Ø  All DoIP entities in the vehicle shall implement TCP.

Ø  TCP uses a pair of port numbers to identify connections. The destination port for a TCP connection shall be TCP_DATA.

Ø DoIP entity shall listen on TCP_DATA after creating a socket, which is used to establish communication with external test equipment attempting to connect to the DoIP entity.

Ø  External test equipment shall support multiple TCP_DATA sockets. The local port will be automatically selected when creating a socket, and the remote port shall be TCP_DATA.

Unlike TCP, UDP is a connectionless protocol that allows data packets to be sent without establishing a prior connection. This approach reduces overhead, enabling faster communication, but sacrifices reliability. In DoIP, UDP is used for services that do not require acknowledgment, such as vehicle discovery or basic diagnostic requests.

All DoIP entities in the vehicle shall implement UDP.When external devices need to send broadcast or multicast message requests to vehicle IP nodes, since it cannot be achieved due to the limitations of TCP's transmission mechanism, UDP must be used.

image.png

 

 

2.3     Doip 协议 Doip Protocol:

There are three types of messages in Doip: node management, diagnostic, and node status.

负载类型

取值

节点管理类

0x0000 - 0x0008

诊断类

0x8001 - 0x8003

节点状态类

0x4001 - 0x4004

预留

……

image.png

Doip is located at the transport layer in the OSI model, so before sending Doip packets, ETH headers, IP headers, and TCP/UDP headers need to be encapsulated. Doip data is passed down as SDUs layer by layer until a complete Ethernet frame is formed and sent out through the physical layer medium. The encapsulation format is as follows:

image.png

 

3       Xuanwu Doip flash introduction

3.1      HardWare Connect

Connect the RJ45 port to the computer end and the other end to the ECU. The other end needs to be adapted according to the current port of the ECU. Common ports include RJ45 or OBD.

image.png

3.2      Flash Config

Set the computer and ECU to be in the same network segment based on the current IP address of the ECU.

image.png

After opening ZC.XuanWu, set the ECU configuration information as needed.

It is also possible to set the heartbeat to maintain the TCP connection between the upper computer and ECU.

image.png

3.3    Connect and Flash

After clicking on the connection, Xuanwu will automatically send commands such as vehicle identification and route activation. Once a successful connection is established with the ECU, flashing can begin.

image.png

During this period, the WireShark tool can be used to capture and observe the original Ethernet packets.

image.png

4      CERTIFICATE

image.png

XUANWU SOFTWARE COPYRIGHT REGISTRATION CERTIFICATEimage.png



阅读全文 收起
发布于 2025-06-04 14:15:30
写回答
好问题0
好问题0
已收藏
收藏问题
未解决
知从科技的工具软件产品都包括什么?

工具软件具有哪些功能?

阅读全文 收起
发布于 2023-07-07 09:41:54
写回答
好问题2
好问题2
已收藏
收藏问题