EVCC > ISO15118-2

EVCC > ISO15118-2 > PreCharge API

PreCharge Lua API reference.

PreChargeReq API

API파라미터반환
Evcc.Set_PreChargeReq_DC_EVStatus_EVReady(evReady)evReady-
Evcc.Get_PreChargeReq_DC_EVStatus_EVReady()-boolean
Evcc.Set_PreChargeReq_DC_EVStatus_EVErrorCode(evErrorCode)evErrorCode (DC_EVErrorCodeType)-
Evcc.Get_PreChargeReq_DC_EVStatus_EVErrorCode()-DC_EVErrorCodeType
Evcc.Set_PreChargeReq_DC_EVStatus_EVRESSSOC(evressSoc)evressSoc-
Evcc.Set_PreChargeReq_EVTargetVoltage_Multiplier(multiplier)multiplier-
Evcc.Set_PreChargeReq_EVTargetVoltage_Unit(unit)unit (UnitSymbolType)-
Evcc.Get_PreChargeReq_EVTargetVoltage_Unit()-UnitSymbolType
Evcc.Set_PreChargeReq_EVTargetVoltage_Value(value)value-
Evcc.Get_PreChargeReq_EVTargetVoltage_Value()-number
Evcc.Set_PreChargeReq_EVTargetCurrent_Multiplier(multiplier)multiplier-
Evcc.Set_PreChargeReq_EVTargetCurrent_Unit(unit)unit (UnitSymbolType)-
Evcc.Get_PreChargeReq_EVTargetCurrent_Unit()-UnitSymbolType
Evcc.Set_PreChargeReq_EVTargetCurrent_Value(value)value-
Evcc.Get_PreChargeReq_EVTargetCurrent_Value()-number
Evcc.Send_PreChargeReq_001()--

PreChargeRes API

API파라미터반환
Evcc.Receive_PreChargeRes_001()--
Evcc.Get_PreChargeRes_ResponseCode()-ResponseCodeType
Evcc.Get_PreChargeRes_DC_EVSEStatus_EVSEStatusCode()-DC_EVSEStatusCodeType
Evcc.Get_PreChargeRes_DC_EVSEStatus_EVSEIsolationStatus()-IsolationLevelType
Evcc.Get_PreChargeRes_DC_EVSEStatus_EVSEIsolationStatusSpecified()-boolean
Evcc.Get_PreChargeRes_DC_EVSEStatus_NotificationMaxDelay()-number
Evcc.Get_PreChargeRes_DC_EVSEStatus_EVSENotification()-EVSENotificationType
Evcc.Get_PreChargeRes_EVSEPresentVoltage_Unit()-UnitSymbolType
Evcc.Get_PreChargeRes_EVSEPresentVoltage_Value()-number

상세 명세

Evcc.Set_PreChargeReq_DC_EVStatus_EVReady

Evcc.Set_PreChargeReq_DC_EVStatus_EVReady(evReady)

PreChargeReq.DC_EVStatus.EVReady 설정

ParameterevReady
Return-
MessagePreChargeReq
local preChargeEvReady = true
Evcc.Set_PreChargeReq_DC_EVStatus_EVReady(preChargeEvReady)

Evcc.Get_PreChargeReq_DC_EVStatus_EVReady

Evcc.Get_PreChargeReq_DC_EVStatus_EVReady()

PreChargeReq.DC_EVStatus.EVReady 조회

Parameter-
Returnboolean
MessagePreChargeReq
local observedPreChargeEvReady = Evcc.Get_PreChargeReq_DC_EVStatus_EVReady()

Evcc.Set_PreChargeReq_DC_EVStatus_EVErrorCode

Evcc.Set_PreChargeReq_DC_EVStatus_EVErrorCode(evErrorCode)

PreChargeReq.DC_EVStatus.EVErrorCode 설정

ParameterevErrorCode (DC_EVErrorCodeType)
Return-
MessagePreChargeReq
local preChargeEvErrorCode = DC_EVErrorCodeType.NO_ERROR
Evcc.Set_PreChargeReq_DC_EVStatus_EVErrorCode(preChargeEvErrorCode)

