DoIP in a nutshell

What’s it all about

Ethernet technology has been around in our lives for decades now. It’s fast, reliable, quite simple and completely standardized. Most important, there is so much knowledge and such a big industry that has been using and expanding Ethernet technology and its uses cases that nowadays it is really really mature and has been applied to so many different scenarios that almost anything can be achieved with this technology which is quite new to the automotive industry.

The basic scenario would be connecting an external tool like a tester to a car, but instead of using the earlier automotive-standard-for-everything, AKA CAN bus, using Ethernet instead. This means, just for the beginning, that almost any computer can be connected without the addition of expensive CAN boxes.

But Ethernet is so powerful and flexible, than many scenarios are possible, including the futuristic remote diagnostics and software update over the air, also known as SOTA or FOTA.

How it works

We are talking about Ethernet, because the Automotive Ethernet is the term always used when referring to the new technology applied to the automotive industry. But it’s also the whole TCP/IP stack ported to the cars.

We cannot continue here without introducing AUTOSAR, the automotive consortium for the standardization of an open software architecture for the vehicles.

AUTOSAR is just the one of the best things to happen to the industry ever. AUTOSAR software architecture is standard, open, efficient and very well documented. It promotes the collaboration between the parties in the automotive industry, which helps real standardization and enriches the ecosystem.

So, when AUTOSAR consortium decided to add Ethernet and the TCP/IP stack to the software architecture, motivated by the develpment of the new 100BaseT1 technology in the physical layer which allowed the usage of Ethernet in cars, this was a huge step and the AUTOSAR stack grew significantly. Let’s take a look at the AUTOSAR TCP/IP stack with DoIP:

The big box on the left is the TCP/IP stack coming from the telecom world. DoIP compoment is the box with the red stripes around. And one of the most important players and new software component added is in the middle between both: SoAd. The Socket Adaptor software component. This is a big one. It’s functionality can be summarized as taking the UDP messages or the TCP streams and putting this information into AUTOSAR PDUs. In AUTOSAR, we know about PDUs (note: do not confuse TCP/IP PDUs with AUTOSAR PDUs!!!). In AUTOSAR, we want to be as abstracted as possible from the TCP/IP world. And this is exactly what SoAd does.

Below the TCP/IP stack, there is the Ethernet Interface (EthIf), which is the abstraction layer for the Ethernet Driver MCAL specifics.

Stay tuned for next posts coming soon for DoIP protocol specifics!

Download link for the DoIP python precompiled library for testing purposes will be added soon!

Ask for the DoIP automotive embedded software implementation in C in the email below or in the contact form

guru@autoethernet.com

Your Automotive Ethernet partner

8 comments

    comments user

    John Says :

    October 24, 2018 at 12:10 pm

    Great explanation! Thanks.
    Willing to read more in this amazing blog!

    comments user

    XpEc Says :

    October 24, 2018 at 12:15 pm

    Nice article.
    Anxious for the download area to be available

    comments user

    fred Says :

    October 24, 2018 at 12:18 pm

    Could you please provide some more detail on DoIP messaging?
    Thanks in advance!

    comments user

    Aastha Says :

    February 19, 2019 at 12:50 pm

    Hey i have gone through ISO 13400-2 standard for DOIP, and now i want to realise how it works?
    I am looking for a supplier who could provide an edge node for prototyping purpose so that i can do diagnostics on the ECU i have (non-doip)

    comments user

    Autoethernet team Says :

    February 25, 2019 at 4:34 pm

    Hello Aastha

    Any specific question?

    You can also contact us at guru@autoethernet.com

    Best regards!

    comments user

    Alex Says :

    June 20, 2019 at 2:27 am

    Willing to read more in this amazing blog!

    comments user

    Bhavik Says :

    November 4, 2019 at 2:22 pm

    Can you please suggest some available open source DOIP stacks

    comments user

    Ankit Says :

    February 25, 2020 at 4:54 pm

    Do you have any python implementation for Doip client(Test Equipment)

Leave a comment

Your email address will not be published. Required fields are marked *

Automotive Ethernet