Secc.Receive_PreChargeReq_001
Secc.Receive_PreChargeReq_001()
PreChargeReq 수신
Secc.Receive_PreChargeReq_001()
SECC > ISO15118-2
PreCharge Lua API reference.
Secc.Receive_PreChargeReq_001()
PreChargeReq 수신
Secc.Receive_PreChargeReq_001()
Secc.Check_Received_PreChargeReq()
PreChargeReq.Received 확인
local receivedPreChargeReq = Secc.Check_Received_PreChargeReq()
Secc.Get_PreChargeReq_DC_EVStatus_EVReady()
PreChargeReq.DC_EVStatus.EVReady 조회
local expectedPreChargeEvReady = true
local receivedPreChargeEvReady = Secc.Get_PreChargeReq_DC_EVStatus_EVReady()
Secc.Get_PreChargeReq_DC_EVStatus_EVErrorCode()
PreChargeReq.DC_EVStatus.EVErrorCode 조회
local expectedPreChargeEvErrorCode = DC_EVErrorCodeType.NO_ERROR
local receivedPreChargeEvErrorCode = Secc.Get_PreChargeReq_DC_EVStatus_EVErrorCode()
Secc.Get_PreChargeReq_EVTargetVoltage_Unit()
PreChargeReq.EVTargetVoltage.Unit 조회
local expectedEvTargetVoltageUnit = UnitSymbolType.Unit_V
local receivedEvTargetVoltageUnit = Secc.Get_PreChargeReq_EVTargetVoltage_Unit()
Secc.Get_PreChargeReq_EVTargetVoltage_Value()
PreChargeReq.EVTargetVoltage.Value 조회
local expectedEvTargetVoltageValue = 3900
local receivedEvTargetVoltageValue = Secc.Get_PreChargeReq_EVTargetVoltage_Value()
Secc.Get_PreChargeReq_EVTargetCurrent_Unit()
PreChargeReq.EVTargetCurrent.Unit 조회
local expectedEvTargetCurrentUnit = UnitSymbolType.Unit_A
local receivedEvTargetCurrentUnit = Secc.Get_PreChargeReq_EVTargetCurrent_Unit()
Secc.Get_PreChargeReq_EVTargetCurrent_Value()
PreChargeReq.EVTargetCurrent.Value 조회
local expectedEvTargetCurrentValue = 10
local receivedEvTargetCurrentValue = Secc.Get_PreChargeReq_EVTargetCurrent_Value()
Secc.Set_PreChargeRes_ResponseCode(responseCode)
PreChargeRes.ResponseCode 설정
local preChargeResponseCode = ResponseCodeType.OK
Secc.Set_PreChargeRes_ResponseCode(preChargeResponseCode)
Secc.Get_PreChargeRes_ResponseCode()
PreChargeRes.ResponseCode 조회
local observedPreChargeResponseCode = Secc.Get_PreChargeRes_ResponseCode()
Secc.Set_PreChargeRes_DC_EVSEStatus_EVSEStatusCode(evseStatusCode)
PreChargeRes.DC_EVSEStatus.EVSEStatusCode 설정
local evseStatusCode = DC_EVSEStatusCodeType.EVSE_Ready
Secc.Set_PreChargeRes_DC_EVSEStatus_EVSEStatusCode(evseStatusCode)
Secc.Get_PreChargeRes_DC_EVSEStatus_EVSEStatusCode()
PreChargeRes.DC_EVSEStatus.EVSEStatusCode 조회
local observedEvseStatusCode = Secc.Get_PreChargeRes_DC_EVSEStatus_EVSEStatusCode()
Secc.Set_PreChargeRes_DC_EVSEStatus_EVSEIsolationStatus(evseIsolationStatus)
PreChargeRes.DC_EVSEStatus.EVSEIsolationStatus 설정
local evseIsolationStatus = IsolationLevelType.Valid
Secc.Set_PreChargeRes_DC_EVSEStatus_EVSEIsolationStatus(evseIsolationStatus)
Secc.Get_PreChargeRes_DC_EVSEStatus_EVSEIsolationStatus()
PreChargeRes.DC_EVSEStatus.EVSEIsolationStatus 조회
local observedEvseIsolationStatus = Secc.Get_PreChargeRes_DC_EVSEStatus_EVSEIsolationStatus()
Secc.Set_PreChargeRes_DC_EVSEStatus_EVSEIsolationStatusSpecified(isSpecified)
PreChargeRes.DC_EVSEStatus.EVSEIsolationStatusSpecified 설정
local evseIsolationStatusSpecified = true
Secc.Set_PreChargeRes_DC_EVSEStatus_EVSEIsolationStatusSpecified(evseIsolationStatusSpecified)
Secc.Get_PreChargeRes_DC_EVSEStatus_EVSEIsolationStatusSpecified()
PreChargeRes.DC_EVSEStatus.EVSEIsolationStatusSpecified 조회
local observedEvseIsolationStatusSpecified = Secc.Get_PreChargeRes_DC_EVSEStatus_EVSEIsolationStatusSpecified()
Secc.Set_PreChargeRes_DC_EVSEStatus_NotificationMaxDelay(notificationMaxDelay)
PreChargeRes.DC_EVSEStatus.NotificationMaxDelay 설정
local notificationMaxDelay = 0
Secc.Set_PreChargeRes_DC_EVSEStatus_NotificationMaxDelay(notificationMaxDelay)
Secc.Get_PreChargeRes_DC_EVSEStatus_NotificationMaxDelay()
PreChargeRes.DC_EVSEStatus.NotificationMaxDelay 조회
local observedNotificationMaxDelay = Secc.Get_PreChargeRes_DC_EVSEStatus_NotificationMaxDelay()
Secc.Set_PreChargeRes_DC_EVSEStatus_EVSENotification(evseNotification)
PreChargeRes.DC_EVSEStatus.EVSENotification 설정
local evseNotification = EVSENotificationType.None
Secc.Set_PreChargeRes_DC_EVSEStatus_EVSENotification(evseNotification)
Secc.Get_PreChargeRes_DC_EVSEStatus_EVSENotification()
PreChargeRes.DC_EVSEStatus.EVSENotification 조회
local observedEvseNotification = Secc.Get_PreChargeRes_DC_EVSEStatus_EVSENotification()
Secc.Set_PreChargeRes_EVSEPresentVoltage_Multiplier(multiplier)
PreChargeRes.EVSEPresentVoltage.Multiplier 설정
local evsePresentVoltageMultiplier = -1
Secc.Set_PreChargeRes_EVSEPresentVoltage_Multiplier(evsePresentVoltageMultiplier)
Secc.Set_PreChargeRes_EVSEPresentVoltage_Unit(unit)
PreChargeRes.EVSEPresentVoltage.Unit 설정
local evsePresentVoltageUnit = UnitSymbolType.Unit_V
Secc.Set_PreChargeRes_EVSEPresentVoltage_Unit(evsePresentVoltageUnit)
Secc.Get_PreChargeRes_EVSEPresentVoltage_Unit()
PreChargeRes.EVSEPresentVoltage.Unit 조회
local observedEvsePresentVoltageUnit = Secc.Get_PreChargeRes_EVSEPresentVoltage_Unit()
Secc.Set_PreChargeRes_EVSEPresentVoltage_Value(value)
PreChargeRes.EVSEPresentVoltage.Value 설정
local evsePresentVoltageValue = 3800
Secc.Set_PreChargeRes_EVSEPresentVoltage_Value(evsePresentVoltageValue)
Secc.Get_PreChargeRes_EVSEPresentVoltage_Value()
PreChargeRes.EVSEPresentVoltage.Value 조회
local observedEvsePresentVoltageValue = Secc.Get_PreChargeRes_EVSEPresentVoltage_Value()
Secc.Send_PreChargeRes_001()
PreChargeRes 송신
Secc.Send_PreChargeRes_001()
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()
0x010xFE0x80010x00000017EXIEncodedV2GMessage<?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>