SECC > DIN70121

SECC > DIN70121 > ContractAuthentication API

ContractAuthentication Lua API reference.

ContractAuthenticationReq API

API파라미터반환
Secc.Receive_ContractAuthenticationReq_001()--
Secc.Check_Received_ContractAuthenticationReq()-boolean

ContractAuthenticationRes API

API파라미터반환
Secc.Set_ContractAuthenticationRes_ResponseCode(responseCode)responseCode (ResponseCodeType)-
Secc.Get_ContractAuthenticationRes_ResponseCode()-ResponseCodeType
Secc.Set_ContractAuthenticationRes_EVSEProcessing(evseProcessing)evseProcessing (EVSEProcessingType)-
Secc.Get_ContractAuthenticationRes_EVSEProcessing()-EVSEProcessingType
Secc.Send_ContractAuthenticationRes_001()--

상세 명세

Secc.Receive_ContractAuthenticationReq_001

Secc.Receive_ContractAuthenticationReq_001()

ContractAuthenticationReq 수신

Parameter-
Return-
MessageContractAuthenticationReq
Secc.Receive_ContractAuthenticationReq_001()

Secc.Check_Received_ContractAuthenticationReq

Secc.Check_Received_ContractAuthenticationReq()

ContractAuthenticationReq.Received 확인

Parameter-
Returnboolean
MessageContractAuthenticationReq
local receivedContractAuthenticationReq = Secc.Check_Received_ContractAuthenticationReq()

Secc.Set_ContractAuthenticationRes_ResponseCode

Secc.Set_ContractAuthenticationRes_ResponseCode(responseCode)

ContractAuthenticationRes.ResponseCode 설정

ParameterresponseCode (ResponseCodeType)
Return-
MessageContractAuthenticationRes
local contractAuthenticationResponseCode = ResponseCodeType.OK
Secc.Set_ContractAuthenticationRes_ResponseCode(contractAuthenticationResponseCode)

Secc.Get_ContractAuthenticationRes_ResponseCode

Secc.Get_ContractAuthenticationRes_ResponseCode()

ContractAuthenticationRes.ResponseCode 조회

Parameter-
MessageContractAuthenticationRes
local observedResponseCode = Secc.Get_ContractAuthenticationRes_ResponseCode()

Secc.Set_ContractAuthenticationRes_EVSEProcessing

Secc.Set_ContractAuthenticationRes_EVSEProcessing(evseProcessing)

ContractAuthenticationRes.EVSEProcessing 설정

ParameterevseProcessing (EVSEProcessingType)
Return-
MessageContractAuthenticationRes
local evseProcessing = EVSEProcessingType.Finished
Secc.Set_ContractAuthenticationRes_EVSEProcessing(evseProcessing)

Secc.Get_ContractAuthenticationRes_EVSEProcessing

Secc.Get_ContractAuthenticationRes_EVSEProcessing()

ContractAuthenticationRes.EVSEProcessing 조회

Parameter-
MessageContractAuthenticationRes
local observedEvseProcessing = Secc.Get_ContractAuthenticationRes_EVSEProcessing()

Secc.Send_ContractAuthenticationRes_001

Secc.Send_ContractAuthenticationRes_001()

ContractAuthenticationRes 송신

Parameter-
Return-
MessageContractAuthenticationRes
Secc.Send_ContractAuthenticationRes_001()

예제

ContractAuthenticationRes 설정 및 전송

Script
local contractAuthenticationResponseCode = ResponseCodeType.OK
Secc.Set_ContractAuthenticationRes_ResponseCode(contractAuthenticationResponseCode)

local evseProcessing = EVSEProcessingType.Finished
Secc.Set_ContractAuthenticationRes_EVSEProcessing(evseProcessing)

Secc.Send_ContractAuthenticationRes_001()

V2GTP Header

Protocol Version0x01
Inverse Version0xFE
Payload Type0x8001
Payload Length0x0000000F
PayloadEXIEncodedV2GMessage

XML Example

<?xml version="1.0" ?>
<s3:V2G_Message xmlns:xml="http://www.w3.org/XML/1998/namespace" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:s0="http://www.w3.org/2000/09/xmldsig#" xmlns:s1="urn:din:70121:2012:MsgBody" xmlns:s2="urn:din:70121:2012:MsgDataTypes" xmlns:s3="urn:din:70121:2012:MsgDef" xmlns:s4="urn:din:70121:2012:MsgHeader">
  <s3:Header>
    <s4:SessionID>30E319D0B7D3AD32</s4:SessionID>
  </s3:Header>
  <s3:Body>
    <s1:ContractAuthenticationRes>
      <s1:ResponseCode>OK</s1:ResponseCode>
      <s1:EVSEProcessing>Finished</s1:EVSEProcessing>
    </s1:ContractAuthenticationRes>
  </s3:Body>
</s3:V2G_Message>