EVCC > DIN70121

EVCC > DIN70121 > ContractAuthentication API

ContractAuthentication Lua API reference.

ContractAuthenticationReq API

API파라미터반환
Evcc.Send_ContractAuthenticationReq_001()--

ContractAuthenticationRes API

API파라미터반환
Evcc.Receive_ContractAuthenticationRes_001()--
Evcc.Get_ContractAuthenticationRes_ResponseCode()-ResponseCodeType
Evcc.Get_ContractAuthenticationRes_EVSEProcessing()-EVSEProcessingType

상세 명세

Evcc.Send_ContractAuthenticationReq_001

Evcc.Send_ContractAuthenticationReq_001()

ContractAuthenticationReq 송신

Parameter-
Return-
MessageContractAuthenticationReq
Evcc.Send_ContractAuthenticationReq_001()

Evcc.Receive_ContractAuthenticationRes_001

Evcc.Receive_ContractAuthenticationRes_001()

ContractAuthenticationRes 수신

Parameter-
Return-
MessageContractAuthenticationRes
Evcc.Receive_ContractAuthenticationRes_001()

Evcc.Get_ContractAuthenticationRes_ResponseCode

Evcc.Get_ContractAuthenticationRes_ResponseCode()

ContractAuthenticationRes.ResponseCode 조회

Parameter-
MessageContractAuthenticationRes
local expectedResponseCode = ResponseCodeType.OK
local receivedResponseCode = Evcc.Get_ContractAuthenticationRes_ResponseCode()

Evcc.Get_ContractAuthenticationRes_EVSEProcessing

Evcc.Get_ContractAuthenticationRes_EVSEProcessing()

ContractAuthenticationRes.EVSEProcessing 조회

Parameter-
MessageContractAuthenticationRes
local expectedEvseProcessing = EVSEProcessingType.Finished
local receivedEvseProcessing = Evcc.Get_ContractAuthenticationRes_EVSEProcessing()

예제

ContractAuthenticationReq 설정 및 전송

Script
Evcc.Send_ContractAuthenticationReq_001()

V2GTP Header

Protocol Version0x01
Inverse Version0xFE
Payload Type0x8001
Payload Length0x0000000D
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:ContractAuthenticationReq/>
  </s3:Body>
</s3:V2G_Message>