EVCC > ISO15118-2

EVCC > ISO15118-2 > SessionStop API

SessionStop Lua API reference.

SessionStopReq API

API파라미터반환
Evcc.Set_SessionStopReq_ChargingSession(chargingSession)chargingSession (ChargingSessionType)-
Evcc.Get_SessionStopReq_ChargingSession()-ChargingSessionType
Evcc.Send_SessionStopReq_001()--

SessionStopRes API

API파라미터반환
Evcc.Receive_SessionStopRes_001()--
Evcc.Get_SessionStopRes_ResponseCode()-ResponseCodeType

상세 명세

Evcc.Set_SessionStopReq_ChargingSession

Evcc.Set_SessionStopReq_ChargingSession(chargingSession)

SessionStopReq.ChargingSession 설정

ParameterchargingSession (ChargingSessionType)
Return-
MessageSessionStopReq
local chargingSession = ChargingSessionType.Terminate
Evcc.Set_SessionStopReq_ChargingSession(chargingSession)

Evcc.Get_SessionStopReq_ChargingSession

Evcc.Get_SessionStopReq_ChargingSession()

SessionStopReq.ChargingSession 조회

Parameter-
MessageSessionStopReq
local observedChargingSession = Evcc.Get_SessionStopReq_ChargingSession()

Evcc.Send_SessionStopReq_001

Evcc.Send_SessionStopReq_001()

SessionStopReq 송신

Parameter-
Return-
MessageSessionStopReq
Evcc.Send_SessionStopReq_001()

Evcc.Receive_SessionStopRes_001

Evcc.Receive_SessionStopRes_001()

SessionStopRes 수신

Parameter-
Return-
MessageSessionStopRes
Evcc.Receive_SessionStopRes_001()

Evcc.Get_SessionStopRes_ResponseCode

Evcc.Get_SessionStopRes_ResponseCode()

SessionStopRes.ResponseCode 조회

Parameter-
MessageSessionStopRes
local expectedResponseCode = ResponseCodeType.OK
local receivedResponseCode = Evcc.Get_SessionStopRes_ResponseCode()

예제

SessionStopReq 설정 및 전송

Script
local chargingSession = ChargingSessionType.Terminate
Evcc.Set_SessionStopReq_ChargingSession(chargingSession)

Evcc.Send_SessionStopReq_001()

V2GTP Header

Protocol Version0x01
Inverse Version0xFE
Payload Type0x8001
Payload Length0x0000000E
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>B9D3FD12ABB3E0F8</s4:SessionID>
  </s3:Header>
  <s3:Body>
    <s1:SessionStopReq>
      <s1:ChargingSession>Terminate</s1:ChargingSession>
    </s1:SessionStopReq>
  </s3:Body>
</s3:V2G_Message>