EVCC > ISO15118-2

EVCC > ISO15118-2 > Authorization API

Authorization Lua API reference.

AuthorizationReq API

API파라미터반환
Evcc.Set_AuthorizationReq_Id(id)id-
Evcc.Get_AuthorizationReq_Id()-string
Evcc.Set_AuthorizationReq_GenChallenge(genChallenge)genChallenge-
Evcc.Get_AuthorizationReq_GenChallenge()-string
Evcc.Send_AuthorizationReq_001()--

AuthorizationRes API

API파라미터반환
Evcc.Receive_AuthorizationRes_001()--
Evcc.Get_AuthorizationRes_ResponseCode()-ResponseCodeType
Evcc.Get_AuthorizationRes_EVSEProcessing()-EVSEProcessingType
Evcc.Check_AuthorizationRes_EVSEProcessing(evseProcessing)evseProcessing (EVSEProcessingType)boolean

상세 명세

Evcc.Set_AuthorizationReq_Id

Evcc.Set_AuthorizationReq_Id(id)

AuthorizationReq.Id 설정

Parameterid
Return-
MessageAuthorizationReq
local authorizationId = 'iso1-authorization'
Evcc.Set_AuthorizationReq_Id(authorizationId)

Evcc.Get_AuthorizationReq_Id

Evcc.Get_AuthorizationReq_Id()

AuthorizationReq.Id 조회

Parameter-
Returnstring
MessageAuthorizationReq
local observedAuthorizationId = Evcc.Get_AuthorizationReq_Id()

Evcc.Set_AuthorizationReq_GenChallenge

Evcc.Set_AuthorizationReq_GenChallenge(genChallenge)

AuthorizationReq.GenChallenge 설정

ParametergenChallenge
Return-
MessageAuthorizationReq
local genChallenge = '1112131415161718'
Evcc.Set_AuthorizationReq_GenChallenge(genChallenge)

Evcc.Get_AuthorizationReq_GenChallenge

Evcc.Get_AuthorizationReq_GenChallenge()

AuthorizationReq.GenChallenge 조회

Parameter-
Returnstring
MessageAuthorizationReq
local observedGenChallenge = Evcc.Get_AuthorizationReq_GenChallenge()

Evcc.Send_AuthorizationReq_001

Evcc.Send_AuthorizationReq_001()

AuthorizationReq 송신

Parameter-
Return-
MessageAuthorizationReq
Evcc.Send_AuthorizationReq_001()

Evcc.Receive_AuthorizationRes_001

Evcc.Receive_AuthorizationRes_001()

AuthorizationRes 수신

Parameter-
Return-
MessageAuthorizationRes
Evcc.Receive_AuthorizationRes_001()

Evcc.Get_AuthorizationRes_ResponseCode

Evcc.Get_AuthorizationRes_ResponseCode()

AuthorizationRes.ResponseCode 조회

Parameter-
MessageAuthorizationRes
local expectedResponseCode = ResponseCodeType.OK
local receivedResponseCode = Evcc.Get_AuthorizationRes_ResponseCode()

Evcc.Get_AuthorizationRes_EVSEProcessing

Evcc.Get_AuthorizationRes_EVSEProcessing()

AuthorizationRes.EVSEProcessing 조회

Parameter-
MessageAuthorizationRes
local expectedEvseProcessing = EVSEProcessingType.Finished
local receivedEvseProcessing = Evcc.Get_AuthorizationRes_EVSEProcessing()

Evcc.Check_AuthorizationRes_EVSEProcessing

Evcc.Check_AuthorizationRes_EVSEProcessing(evseProcessing)

AuthorizationRes.EVSEProcessing 확인

ParameterevseProcessing (EVSEProcessingType)
Returnboolean
MessageAuthorizationRes
local receivedEvseProcessingCheck = Evcc.Check_AuthorizationRes_EVSEProcessing(expectedEvseProcessing)

예제

AuthorizationReq 설정 및 전송

Script
local authorizationId = 'iso1-authorization'
Evcc.Set_AuthorizationReq_Id(authorizationId)

local genChallenge = '1112131415161718'
Evcc.Set_AuthorizationReq_GenChallenge(genChallenge)

Evcc.Send_AuthorizationReq_001()

V2GTP Header

Protocol Version0x01
Inverse Version0xFE
Payload Type0x8001
Payload Length0x0000002A
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:iso:15118:2:2013:MsgBody" xmlns:s2="urn:iso:15118:2:2013:MsgDataTypes" xmlns:s3="urn:iso:15118:2:2013:MsgDef" xmlns:s4="urn:iso:15118:2:2013:MsgHeader">
  <s3:Header>
    <s4:SessionID>9600799EFD6B54D4</s4:SessionID>
  </s3:Header>
  <s3:Body>
    <s1:AuthorizationReq s1:Id="iso1-authorization">
      <s1:GenChallenge>ERITFBUWFxg=</s1:GenChallenge>
    </s1:AuthorizationReq>
  </s3:Body>
</s3:V2G_Message>