How to use Manufacturer permission and Supplier permission for verification of a diagnostic request in Vector stack.

  1. Let’s say the request was a valid one and it has passed all the checks of DCM. In that case the typical call sequence would be MI — DCM — SI — DSD — SC — MC.
  2. Let’s assume the request has been rejected by DSD, in this case should the flag be set? Definitely no. Now, if the operation of setting the flags was done in SI, the flag would have been set without considering whether the request has been finally accepted or not. To avoid this, we make use of the SC. In SC we have the information to make that decision. In Vector DCM stack, the Confirmation prototype provides parameter Dcm_ConfirmationStatusType. This tells you if the response to the request was positive or negative and even if that response was sent out successfully or not.
    DCM_RES_POS_OK (0U)
    DCM_RES_POS_NOT_OK (1U)
    DCM_RES_NEG_OK (2U)
    DCM_RES_NEG_NOT_OK (3U)
  1. Enable the ManufacturerNotification and SupplierNotification in DcmGeneral.
  2. Create Runnables in the DCM SWC
  3. Set the triggers for these runnables as ServiceRequestNotification & ServiceRequestManufacturerNotification.
  4. Make sure the ports between DCM Service Component and Application component are connected.
  5. Write your checks in the runnables and you are good to go.

--

--

--

I stare at screens for a living.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Nmap Cheat Sheet

El proyecto (The project)

Introduction of computer

We Need to Stop Letting Carpenters Design Skyscrapers

Make yourself a Go web server with MongoDb. Go on, Go on, Go on…

Single, Double, and Triple Quotes in Python

Solving For The Max Value In An Array

Intro to MetaX Grants Program of Mannheim Ecosystem

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Abhishek Anand

Abhishek Anand

I stare at screens for a living.

More from Medium

It’s Time for SNOW Again— Snow Family in AWS Snowball

An intro to codegen with AWS Smithy — III C++ entity codegen

Microsoft Dynamics 365 Human Resources review

Hey, what’s an IP Address?