Use in Praxis V1.0 2016-11-23
Agenda 1. Ethernet the Newcomer in Automotive 2. Why an Automotive Ethernet Option for CANoe? 3. Brief Look to CANoe 4. First Hand Usecase from Field 2/20
Network Topology CAN (FD) FlexRay Ethernet S R S R S R S C C R R S C C Bus Broadcast Shared bandwidth Active star Broadcast Shared bandwidth Switched network (today) Scalable bandwidth Full-duplex Unicast & multicast 3/20
Basis for Variety of Applications Application Presentation SOME/IP SCC DoIP Session AVB / TSN Transport UDP TCP Network IPv4 IPv6 Data Link Ethernet Physical 100BASE-T1 100BASE-TX 1000BASE-T1 1000BASE-T 1000BASE-RH BPL 4/20
Service-Oriented Communication New communication paradigm From signals to services From fix layout payload to serialized payload > Serialization From static to dynamic configuration > Service Discovery From broadcast to unicast/multicast From cyclic to on-demand C Call method SD Offer service Get return values S Advantages Higher flexibility Higher re-use Reduce bandwidth usage Save processing resources at receiver SD Subscribe to event group SD Offer service Get notifications 5/20
Agenda 1. Ethernet the Newcomer in Automotive 2. Why an Automotive Ethernet Option for CANoe? 3. Brief Look to CANoe 4. First Hand Usecase from Field 6/20
Automotive Ethernet vs IT Ethernet Automotive Ethernet specifics Specific physical layer Multibus environment > High accuracy measurement and logging Simulation/stimulation > Component test/integration > Real-time requirements > HiLs Fault injection Signal based communication > No XML file exchange FIBEX and ARXML databases format PDU multiplexing concept Provide integrated APIs at key layers Application Transport SOME/IP, AUTOSAR Eth, AVB, OEM Interaction Layers UDP/TCP sockets Data Link Ethernet Packet 7/20
Agenda 1. Ethernet the Newcomer in Automotive 2. Why an Automotive Ethernet Option for CANoe? 3. Brief Look to CANoe 4. First Hand Usecase from Field 8/20
Signal - Analysis 9/20
Signal - Simulation 10/20
A/V Streaming - Analysis Media Stream Control for Panels Customizable layout Stream ID configurable Embedded visualization during measurement 11/20
A/V Streaming - Simulation CAPL - Talker Generation of media samples Media File or Media File or (user code) Media Reader (AVB IL) CAPL - Listener Processing of media samples (user code) Media Writer Buffer (samples) Buffer (samples) Protocol Unit (AVB IL) Protocol Unit (AVB IL) Ethernet (AVB IL) 12/20
Agenda 1. Ethernet the Newcomer in Automotive 2. Why an Automotive Ethernet Option for CANoe? 3. Brief Look to CANoe 4. First Hand Usecase from Field 13/20
Original HiL Setup Wiring C S X = 48 0 0 N Send per TCP 100BASE-T1 Problem: HiL is motionless. Coordinates never change! SOME/IP-SD per UDP SOME/IP Data per UDP or TCP 14/20
HiL Setup Wiring for Coordinates Manipulation Solution: insert a manipulating gateway between C and S C Eth 1 Eth 2 CANoe S X = 48 41 27 N Manipulation X = 48 0 0 N Send per TCP 100BASE-T1 SOME/IP-SD per UDP SOME/IP Data per UDP or TCP Job done? 15/20
What Can Go Wrong when Manipulating a TCP Stream One example: try to insert a byte in a TCP stream 1 byte C CANoe S Insert 1 byte ACK 4 bytes ACK Error! Send 3 bytes Our solution CANoe intercepts TCP connection between C and S and splits it in 2 separate connections respectively C to CANoe and CANoe to S 16/20
CANoe CAPL Gateway Functionalities Data Link Layer Inspect all incoming packets and decide whether to forward or intercept and modify Change source and destination MAC and IP addresses of TCP segments re-routed from/to gateway TCP/IP stack Forge ARP response to spoof CAPL gateway Transport Layer CAPL gateway opens two TCP connections with C on one side and with S on the other side Accept and manage incoming TCP connection from C (but intended to S) Initiate TCP connection with S replacing the one intercepted from C Application Layer Parse SOME/IP messages from TCP data stream of S and decide whether to forward or intercept and modify Create a SOME/IP message object to modify the targeted GPS signal string Reserialize and forward the modified SOME/IP message to C 17/20
Sequence Diagram IP: 192.168.1.1 Mask: 255.255.255.0 C IP: 192.168.3.4 Mask: 255.255.255.0 CAPL Gateway S C IP: 192.168.5.6 Mask: 255.255.255.0 S IP: 192.168.1.2 Mask: 255.255.255.0 Inspect -> ignore & forward Service Discovery TCP #1 SYN to S TCP #1 SYN + ACK from S Intercept #1 TCP #1 ACK to S TCP #2 SYN from C Intercept #2 TCP #2 SYN + ACK to C TCP #2 ACK from C Inspect -> ignore & forward SOME/IP X = 48 0 0 N X = 48 41 27 N 18/20
Conclusion CANoe.Ethernet the right toolbox for your Automotive Ethernet projects Thank you for your attention! 19/20
For more information about Vector and our products please visit www.vector.com Author: Tertrais, Steven Vector Germany 2016. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V1.0 2016-11-23