Evcc.Get_PreChargeReq_DC_EVStatus_EVErrorCode

Evcc.Get_PreChargeReq_DC_EVStatus_EVErrorCode()

PreChargeReq.DC_EVStatus.EVErrorCode 조회

Parameter-
MessagePreChargeReq
local observedPreChargeEvErrorCode = Evcc.Get_PreChargeReq_DC_EVStatus_EVErrorCode()

Evcc.Set_PreChargeReq_DC_EVStatus_EVRESSSOC

Evcc.Set_PreChargeReq_DC_EVStatus_EVRESSSOC(evressSoc)

PreChargeReq.DC_EVStatus.EVRESSSOC 설정

ParameterevressSoc
Return-
MessagePreChargeReq
local preChargeEvressSoc = 74
Evcc.Set_PreChargeReq_DC_EVStatus_EVRESSSOC(preChargeEvressSoc)

Evcc.Set_PreChargeReq_EVTargetVoltage_Multiplier

Evcc.Set_PreChargeReq_EVTargetVoltage_Multiplier(multiplier)

PreChargeReq.EVTargetVoltage.Multiplier 설정

Parametermultiplier
Return-
MessagePreChargeReq
local evTargetVoltageMultiplier = -1
Evcc.Set_PreChargeReq_EVTargetVoltage_Multiplier(evTargetVoltageMultiplier)

Evcc.Set_PreChargeReq_EVTargetVoltage_Unit

Evcc.Set_PreChargeReq_EVTargetVoltage_Unit(unit)

PreChargeReq.EVTargetVoltage.Unit 설정

Parameterunit (UnitSymbolType)
Return-
MessagePreChargeReq
local evTargetVoltageUnit = UnitSymbolType.Unit_V
Evcc.Set_PreChargeReq_EVTargetVoltage_Unit(evTargetVoltageUnit)

Evcc.Get_PreChargeReq_EVTargetVoltage_Unit

Evcc.Get_PreChargeReq_EVTargetVoltage_Unit()

PreChargeReq.EVTargetVoltage.Unit 조회

Parameter-
MessagePreChargeReq
local observedEvTargetVoltageUnit = Evcc.Get_PreChargeReq_EVTargetVoltage_Unit()

Evcc.Set_PreChargeReq_EVTargetVoltage_Value

Evcc.Set_PreChargeReq_EVTargetVoltage_Value(value)

PreChargeReq.EVTargetVoltage.Value 설정

Parametervalue
Return-
MessagePreChargeReq
local evTargetVoltageValue = 3900
Evcc.Set_PreChargeReq_EVTargetVoltage_Value(evTargetVoltageValue)

Evcc.Get_PreChargeReq_EVTargetVoltage_Value

Evcc.Get_PreChargeReq_EVTargetVoltage_Value()

PreChargeReq.EVTargetVoltage.Value 조회

Parameter-
Returnnumber
MessagePreChargeReq
local observedEvTargetVoltageValue = Evcc.Get_PreChargeReq_EVTargetVoltage_Value()

Evcc.Set_PreChargeReq_EVTargetCurrent_Multiplier

Evcc.Set_PreChargeReq_EVTargetCurrent_Multiplier(multiplier)

PreChargeReq.EVTargetCurrent.Multiplier 설정

Parametermultiplier
Return-
MessagePreChargeReq
local evTargetCurrentMultiplier = -1
Evcc.Set_PreChargeReq_EVTargetCurrent_Multiplier(evTargetCurrentMultiplier)

Evcc.Set_PreChargeReq_EVTargetCurrent_Unit

Evcc.Set_PreChargeReq_EVTargetCurrent_Unit(unit)

PreChargeReq.EVTargetCurrent.Unit 설정

Parameterunit (UnitSymbolType)
Return-
MessagePreChargeReq
local evTargetCurrentUnit = UnitSymbolType.Unit_A
Evcc.Set_PreChargeReq_EVTargetCurrent_Unit(evTargetCurrentUnit)

