SECC > ISO15118-2

SECC > ISO15118-2 > PreCharge API

PreCharge Lua API reference.

PreChargeReq API

API파라미터반환
Secc.Receive_PreChargeReq_001()--
Secc.Check_Received_PreChargeReq()-boolean
Secc.Get_PreChargeReq_DC_EVStatus_EVReady()-boolean
Secc.Get_PreChargeReq_DC_EVStatus_EVErrorCode()-DC_EVErrorCodeType
Secc.Get_PreChargeReq_EVTargetVoltage_Unit()-UnitSymbolType
Secc.Get_PreChargeReq_EVTargetVoltage_Value()-number
Secc.Get_PreChargeReq_EVTargetCurrent_Unit()-UnitSymbolType
Secc.Get_PreChargeReq_EVTargetCurrent_Value()-number

PreChargeRes API

API파라미터반환
Secc.Set_PreChargeRes_ResponseCode(responseCode)responseCode (ResponseCodeType)-
Secc.Get_PreChargeRes_ResponseCode()-ResponseCodeType
Secc.Set_PreChargeRes_DC_EVSEStatus_EVSEStatusCode(evseStatusCode)evseStatusCode (DC_EVSEStatusCodeType)-
Secc.Get_PreChargeRes_DC_EVSEStatus_EVSEStatusCode()-DC_EVSEStatusCodeType
Secc.Set_PreChargeRes_DC_EVSEStatus_EVSEIsolationStatus(evseIsolationStatus)evseIsolationStatus (IsolationLevelType)-
Secc.Get_PreChargeRes_DC_EVSEStatus_EVSEIsolationStatus()-IsolationLevelType
Secc.Set_PreChargeRes_DC_EVSEStatus_EVSEIsolationStatusSpecified(isSpecified)isSpecified-
Secc.Get_PreChargeRes_DC_EVSEStatus_EVSEIsolationStatusSpecified()-boolean
Secc.Set_PreChargeRes_DC_EVSEStatus_NotificationMaxDelay(notificationMaxDelay)notificationMaxDelay-
Secc.Get_PreChargeRes_DC_EVSEStatus_NotificationMaxDelay()-number
Secc.Set_PreChargeRes_DC_EVSEStatus_EVSENotification(evseNotification)evseNotification (EVSENotificationType)-
Secc.Get_PreChargeRes_DC_EVSEStatus_EVSENotification()-EVSENotificationType
Secc.Set_PreChargeRes_EVSEPresentVoltage_Multiplier(multiplier)multiplier-
Secc.Set_PreChargeRes_EVSEPresentVoltage_Unit(unit)unit (UnitSymbolType)-
Secc.Get_PreChargeRes_EVSEPresentVoltage_Unit()-UnitSymbolType
Secc.Set_PreChargeRes_EVSEPresentVoltage_Value(value)value-
Secc.Get_PreChargeRes_EVSEPresentVoltage_Value()-number
Secc.Send_PreChargeRes_001()--

상세 명세

Secc.Receive_PreChargeReq_001

Secc.Receive_PreChargeReq_001()

PreChargeReq 수신

Parameter-
Return-
MessagePreChargeReq
Secc.Receive_PreChargeReq_001()

Secc.Check_Received_PreChargeReq

Secc.Check_Received_PreChargeReq()

PreChargeReq.Received 확인

Parameter-
Returnboolean
MessagePreChargeReq
local receivedPreChargeReq = Secc.Check_Received_PreChargeReq()

Secc.Get_PreChargeReq_DC_EVStatus_EVReady

Secc.Get_PreChargeReq_DC_EVStatus_EVReady()

PreChargeReq.DC_EVStatus.EVReady 조회

Parameter-
Returnboolean
MessagePreChargeReq
local expectedPreChargeEvReady = true
local receivedPreChargeEvReady = Secc.Get_PreChargeReq_DC_EVStatus_EVReady()

Secc.Get_PreChargeReq_DC_EVStatus_EVErrorCode

Secc.Get_PreChargeReq_DC_EVStatus_EVErrorCode()

PreChargeReq.DC_EVStatus.EVErrorCode 조회

