SECC > ISO15118-2

SECC > ISO15118-2 > ChargingStatus API

ChargingStatus Lua API reference.

ChargingStatusReq API

API파라미터반환
Secc.Receive_ChargingStatusReq_001()--
Secc.Check_Received_ChargingStatusReq()-boolean

ChargingStatusRes API

API파라미터반환
Secc.Set_ChargingStatusRes_ResponseCode(responseCode)responseCode (ResponseCodeType)-
Secc.Get_ChargingStatusRes_ResponseCode()-ResponseCodeType
Secc.Set_ChargingStatusRes_EVSEID(evseId)evseId-
Secc.Get_ChargingStatusRes_EVSEID()-string
Secc.Set_ChargingStatusRes_SAScheduleTupleID(saScheduleTupleID)saScheduleTupleID-
Secc.Get_ChargingStatusRes_SAScheduleTupleID()-number
Secc.Set_ChargingStatusRes_EVSEMaxCurrent_Multiplier(multiplier)multiplier-
Secc.Set_ChargingStatusRes_EVSEMaxCurrent_Unit(unit)unit (UnitSymbolType)-
Secc.Get_ChargingStatusRes_EVSEMaxCurrent_Unit()-UnitSymbolType
Secc.Set_ChargingStatusRes_EVSEMaxCurrent_Value(value)value-
Secc.Get_ChargingStatusRes_EVSEMaxCurrent_Value()-number
Secc.Set_ChargingStatusRes_AC_EVSEStatus_NotificationMaxDelay(notificationMaxDelay)notificationMaxDelay-
Secc.Get_ChargingStatusRes_AC_EVSEStatus_NotificationMaxDelay()-number
Secc.Set_ChargingStatusRes_AC_EVSEStatus_EVSENotification(evseNotification)evseNotification (EVSENotificationType)-
Secc.Get_ChargingStatusRes_AC_EVSEStatus_EVSENotification()-EVSENotificationType
Secc.Set_ChargingStatusRes_AC_EVSEStatus_RCD(rcd)rcd-
Secc.Get_ChargingStatusRes_AC_EVSEStatus_RCD()-boolean
Secc.Set_ChargingStatusRes_ReceiptRequired(receiptRequired)receiptRequired-
Secc.Get_ChargingStatusRes_ReceiptRequired()-boolean
Secc.Send_ChargingStatusRes_001()--

상세 명세

Secc.Receive_ChargingStatusReq_001

Secc.Receive_ChargingStatusReq_001()

ChargingStatusReq 수신

Parameter-
Return-
MessageChargingStatusReq
Secc.Receive_ChargingStatusReq_001()

Secc.Check_Received_ChargingStatusReq

Secc.Check_Received_ChargingStatusReq()

ChargingStatusReq.Received 확인

Parameter-
Returnboolean
MessageChargingStatusReq
local receivedChargingStatusReq = Secc.Check_Received_ChargingStatusReq()

Secc.Set_ChargingStatusRes_ResponseCode

Secc.Set_ChargingStatusRes_ResponseCode(responseCode)

ChargingStatusRes.ResponseCode 설정

ParameterresponseCode (ResponseCodeType)
Return-
MessageChargingStatusRes
local chargingStatusResponseCode = ResponseCodeType.OK
Secc.Set_ChargingStatusRes_ResponseCode(chargingStatusResponseCode)

Secc.Get_ChargingStatusRes_ResponseCode

Secc.Get_ChargingStatusRes_ResponseCode()

ChargingStatusRes.ResponseCode 조회

Parameter-
MessageChargingStatusRes
local observedChargingStatusResponseCode = Secc.Get_ChargingStatusRes_ResponseCode()

Secc.Set_ChargingStatusRes_EVSEID

Secc.Set_ChargingStatusRes_EVSEID(evseId)

ChargingStatusRes.EVSEID 설정

ParameterevseId
Return-
MessageChargingStatusRes
local chargingStatusEvseId = 'KR*TC1*ISO1*CHG'
Secc.Set_ChargingStatusRes_EVSEID(chargingStatusEvseId)

Secc.Get_ChargingStatusRes_EVSEID

Secc.Get_ChargingStatusRes_EVSEID()

ChargingStatusRes.EVSEID 조회

Parameter-
Returnstring
MessageChargingStatusRes
local observedChargingStatusEvseId = Secc.Get_ChargingStatusRes_EVSEID()

Secc.Set_ChargingStatusRes_SAScheduleTupleID

Secc.Set_ChargingStatusRes_SAScheduleTupleID(saScheduleTupleID)

ChargingStatusRes.SAScheduleTupleID 설정

