SECC > ISO15118-2

SECC > ISO15118-2 > Authorization API

Authorization Lua API reference.

AuthorizationReq API

API파라미터반환
Secc.Receive_AuthorizationReq_001()--
Secc.Check_Received_AuthorizationReq()-boolean
Secc.Get_AuthorizationReq_Id()-string
Secc.Get_AuthorizationReq_GenChallenge()-string

AuthorizationRes API

API파라미터반환
Secc.Set_AuthorizationRes_ResponseCode(responseCode)responseCode (ResponseCodeType)-
Secc.Get_AuthorizationRes_ResponseCode()-ResponseCodeType
Secc.Set_AuthorizationRes_EVSEProcessing(evseProcessing)evseProcessing (EVSEProcessingType)-
Secc.Get_AuthorizationRes_EVSEProcessing()-EVSEProcessingType
Secc.Send_AuthorizationRes_001()--

상세 명세

Secc.Receive_AuthorizationReq_001

Secc.Receive_AuthorizationReq_001()

AuthorizationReq 수신

Parameter-
Return-
MessageAuthorizationReq
Secc.Receive_AuthorizationReq_001()

Secc.Check_Received_AuthorizationReq

Secc.Check_Received_AuthorizationReq()

AuthorizationReq.Received 확인

Parameter-
Returnboolean
MessageAuthorizationReq
local receivedAuthorizationReq = Secc.Check_Received_AuthorizationReq()

Secc.Get_AuthorizationReq_Id

Secc.Get_AuthorizationReq_Id()

AuthorizationReq.Id 조회

Parameter-
Returnstring
MessageAuthorizationReq
local expectedAuthorizationId = 'iso1-authorization'
local receivedAuthorizationId = Secc.Get_AuthorizationReq_Id()

Secc.Get_AuthorizationReq_GenChallenge

Secc.Get_AuthorizationReq_GenChallenge()

AuthorizationReq.GenChallenge 조회

Parameter-
Returnstring
MessageAuthorizationReq
local expectedGenChallenge = '1112131415161718'
local receivedGenChallenge = Secc.Get_AuthorizationReq_GenChallenge()

Secc.Set_AuthorizationRes_ResponseCode

Secc.Set_AuthorizationRes_ResponseCode(responseCode)

AuthorizationRes.ResponseCode 설정

ParameterresponseCode (ResponseCodeType)
Return-
MessageAuthorizationRes
local authorizationResponseCode = ResponseCodeType.OK
Secc.Set_AuthorizationRes_ResponseCode(authorizationResponseCode)

Secc.Get_AuthorizationRes_ResponseCode

Secc.Get_AuthorizationRes_ResponseCode()

AuthorizationRes.ResponseCode 조회

Parameter-
MessageAuthorizationRes
local observedAuthorizationResponseCode = Secc.Get_AuthorizationRes_ResponseCode()

Secc.Set_AuthorizationRes_EVSEProcessing

Secc.Set_AuthorizationRes_EVSEProcessing(evseProcessing)

AuthorizationRes.EVSEProcessing 설정

ParameterevseProcessing (EVSEProcessingType)
Return-
MessageAuthorizationRes
local evseProcessing = EVSEProcessingType.Finished
Secc.Set_AuthorizationRes_EVSEProcessing(evseProcessing)

Secc.Get_AuthorizationRes_EVSEProcessing

Secc.Get_AuthorizationRes_EVSEProcessing()

AuthorizationRes.EVSEProcessing 조회

Parameter-
MessageAuthorizationRes
local observedEvseProcessing = Secc.Get_AuthorizationRes_EVSEProcessing()

Secc.Send_AuthorizationRes_001

Secc.Send_AuthorizationRes_001()

AuthorizationRes 송신

Parameter-
Return-
MessageAuthorizationRes
Secc.Send_AuthorizationRes_001()

예제

AuthorizationRes 설정 및 전송

Script
local authorizationResponseCode = ResponseCodeType.OK
Secc.Set_AuthorizationRes_ResponseCode(authorizationResponseCode)

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

Secc.Send_AuthorizationRes_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: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:AuthorizationRes>
      <s1:ResponseCode>OK</s1:ResponseCode>
      <s1:EVSEProcessing>Finished</s1:EVSEProcessing>
    </s1:AuthorizationRes>
  </s3:Body>
</s3:V2G_Message>