Parameter-
MessagePreChargeReq
local expectedPreChargeEvErrorCode = DC_EVErrorCodeType.NO_ERROR
local receivedPreChargeEvErrorCode = Secc.Get_PreChargeReq_DC_EVStatus_EVErrorCode()

Secc.Get_PreChargeReq_EVTargetVoltage_Unit

Secc.Get_PreChargeReq_EVTargetVoltage_Unit()

PreChargeReq.EVTargetVoltage.Unit 조회

Parameter-
MessagePreChargeReq
local expectedEvTargetVoltageUnit = UnitSymbolType.Unit_V
local receivedEvTargetVoltageUnit = Secc.Get_PreChargeReq_EVTargetVoltage_Unit()

Secc.Get_PreChargeReq_EVTargetVoltage_Value

Secc.Get_PreChargeReq_EVTargetVoltage_Value()

PreChargeReq.EVTargetVoltage.Value 조회

Parameter-
Returnnumber
MessagePreChargeReq
local expectedEvTargetVoltageValue = 3900
local receivedEvTargetVoltageValue = Secc.Get_PreChargeReq_EVTargetVoltage_Value()

Secc.Get_PreChargeReq_EVTargetCurrent_Unit

Secc.Get_PreChargeReq_EVTargetCurrent_Unit()

PreChargeReq.EVTargetCurrent.Unit 조회

Parameter-
MessagePreChargeReq
local expectedEvTargetCurrentUnit = UnitSymbolType.Unit_A
local receivedEvTargetCurrentUnit = Secc.Get_PreChargeReq_EVTargetCurrent_Unit()

Secc.Get_PreChargeReq_EVTargetCurrent_Value

Secc.Get_PreChargeReq_EVTargetCurrent_Value()

PreChargeReq.EVTargetCurrent.Value 조회

Parameter-
Returnnumber
MessagePreChargeReq
local expectedEvTargetCurrentValue = 10
local receivedEvTargetCurrentValue = Secc.Get_PreChargeReq_EVTargetCurrent_Value()

Secc.Set_PreChargeRes_ResponseCode

Secc.Set_PreChargeRes_ResponseCode(responseCode)

PreChargeRes.ResponseCode 설정

ParameterresponseCode (ResponseCodeType)
Return-
MessagePreChargeRes
local preChargeResponseCode = ResponseCodeType.OK
Secc.Set_PreChargeRes_ResponseCode(preChargeResponseCode)

Secc.Get_PreChargeRes_ResponseCode

Secc.Get_PreChargeRes_ResponseCode()

PreChargeRes.ResponseCode 조회

Parameter-
MessagePreChargeRes
local observedPreChargeResponseCode = Secc.Get_PreChargeRes_ResponseCode()

Secc.Set_PreChargeRes_DC_EVSEStatus_EVSEStatusCode

Secc.Set_PreChargeRes_DC_EVSEStatus_EVSEStatusCode(evseStatusCode)

PreChargeRes.DC_EVSEStatus.EVSEStatusCode 설정

ParameterevseStatusCode (DC_EVSEStatusCodeType)
Return-
MessagePreChargeRes
local evseStatusCode = DC_EVSEStatusCodeType.EVSE_Ready
Secc.Set_PreChargeRes_DC_EVSEStatus_EVSEStatusCode(evseStatusCode)

Secc.Get_PreChargeRes_DC_EVSEStatus_EVSEStatusCode

Secc.Get_PreChargeRes_DC_EVSEStatus_EVSEStatusCode()

PreChargeRes.DC_EVSEStatus.EVSEStatusCode 조회

Parameter-
MessagePreChargeRes
local observedEvseStatusCode = Secc.Get_PreChargeRes_DC_EVSEStatus_EVSEStatusCode()

Secc.Set_PreChargeRes_DC_EVSEStatus_EVSEIsolationStatus

Secc.Set_PreChargeRes_DC_EVSEStatus_EVSEIsolationStatus(evseIsolationStatus)

PreChargeRes.DC_EVSEStatus.EVSEIsolationStatus 설정

ParameterevseIsolationStatus (IsolationLevelType)
Return-
MessagePreChargeRes
local evseIsolationStatus = IsolationLevelType.Valid
Secc.Set_PreChargeRes_DC_EVSEStatus_EVSEIsolationStatus(evseIsolationStatus)

Secc.Get_PreChargeRes_DC_EVSEStatus_EVSEIsolationStatus