ParametersaScheduleTupleID
Return-
MessageChargingStatusRes
local chargingStatusSAScheduleTupleID = 1
Secc.Set_ChargingStatusRes_SAScheduleTupleID(chargingStatusSAScheduleTupleID)

Secc.Get_ChargingStatusRes_SAScheduleTupleID

Secc.Get_ChargingStatusRes_SAScheduleTupleID()

ChargingStatusRes.SAScheduleTupleID 조회

Parameter-
Returnnumber
MessageChargingStatusRes
local observedChargingStatusSAScheduleTupleID = Secc.Get_ChargingStatusRes_SAScheduleTupleID()

Secc.Set_ChargingStatusRes_EVSEMaxCurrent_Multiplier

Secc.Set_ChargingStatusRes_EVSEMaxCurrent_Multiplier(multiplier)

ChargingStatusRes.EVSEMaxCurrent.Multiplier 설정

Parametermultiplier
Return-
MessageChargingStatusRes
local evseMaxCurrentMultiplier = -1
Secc.Set_ChargingStatusRes_EVSEMaxCurrent_Multiplier(evseMaxCurrentMultiplier)

Secc.Set_ChargingStatusRes_EVSEMaxCurrent_Unit

Secc.Set_ChargingStatusRes_EVSEMaxCurrent_Unit(unit)

ChargingStatusRes.EVSEMaxCurrent.Unit 설정

Parameterunit (UnitSymbolType)
Return-
MessageChargingStatusRes
local evseMaxCurrentUnit = UnitSymbolType.Unit_A
Secc.Set_ChargingStatusRes_EVSEMaxCurrent_Unit(evseMaxCurrentUnit)

Secc.Get_ChargingStatusRes_EVSEMaxCurrent_Unit

Secc.Get_ChargingStatusRes_EVSEMaxCurrent_Unit()

ChargingStatusRes.EVSEMaxCurrent.Unit 조회

Parameter-
MessageChargingStatusRes
local observedEvseMaxCurrentUnit = Secc.Get_ChargingStatusRes_EVSEMaxCurrent_Unit()

Secc.Set_ChargingStatusRes_EVSEMaxCurrent_Value

Secc.Set_ChargingStatusRes_EVSEMaxCurrent_Value(value)

ChargingStatusRes.EVSEMaxCurrent.Value 설정

Parametervalue
Return-
MessageChargingStatusRes
local evseMaxCurrentValue = 32
Secc.Set_ChargingStatusRes_EVSEMaxCurrent_Value(evseMaxCurrentValue)

Secc.Get_ChargingStatusRes_EVSEMaxCurrent_Value

Secc.Get_ChargingStatusRes_EVSEMaxCurrent_Value()

ChargingStatusRes.EVSEMaxCurrent.Value 조회

Parameter-
Returnnumber
MessageChargingStatusRes
local observedEvseMaxCurrentValue = Secc.Get_ChargingStatusRes_EVSEMaxCurrent_Value()

Secc.Set_ChargingStatusRes_AC_EVSEStatus_NotificationMaxDelay

Secc.Set_ChargingStatusRes_AC_EVSEStatus_NotificationMaxDelay(notificationMaxDelay)

ChargingStatusRes.AC_EVSEStatus.NotificationMaxDelay 설정

ParameternotificationMaxDelay
Return-
MessageChargingStatusRes
local notificationMaxDelay = 0
Secc.Set_ChargingStatusRes_AC_EVSEStatus_NotificationMaxDelay(notificationMaxDelay)

Secc.Get_ChargingStatusRes_AC_EVSEStatus_NotificationMaxDelay

Secc.Get_ChargingStatusRes_AC_EVSEStatus_NotificationMaxDelay()

ChargingStatusRes.AC_EVSEStatus.NotificationMaxDelay 조회

Parameter-
Returnnumber
MessageChargingStatusRes
local observedNotificationMaxDelay = Secc.Get_ChargingStatusRes_AC_EVSEStatus_NotificationMaxDelay()

Secc.Set_ChargingStatusRes_AC_EVSEStatus_EVSENotification

Secc.Set_ChargingStatusRes_AC_EVSEStatus_EVSENotification(evseNotification)

ChargingStatusRes.AC_EVSEStatus.EVSENotification 설정

ParameterevseNotification (EVSENotificationType)
Return-
MessageChargingStatusRes
local chargingStatusEvseNotification = EVSENotificationType.None
Secc.Set_ChargingStatusRes_AC_EVSEStatus_EVSENotification(chargingStatusEvseNotification)

Secc.Get_ChargingStatusRes_AC_EVSEStatus_EVSENotification

Secc.Get_ChargingStatusRes_AC_EVSEStatus_EVSENotification()

ChargingStatusRes.AC_EVSEStatus.EVSENotification 조회

