The aim of the thesis for the master's degree is to create a hardware and software solution which can be used to develop and test automotive systems. More specifically the device shall be able to communicate through CAN and LIN communication protocols and furthermore through USB protocol. I started my thesis at my previous workplace at Mentor Graphics Magyarország Kft. This sector of the company is specialized in developing AUTOSAR software stack. Basically the AUTOSAR is a standardized automotive software architecture which will be an integral part of the cars of the future because of its widespread acceptance.
According to the standards the embedded code is organized into modules which are further organized into layers. The architecture was designed to be as hardware independent as possible therefore a great number of modules can be tested in PC environment. On the other hand, the hardware specific modules shall be tested too and the hardware independent modules shall be tested from a real time point of view in hardware environment. This is especially important in integration testing. The prerequisite of this kind of tests is a proper bus monitoring device which leaded to the design of a tool like this.
The first chapter is about the automotive communication protocols which are used by the device. First I introduce the features of the CAN bus then the opportunities, advantages and disadvantages offered by the LIN bus.
In the next chapter the designed hardware is introduced by functional groups. The more challenging and complex parts are detailed. I introduce the layer stack which is one of the most important design parameters in high frequency circuit design. After that I present the testing of the power supplies and the final design.
In the third chapter I write about the embedded software. I start with the board bring-up and the setup of the clock frequencies. After that I introduce the used USB library. At the end of the chapter I explain the code which is responsible for the reception and transmission of the CAN and LIN frames.