Secc.Get_PreChargeRes_DC_EVSEStatus_EVSEIsolationStatus()

PreChargeRes.DC_EVSEStatus.EVSEIsolationStatus 조회

Parameter-
MessagePreChargeRes
local observedEvseIsolationStatus = Secc.Get_PreChargeRes_DC_EVSEStatus_EVSEIsolationStatus()

Secc.Set_PreChargeRes_DC_EVSEStatus_EVSEIsolationStatusSpecified

Secc.Set_PreChargeRes_DC_EVSEStatus_EVSEIsolationStatusSpecified(isSpecified)

PreChargeRes.DC_EVSEStatus.EVSEIsolationStatusSpecified 설정

ParameterisSpecified
Return-
MessagePreChargeRes
local evseIsolationStatusSpecified = true
Secc.Set_PreChargeRes_DC_EVSEStatus_EVSEIsolationStatusSpecified(evseIsolationStatusSpecified)

Secc.Get_PreChargeRes_DC_EVSEStatus_EVSEIsolationStatusSpecified

Secc.Get_PreChargeRes_DC_EVSEStatus_EVSEIsolationStatusSpecified()

PreChargeRes.DC_EVSEStatus.EVSEIsolationStatusSpecified 조회

Parameter-
Returnboolean
MessagePreChargeRes
local observedEvseIsolationStatusSpecified = Secc.Get_PreChargeRes_DC_EVSEStatus_EVSEIsolationStatusSpecified()

Secc.Set_PreChargeRes_DC_EVSEStatus_NotificationMaxDelay

Secc.Set_PreChargeRes_DC_EVSEStatus_NotificationMaxDelay(notificationMaxDelay)

PreChargeRes.DC_EVSEStatus.NotificationMaxDelay 설정

ParameternotificationMaxDelay
Return-
MessagePreChargeRes
local notificationMaxDelay = 0
Secc.Set_PreChargeRes_DC_EVSEStatus_NotificationMaxDelay(notificationMaxDelay)

Secc.Get_PreChargeRes_DC_EVSEStatus_NotificationMaxDelay

Secc.Get_PreChargeRes_DC_EVSEStatus_NotificationMaxDelay()

PreChargeRes.DC_EVSEStatus.NotificationMaxDelay 조회

Parameter-
Returnnumber
MessagePreChargeRes
local observedNotificationMaxDelay = Secc.Get_PreChargeRes_DC_EVSEStatus_NotificationMaxDelay()

Secc.Set_PreChargeRes_DC_EVSEStatus_EVSENotification

Secc.Set_PreChargeRes_DC_EVSEStatus_EVSENotification(evseNotification)

PreChargeRes.DC_EVSEStatus.EVSENotification 설정

ParameterevseNotification (EVSENotificationType)
Return-
MessagePreChargeRes
local evseNotification = EVSENotificationType.None
Secc.Set_PreChargeRes_DC_EVSEStatus_EVSENotification(evseNotification)

Secc.Get_PreChargeRes_DC_EVSEStatus_EVSENotification

Secc.Get_PreChargeRes_DC_EVSEStatus_EVSENotification()

PreChargeRes.DC_EVSEStatus.EVSENotification 조회

Parameter-
MessagePreChargeRes
local observedEvseNotification = Secc.Get_PreChargeRes_DC_EVSEStatus_EVSENotification()

Secc.Set_PreChargeRes_EVSEPresentVoltage_Multiplier

Secc.Set_PreChargeRes_EVSEPresentVoltage_Multiplier(multiplier)

PreChargeRes.EVSEPresentVoltage.Multiplier 설정

Parametermultiplier
Return-
MessagePreChargeRes
local evsePresentVoltageMultiplier = -1
Secc.Set_PreChargeRes_EVSEPresentVoltage_Multiplier(evsePresentVoltageMultiplier)

Secc.Set_PreChargeRes_EVSEPresentVoltage_Unit

Secc.Set_PreChargeRes_EVSEPresentVoltage_Unit(unit)

PreChargeRes.EVSEPresentVoltage.Unit 설정

Parameterunit (UnitSymbolType)
Return-
MessagePreChargeRes
local evsePresentVoltageUnit = UnitSymbolType.Unit_V
Secc.Set_PreChargeRes_EVSEPresentVoltage_Unit(evsePresentVoltageUnit)

