SECC > DIN70121

SECC > DIN70121 > PreCharge API

PreCharge Lua API reference.

PreChargeReq API

API파라미터반환
Secc.Receive_PreChargeReq_001()--
Secc.Get_PreChargeReq_EVTargetVoltage_Value()-number
Secc.Get_PreChargeReq_EVTargetCurrent_Value()-number

PreChargeRes API

API파라미터반환
Secc.Set_PreChargeRes_ResponseCode(responseCode)responseCode (ResponseCodeType)-
Secc.Set_PreChargeRes_DC_EVSEStatus_EVSEStatusCode(evseStatusCode)evseStatusCode-
Secc.Set_PreChargeRes_EVSEPresentVoltage_Value(value)value-
Secc.Send_PreChargeRes_001()--

상세 명세

Secc.Receive_PreChargeReq_001

Secc.Receive_PreChargeReq_001()

PreChargeReq 수신

Parameter-
Return-
MessagePreChargeReq
Secc.Receive_PreChargeReq_001()

Secc.Get_PreChargeReq_EVTargetVoltage_Value

Secc.Get_PreChargeReq_EVTargetVoltage_Value()

PreChargeReq.EVTargetVoltage.Value 조회

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

Secc.Get_PreChargeReq_EVTargetCurrent_Value

Secc.Get_PreChargeReq_EVTargetCurrent_Value()

PreChargeReq.EVTargetCurrent.Value 조회

Parameter-
Returnnumber
MessagePreChargeReq
local receivedEvTargetVoltageValue = Secc.Get_PreChargeReq_EVTargetVoltage_Value()
local receivedEvTargetCurrentValue = Secc.Get_PreChargeReq_EVTargetCurrent_Value()

Secc.Set_PreChargeRes_ResponseCode

Secc.Set_PreChargeRes_ResponseCode(responseCode)

PreChargeRes.ResponseCode 설정

ParameterresponseCode (ResponseCodeType)
Return-
MessagePreChargeRes
local receivedEvTargetVoltageValue = Secc.Get_PreChargeReq_EVTargetVoltage_Value()
local receivedEvTargetCurrentValue = Secc.Get_PreChargeReq_EVTargetCurrent_Value()
local preChargeResponseCode = ResponseCodeType.OK
Secc.Set_PreChargeRes_ResponseCode(preChargeResponseCode)

Secc.Set_PreChargeRes_DC_EVSEStatus_EVSEStatusCode

Secc.Set_PreChargeRes_DC_EVSEStatus_EVSEStatusCode(evseStatusCode)

PreChargeRes.DC_EVSEStatus.EVSEStatusCode 설정

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

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.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:din:70121:2012:MsgBody" xmlns:s2="urn:din:70121:2012:MsgDataTypes" xmlns:s3="urn:din:70121:2012:MsgDef" xmlns:s4="urn:din:70121:2012:MsgHeader">
  <s3:Header>
    <s4:SessionID>D9226D98FD4F4A5E</s4:SessionID>
  </s3:Header>
  <s3:Body>
    <s1:PreChargeRes>
      <s1:ResponseCode>OK</s1:ResponseCode>
      <s1:DC_EVSEStatus>
        <s2:EVSEIsolationStatus>Valid</s2:EVSEIsolationStatus>
        <s2:EVSEStatusCode>EVSE_Ready</s2:EVSEStatusCode>
        <s2:NotificationMaxDelay>0</s2:NotificationMaxDelay>
        <s2:EVSENotification>None</s2:EVSENotification>
      </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>