SECC > ISO15118-2

SECC > ISO15118-2 > SessionSetup API

SessionSetup Lua API reference.

SessionSetupReq API

API파라미터반환
Secc.Receive_SessionSetupReq_001()--
Secc.Get_SessionSetupReq_EVCCID()-string

SessionSetupRes API

API파라미터반환
Secc.Set_SessionSetupRes_EVSEID(evseId)evseId-
Secc.Set_SessionSetupRes_ResponseCode(responseCode)responseCode (ResponseCodeType)-
Secc.Send_SessionSetupRes_001()--

상세 명세

Secc.Receive_SessionSetupReq_001

Secc.Receive_SessionSetupReq_001()

SessionSetupReq 수신

Parameter-
Return-
MessageSessionSetupReq
Secc.Receive_SessionSetupReq_001()

Secc.Get_SessionSetupReq_EVCCID

Secc.Get_SessionSetupReq_EVCCID()

SessionSetupReq.EVCCID 조회

Parameter-
Returnstring
MessageSessionSetupReq
local expectedEvccId = '1020304050607080'
local receivedEvccId = Secc.Get_SessionSetupReq_EVCCID()

Secc.Set_SessionSetupRes_EVSEID

Secc.Set_SessionSetupRes_EVSEID(evseId)

SessionSetupRes.EVSEID 설정

ParameterevseId
Return-
MessageSessionSetupRes
local evseId = 'KR*TC1*ISO1*001'
Secc.Set_SessionSetupRes_EVSEID(evseId)

Secc.Set_SessionSetupRes_ResponseCode

Secc.Set_SessionSetupRes_ResponseCode(responseCode)

SessionSetupRes.ResponseCode 설정

ParameterresponseCode (ResponseCodeType)
Return-
MessageSessionSetupRes
local responseCode = ResponseCodeType.FAILED_SequenceError
Secc.Set_SessionSetupRes_ResponseCode(responseCode)

Secc.Send_SessionSetupRes_001

Secc.Send_SessionSetupRes_001()

SessionSetupRes 송신

Parameter-
Return-
MessageSessionSetupRes
Secc.Send_SessionSetupRes_001()

예제

SessionSetupRes 설정 및 전송

Script
local evseId = 'KR*TC1*ISO1*001'
Secc.Set_SessionSetupRes_EVSEID(evseId)

local responseCode = ResponseCodeType.FAILED_SequenceError
Secc.Set_SessionSetupRes_ResponseCode(responseCode)

Secc.Send_SessionSetupRes_001()

V2GTP Header

Protocol Version0x01
Inverse Version0xFE
Payload Type0x8001
Payload Length0x0000001F
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>C1A61BDEADFA4655</s4:SessionID>
  </s3:Header>
  <s3:Body>
    <s1:SessionSetupRes>
      <s1:ResponseCode>FAILED_SequenceError</s1:ResponseCode>
      <s1:EVSEID>KR*TC1*ISO1*001</s1:EVSEID>
    </s1:SessionSetupRes>
  </s3:Body>
</s3:V2G_Message>