Exemple #1
0
        void SendReadVariantCodingRequest()
        {
            mRequestReadVariantCoding = GetRequest(mReadVariantCodingDataRequestString, mECUName, mBusName);

            if (mRequestReadVariantCoding != null)
            {
                mRequestReadVariantCoding.OnResponse += new Diagnostic._IDiagnosticRequestEvents_OnResponseEventHandler(RequestReadVariantCoding_OnResponse);
                mRequestReadVariantCoding.OnTimeout  += new Diagnostic._IDiagnosticRequestEvents_OnTimeoutEventHandler(RequestReadVariantCoding_OnTimeout);

                mRequestReadVariantCoding.Send(true);
            }
        }
Exemple #2
0
        void SendSeedRequestRequest()
        {
            mRequestSeedRequest = GetRequest(mSeedRequestRequestString, mECUName, mBusName);

            if (mRequestSeedRequest != null)
            {
                mRequestSeedRequest.OnResponse += new Diagnostic._IDiagnosticRequestEvents_OnResponseEventHandler(RequestSeedRequest_OnResponse);
                mRequestSeedRequest.OnTimeout  += new Diagnostic._IDiagnosticRequestEvents_OnTimeoutEventHandler(RequestSeedRequest_OnTimeout);

                mRequestSeedRequest.Send(true);
            }
        }
Exemple #3
0
        void SendExtendedSessionRequest()
        {
            mRequestExtendedSession = GetRequest(mExtendedSessionRequestString, mECUName, mBusName);

            if (mRequestExtendedSession != null)
            {
                mRequestExtendedSession.OnResponse += new Diagnostic._IDiagnosticRequestEvents_OnResponseEventHandler(RequestExtendedSession_OnResponse);
                mRequestExtendedSession.OnTimeout  += new Diagnostic._IDiagnosticRequestEvents_OnTimeoutEventHandler(RequestExtendedSession_OnTimeout);

                mRequestExtendedSession.Send(true);
            }
        }
Exemple #4
0
        void SendSendKeyRequest(long aKey)
        {
            mRequestSendKey = GetRequest(mSendKeyRequestString, mECUName, mBusName);

            if (mRequestSendKey != null)
            {
                mRequestSendKey.OnResponse += new Diagnostic._IDiagnosticRequestEvents_OnResponseEventHandler(RequestSendKey_OnResponse);
                mRequestSendKey.OnTimeout  += new Diagnostic._IDiagnosticRequestEvents_OnTimeoutEventHandler(RequestSendKey_OnTimeout);

                mRequestSendKey.SetParameter("SecurityKey", aKey);
                mRequestSendKey.Send(true);
            }
        }
Exemple #5
0
        void SendWriteVariantCodingRequest()
        {
            mRequestWriteVariantCoding = GetRequest(mWriteVariantCodingDataRequestString, mECUName, mBusName);

            if (mRequestWriteVariantCoding != null)
            {
                if (AssignDataToRequest() == true)
                {
                    mRequestWriteVariantCoding.OnResponse += new Diagnostic._IDiagnosticRequestEvents_OnResponseEventHandler(RequestWriteVariantCoding_OnResponse);
                    mRequestWriteVariantCoding.OnTimeout  += new Diagnostic._IDiagnosticRequestEvents_OnTimeoutEventHandler(RequestWriteVariantCoding_OnTimeout);

                    mRequestWriteVariantCoding.Send(true);
                }
                else
                {
                    lWriteStatus.Text      = "Creation of Request failed!";
                    lWriteStatus.BackColor = System.Drawing.Color.Red;
                }
            }
        }