Parameter-
MessageChargingStatusRes
local observedChargingStatusEvseNotification = Secc.Get_ChargingStatusRes_AC_EVSEStatus_EVSENotification()

Secc.Set_ChargingStatusRes_AC_EVSEStatus_RCD

Secc.Set_ChargingStatusRes_AC_EVSEStatus_RCD(rcd)

ChargingStatusRes.AC_EVSEStatus.RCD 설정

Parameterrcd
Return-
MessageChargingStatusRes
local rcd = false
Secc.Set_ChargingStatusRes_AC_EVSEStatus_RCD(rcd)

Secc.Get_ChargingStatusRes_AC_EVSEStatus_RCD

Secc.Get_ChargingStatusRes_AC_EVSEStatus_RCD()

ChargingStatusRes.AC_EVSEStatus.RCD 조회

Parameter-
Returnboolean
MessageChargingStatusRes
local observedRcd = Secc.Get_ChargingStatusRes_AC_EVSEStatus_RCD()

Secc.Set_ChargingStatusRes_ReceiptRequired

Secc.Set_ChargingStatusRes_ReceiptRequired(receiptRequired)

ChargingStatusRes.ReceiptRequired 설정

ParameterreceiptRequired
Return-
MessageChargingStatusRes
local receiptRequired = false
Secc.Set_ChargingStatusRes_ReceiptRequired(receiptRequired)

Secc.Get_ChargingStatusRes_ReceiptRequired

Secc.Get_ChargingStatusRes_ReceiptRequired()

ChargingStatusRes.ReceiptRequired 조회

Parameter-
Returnboolean
MessageChargingStatusRes
local observedReceiptRequired = Secc.Get_ChargingStatusRes_ReceiptRequired()

Secc.Send_ChargingStatusRes_001

Secc.Send_ChargingStatusRes_001()

ChargingStatusRes 송신

Parameter-
Return-
MessageChargingStatusRes
Secc.Send_ChargingStatusRes_001()

예제

ChargingStatusRes 설정 및 전송

Script
local chargingStatusResponseCode = ResponseCodeType.OK
Secc.Set_ChargingStatusRes_ResponseCode(chargingStatusResponseCode)

local chargingStatusEvseId = 'KR*TC1*ISO1*CHG'
Secc.Set_ChargingStatusRes_EVSEID(chargingStatusEvseId)

local chargingStatusSAScheduleTupleID = 1
Secc.Set_ChargingStatusRes_SAScheduleTupleID(chargingStatusSAScheduleTupleID)

local evseMaxCurrentMultiplier = -1
Secc.Set_ChargingStatusRes_EVSEMaxCurrent_Multiplier(evseMaxCurrentMultiplier)

local evseMaxCurrentUnit = UnitSymbolType.Unit_A
Secc.Set_ChargingStatusRes_EVSEMaxCurrent_Unit(evseMaxCurrentUnit)

local evseMaxCurrentValue = 32
Secc.Set_ChargingStatusRes_EVSEMaxCurrent_Value(evseMaxCurrentValue)

local notificationMaxDelay = 0
Secc.Set_ChargingStatusRes_AC_EVSEStatus_NotificationMaxDelay(notificationMaxDelay)

local chargingStatusEvseNotification = EVSENotificationType.None
Secc.Set_ChargingStatusRes_AC_EVSEStatus_EVSENotification(chargingStatusEvseNotification)

local rcd = false
Secc.Set_ChargingStatusRes_AC_EVSEStatus_RCD(rcd)

local receiptRequired = false
Secc.Set_ChargingStatusRes_ReceiptRequired(receiptRequired)

Secc.Send_ChargingStatusRes_001()

V2GTP Header

Protocol Version0x01
Inverse Version0xFE
Payload Type0x8001
Payload Length0x00000027
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:ChargingStatusRes>
      <s1:ResponseCode>OK</s1:ResponseCode>
      <s1:EVSEID>KR*TC1*ISO1*CHG</s1:EVSEID>
      <s1:SAScheduleTupleID>1</s1:SAScheduleTupleID>
      <s1:EVSEMaxCurrent>
        <s2:Multiplier>-1</s2:Multiplier>
        <s2:Unit>A</s2:Unit>
        <s2:Value>32</s2:Value>
      </s1:EVSEMaxCurrent>
      <s1:ReceiptRequired>false</s1:ReceiptRequired>
      <s1:AC_EVSEStatus>
        <s2:NotificationMaxDelay>0</s2:NotificationMaxDelay>
        <s2:EVSENotification>None</s2:EVSENotification>
        <s2:RCD>false</s2:RCD>
      </s1:AC_EVSEStatus>
    </s1:ChargingStatusRes>
  </s3:Body>
</s3:V2G_Message>