Evcc.Get_PreChargeReq_EVTargetCurrent_Unit

Evcc.Get_PreChargeReq_EVTargetCurrent_Unit()

PreChargeReq.EVTargetCurrent.Unit 조회

Parameter-
MessagePreChargeReq
local observedEvTargetCurrentUnit = Evcc.Get_PreChargeReq_EVTargetCurrent_Unit()

Evcc.Set_PreChargeReq_EVTargetCurrent_Value

Evcc.Set_PreChargeReq_EVTargetCurrent_Value(value)

PreChargeReq.EVTargetCurrent.Value 설정

Parametervalue
Return-
MessagePreChargeReq
local evTargetCurrentValue = 10
Evcc.Set_PreChargeReq_EVTargetCurrent_Value(evTargetCurrentValue)

Evcc.Get_PreChargeReq_EVTargetCurrent_Value

Evcc.Get_PreChargeReq_EVTargetCurrent_Value()

PreChargeReq.EVTargetCurrent.Value 조회

Parameter-
Returnnumber
MessagePreChargeReq
local observedEvTargetCurrentValue = Evcc.Get_PreChargeReq_EVTargetCurrent_Value()

Evcc.Send_PreChargeReq_001

Evcc.Send_PreChargeReq_001()

PreChargeReq 송신

Parameter-
Return-
MessagePreChargeReq
Evcc.Send_PreChargeReq_001()

Evcc.Receive_PreChargeRes_001

Evcc.Receive_PreChargeRes_001()

PreChargeRes 수신

Parameter-
Return-
MessagePreChargeRes
Evcc.Receive_PreChargeRes_001()

Evcc.Get_PreChargeRes_ResponseCode

Evcc.Get_PreChargeRes_ResponseCode()

PreChargeRes.ResponseCode 조회

Parameter-
MessagePreChargeRes
local expectedResponseCode = ResponseCodeType.OK
local receivedResponseCode = Evcc.Get_PreChargeRes_ResponseCode()

Evcc.Get_PreChargeRes_DC_EVSEStatus_EVSEStatusCode

Evcc.Get_PreChargeRes_DC_EVSEStatus_EVSEStatusCode()

PreChargeRes.DC_EVSEStatus.EVSEStatusCode 조회

Parameter-
MessagePreChargeRes
local expectedEvseStatusCode = DC_EVSEStatusCodeType.EVSE_Ready
local receivedEvseStatusCode = Evcc.Get_PreChargeRes_DC_EVSEStatus_EVSEStatusCode()

Evcc.Get_PreChargeRes_DC_EVSEStatus_EVSEIsolationStatus

Evcc.Get_PreChargeRes_DC_EVSEStatus_EVSEIsolationStatus()

PreChargeRes.DC_EVSEStatus.EVSEIsolationStatus 조회

Parameter-
MessagePreChargeRes
local expectedEvseIsolationStatus = IsolationLevelType.Valid
local receivedEvseIsolationStatus = Evcc.Get_PreChargeRes_DC_EVSEStatus_EVSEIsolationStatus()

Evcc.Get_PreChargeRes_DC_EVSEStatus_EVSEIsolationStatusSpecified

Evcc.Get_PreChargeRes_DC_EVSEStatus_EVSEIsolationStatusSpecified()

PreChargeRes.DC_EVSEStatus.EVSEIsolationStatusSpecified 조회

Parameter-
Returnboolean
MessagePreChargeRes
local expectedEvseIsolationStatusSpecified = true
local receivedEvseIsolationStatusSpecified = Evcc.Get_PreChargeRes_DC_EVSEStatus_EVSEIsolationStatusSpecified()

Evcc.Get_PreChargeRes_DC_EVSEStatus_NotificationMaxDelay

Evcc.Get_PreChargeRes_DC_EVSEStatus_NotificationMaxDelay()

PreChargeRes.DC_EVSEStatus.NotificationMaxDelay 조회

Parameter-
Returnnumber
MessagePreChargeRes
local expectedNotificationMaxDelay = 0
local receivedNotificationMaxDelay = Evcc.Get_PreChargeRes_DC_EVSEStatus_NotificationMaxDelay()

