EVCC > ISO15118-2

EVCC > ISO15118-2 > ChargingStatus API

ChargingStatus Lua API reference.

ChargingStatusReq API

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

ChargingStatusRes API

API파라미터반환
Evcc.Receive_ChargingStatusRes_001()--
Evcc.Get_ChargingStatusRes_ResponseCode()-ResponseCodeType
Evcc.Get_ChargingStatusRes_EVSEID()-string
Evcc.Get_ChargingStatusRes_SAScheduleTupleID()-number
Evcc.Get_ChargingStatusRes_EVSEMaxCurrent_Unit()-UnitSymbolType
Evcc.Get_ChargingStatusRes_EVSEMaxCurrent_Value()-number
Evcc.Get_ChargingStatusRes_AC_EVSEStatus_NotificationMaxDelay()-number
Evcc.Get_ChargingStatusRes_AC_EVSEStatus_EVSENotification()-EVSENotificationType
Evcc.Check_ChargingStatusRes_AC_EVSEStatus_EVSENotification(notification)notification (EVSENotificationType)boolean
Evcc.Get_ChargingStatusRes_AC_EVSEStatus_RCD()-boolean
Evcc.Get_ChargingStatusRes_ReceiptRequired()-boolean

상세 명세

Evcc.Send_ChargingStatusReq_001

Evcc.Send_ChargingStatusReq_001()

ChargingStatusReq 송신

Parameter-
Return-
MessageChargingStatusReq
Evcc.Send_ChargingStatusReq_001()

Evcc.Receive_ChargingStatusRes_001

Evcc.Receive_ChargingStatusRes_001()

ChargingStatusRes 수신

Parameter-
Return-
MessageChargingStatusRes
Evcc.Receive_ChargingStatusRes_001()

Evcc.Get_ChargingStatusRes_ResponseCode

Evcc.Get_ChargingStatusRes_ResponseCode()

ChargingStatusRes.ResponseCode 조회

Parameter-
MessageChargingStatusRes
local expectedResponseCode = ResponseCodeType.OK
local receivedResponseCode = Evcc.Get_ChargingStatusRes_ResponseCode()

Evcc.Get_ChargingStatusRes_EVSEID

Evcc.Get_ChargingStatusRes_EVSEID()

ChargingStatusRes.EVSEID 조회

Parameter-
Returnstring
MessageChargingStatusRes
local expectedEvseId = 'KR*TC1*ISO1*CHG'
local receivedEvseId = Evcc.Get_ChargingStatusRes_EVSEID()

Evcc.Get_ChargingStatusRes_SAScheduleTupleID

Evcc.Get_ChargingStatusRes_SAScheduleTupleID()

ChargingStatusRes.SAScheduleTupleID 조회

Parameter-
Returnnumber
MessageChargingStatusRes
local expectedSAScheduleTupleID = 1
local receivedSAScheduleTupleID = Evcc.Get_ChargingStatusRes_SAScheduleTupleID()

Evcc.Get_ChargingStatusRes_EVSEMaxCurrent_Unit

Evcc.Get_ChargingStatusRes_EVSEMaxCurrent_Unit()

ChargingStatusRes.EVSEMaxCurrent.Unit 조회

Parameter-
MessageChargingStatusRes
local expectedEvseMaxCurrentUnit = UnitSymbolType.Unit_A
local receivedEvseMaxCurrentUnit = Evcc.Get_ChargingStatusRes_EVSEMaxCurrent_Unit()

Evcc.Get_ChargingStatusRes_EVSEMaxCurrent_Value

Evcc.Get_ChargingStatusRes_EVSEMaxCurrent_Value()

ChargingStatusRes.EVSEMaxCurrent.Value 조회

Parameter-
Returnnumber
MessageChargingStatusRes
local expectedEvseMaxCurrentValue = 32
local receivedEvseMaxCurrentValue = Evcc.Get_ChargingStatusRes_EVSEMaxCurrent_Value()

Evcc.Get_ChargingStatusRes_AC_EVSEStatus_NotificationMaxDelay

Evcc.Get_ChargingStatusRes_AC_EVSEStatus_NotificationMaxDelay()

ChargingStatusRes.AC_EVSEStatus.NotificationMaxDelay 조회

Parameter-
Returnnumber
MessageChargingStatusRes
local expectedNotificationMaxDelay = 0
local receivedNotificationMaxDelay = Evcc.Get_ChargingStatusRes_AC_EVSEStatus_NotificationMaxDelay()

Evcc.Get_ChargingStatusRes_AC_EVSEStatus_EVSENotification

Evcc.Get_ChargingStatusRes_AC_EVSEStatus_EVSENotification()

ChargingStatusRes.AC_EVSEStatus.EVSENotification 조회

Parameter-
MessageChargingStatusRes
local expectedEvseNotification = EVSENotificationType.None
local receivedEvseNotification = Evcc.Get_ChargingStatusRes_AC_EVSEStatus_EVSENotification()

Evcc.Check_ChargingStatusRes_AC_EVSEStatus_EVSENotification

Evcc.Check_ChargingStatusRes_AC_EVSEStatus_EVSENotification(notification)

ChargingStatusRes.AC_EVSEStatus.EVSENotification 확인

Parameternotification (EVSENotificationType)
Returnboolean
MessageChargingStatusRes
local evseNotificationMatched = Evcc.Check_ChargingStatusRes_AC_EVSEStatus_EVSENotification(expectedEvseNotification)

Evcc.Get_ChargingStatusRes_AC_EVSEStatus_RCD

Evcc.Get_ChargingStatusRes_AC_EVSEStatus_RCD()

ChargingStatusRes.AC_EVSEStatus.RCD 조회

Parameter-
Returnboolean
MessageChargingStatusRes
local expectedRcd = false
local receivedRcd = Evcc.Get_ChargingStatusRes_AC_EVSEStatus_RCD()

Evcc.Get_ChargingStatusRes_ReceiptRequired

Evcc.Get_ChargingStatusRes_ReceiptRequired()

ChargingStatusRes.ReceiptRequired 조회

Parameter-
Returnboolean
MessageChargingStatusRes
local expectedReceiptRequired = false
local receivedReceiptRequired = Evcc.Get_ChargingStatusRes_ReceiptRequired()

예제

ChargingStatusReq 설정 및 전송

Script
Evcc.Send_ChargingStatusReq_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: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>634BBE48F628FEE4</s4:SessionID>
  </s3:Header>
  <s3:Body>
    <s1:ChargingStatusReq/>
  </s3:Body>
</s3:V2G_Message>