Secc.Get_PreChargeRes_EVSEPresentVoltage_Unit

Secc.Get_PreChargeRes_EVSEPresentVoltage_Unit()

PreChargeRes.EVSEPresentVoltage.Unit 조회

Parameter-
MessagePreChargeRes
local observedEvsePresentVoltageUnit = Secc.Get_PreChargeRes_EVSEPresentVoltage_Unit()

Secc.Set_PreChargeRes_EVSEPresentVoltage_Value

Secc.Set_PreChargeRes_EVSEPresentVoltage_Value(value)

PreChargeRes.EVSEPresentVoltage.Value 설정

Parametervalue
Return-
MessagePreChargeRes
local evsePresentVoltageValue = 3800
Secc.Set_PreChargeRes_EVSEPresentVoltage_Value(evsePresentVoltageValue)

Secc.Get_PreChargeRes_EVSEPresentVoltage_Value

Secc.Get_PreChargeRes_EVSEPresentVoltage_Value()

PreChargeRes.EVSEPresentVoltage.Value 조회

Parameter-
Returnnumber
MessagePreChargeRes
local observedEvsePresentVoltageValue = Secc.Get_PreChargeRes_EVSEPresentVoltage_Value()

Secc.Send_PreChargeRes_001

Secc.Send_PreChargeRes_001()

PreChargeRes 송신

Parameter-
Return-
MessagePreChargeRes
Secc.Send_PreChargeRes_001()

예제

PreChargeRes 설정 및 전송

Script
local preChargeResponseCode = ResponseCodeType.OK
Secc.Set_PreChargeRes_ResponseCode(preChargeResponseCode)

local evseStatusCode = DC_EVSEStatusCodeType.EVSE_Ready
Secc.Set_PreChargeRes_DC_EVSEStatus_EVSEStatusCode(evseStatusCode)

local evseIsolationStatus = IsolationLevelType.Valid
Secc.Set_PreChargeRes_DC_EVSEStatus_EVSEIsolationStatus(evseIsolationStatus)

local evseIsolationStatusSpecified = true
Secc.Set_PreChargeRes_DC_EVSEStatus_EVSEIsolationStatusSpecified(evseIsolationStatusSpecified)

local notificationMaxDelay = 0
Secc.Set_PreChargeRes_DC_EVSEStatus_NotificationMaxDelay(notificationMaxDelay)

local evseNotification = EVSENotificationType.None
Secc.Set_PreChargeRes_DC_EVSEStatus_EVSENotification(evseNotification)

local evsePresentVoltageMultiplier = -1
Secc.Set_PreChargeRes_EVSEPresentVoltage_Multiplier(evsePresentVoltageMultiplier)

local evsePresentVoltageUnit = UnitSymbolType.Unit_V
Secc.Set_PreChargeRes_EVSEPresentVoltage_Unit(evsePresentVoltageUnit)

local evsePresentVoltageValue = 3800
Secc.Set_PreChargeRes_EVSEPresentVoltage_Value(evsePresentVoltageValue)

Secc.Send_PreChargeRes_001()

V2GTP Header

Protocol Version0x01
Inverse Version0xFE
Payload Type0x8001
Payload Length0x00000017
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>03D670D07362C7C0</s4:SessionID>
  </s3:Header>
  <s3:Body>
    <s1:PreChargeRes>
      <s1:ResponseCode>OK</s1:ResponseCode>
      <s1:DC_EVSEStatus>
        <s2:NotificationMaxDelay>0</s2:NotificationMaxDelay>
        <s2:EVSENotification>None</s2:EVSENotification>
        <s2:EVSEIsolationStatus>Valid</s2:EVSEIsolationStatus>
        <s2:EVSEStatusCode>EVSE_Ready</s2:EVSEStatusCode>
      </s1:DC_EVSEStatus>
      <s1:EVSEPresentVoltage>
        <s2:Multiplier>-1</s2:Multiplier>
        <s2:Unit>V</s2:Unit>
        <s2:Value>3800</s2:Value>
      </s1:EVSEPresentVoltage>
    </s1:PreChargeRes>
  </s3:Body>
</s3:V2G_Message>