Evcc.Get_PreChargeRes_DC_EVSEStatus_EVSENotification

Evcc.Get_PreChargeRes_DC_EVSEStatus_EVSENotification()

PreChargeRes.DC_EVSEStatus.EVSENotification 조회

Parameter-
MessagePreChargeRes
local expectedEvseNotification = EVSENotificationType.None
local receivedEvseNotification = Evcc.Get_PreChargeRes_DC_EVSEStatus_EVSENotification()

Evcc.Get_PreChargeRes_EVSEPresentVoltage_Unit

Evcc.Get_PreChargeRes_EVSEPresentVoltage_Unit()

PreChargeRes.EVSEPresentVoltage.Unit 조회

Parameter-
MessagePreChargeRes
local expectedEvsePresentVoltageUnit = UnitSymbolType.Unit_V
local receivedEvsePresentVoltageUnit = Evcc.Get_PreChargeRes_EVSEPresentVoltage_Unit()

Evcc.Get_PreChargeRes_EVSEPresentVoltage_Value

Evcc.Get_PreChargeRes_EVSEPresentVoltage_Value()

PreChargeRes.EVSEPresentVoltage.Value 조회

Parameter-
Returnnumber
MessagePreChargeRes
local expectedEvsePresentVoltageValue = 3800
local receivedEvsePresentVoltageValue = Evcc.Get_PreChargeRes_EVSEPresentVoltage_Value()

예제

PreChargeReq 설정 및 전송

Script
local preChargeEvReady = true
Evcc.Set_PreChargeReq_DC_EVStatus_EVReady(preChargeEvReady)

local preChargeEvErrorCode = DC_EVErrorCodeType.NO_ERROR
Evcc.Set_PreChargeReq_DC_EVStatus_EVErrorCode(preChargeEvErrorCode)

local preChargeEvressSoc = 74
Evcc.Set_PreChargeReq_DC_EVStatus_EVRESSSOC(preChargeEvressSoc)

local evTargetVoltageMultiplier = -1
Evcc.Set_PreChargeReq_EVTargetVoltage_Multiplier(evTargetVoltageMultiplier)

local evTargetVoltageUnit = UnitSymbolType.Unit_V
Evcc.Set_PreChargeReq_EVTargetVoltage_Unit(evTargetVoltageUnit)

local evTargetVoltageValue = 3900
Evcc.Set_PreChargeReq_EVTargetVoltage_Value(evTargetVoltageValue)

local evTargetCurrentMultiplier = -1
Evcc.Set_PreChargeReq_EVTargetCurrent_Multiplier(evTargetCurrentMultiplier)

local evTargetCurrentUnit = UnitSymbolType.Unit_A
Evcc.Set_PreChargeReq_EVTargetCurrent_Unit(evTargetCurrentUnit)

local evTargetCurrentValue = 10
Evcc.Set_PreChargeReq_EVTargetCurrent_Value(evTargetCurrentValue)

Evcc.Send_PreChargeReq_001()

V2GTP Header

Protocol Version0x01
Inverse Version0xFE
Payload Type0x8001
Payload Length0x00000018
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:PreChargeReq>
      <s1:DC_EVStatus>
        <s2:EVReady>true</s2:EVReady>
        <s2:EVErrorCode>NO_ERROR</s2:EVErrorCode>
        <s2:EVRESSSOC>74</s2:EVRESSSOC>
      </s1:DC_EVStatus>
      <s1:EVTargetVoltage>
        <s2:Multiplier>-1</s2:Multiplier>
        <s2:Unit>V</s2:Unit>
        <s2:Value>3900</s2:Value>
      </s1:EVTargetVoltage>
      <s1:EVTargetCurrent>
        <s2:Multiplier>-1</s2:Multiplier>
        <s2:Unit>A</s2:Unit>
        <s2:Value>10</s2:Value>
      </s1:EVTargetCurrent>
    </s1:PreChargeReq>
  </s3:Body>
</s3:V2G_Message>