SECC > ISO15118-20

SECC > ISO15118-20 > ServiceSelection API

ServiceSelection Lua API reference.

ServiceSelection API

API파라미터반환
SECC.Receive_ServiceSelectionReq_001()--
SECC.Get_ServiceSelectionReq_Header_SessionID()-Byte[]
SECC.Get_ServiceSelectionReq_Header_Signature_SignatureValue()-Byte[]
SECC.Get_ServiceSelectionReq_Header_Signature_SignedInfo_CanonicalizationMethod()-String
SECC.Get_ServiceSelectionReq_Header_Signature_SignedInfo_SignatureMethod()-String
SECC.Get_ServiceSelectionReq_Header_TimeStamp()-UInt64
SECC.Get_ServiceSelectionReq_SelectedEnergyTransferService_ParameterSetID()-UInt16
SECC.Get_ServiceSelectionReq_SelectedEnergyTransferService_ServiceID()-UInt16
SECC.Get_ServiceSelectionReq_SelectedVASListSpecified()-Boolean
SECC.Get_ServiceSelectionRes_Header_SessionID()-Byte[]
SECC.Get_ServiceSelectionRes_Header_Signature_SignatureValue()-Byte[]
SECC.Get_ServiceSelectionRes_Header_Signature_SignedInfo_CanonicalizationMethod()-String
SECC.Get_ServiceSelectionRes_Header_Signature_SignedInfo_SignatureMethod()-String
SECC.Get_ServiceSelectionRes_Header_TimeStamp()-UInt64
SECC.Get_ServiceSelectionRes_ResponseCode()-ResponseCodeType
SECC.Set_ServiceSelectionRes_Header_SessionID(SessionID)SessionID(Byte[])-
SECC.Set_ServiceSelectionRes_Header_Signature_SignatureValue(SignatureValue)SignatureValue(Byte[])-
SECC.Set_ServiceSelectionRes_Header_Signature_SignedInfo_CanonicalizationMethod(CanonicalizationMethod)CanonicalizationMethod-
SECC.Set_ServiceSelectionRes_Header_Signature_SignedInfo_SignatureMethod(SignatureMethod)SignatureMethod-
SECC.Set_ServiceSelectionRes_Header_TimeStamp(TimeStamp)TimeStamp-
SECC.Set_ServiceSelectionRes_ResponseCode(ResponseCode)ResponseCode (ResponseCodeType)-
SECC.Send_ServiceSelectionRes_001()--

ServiceSelectionReq API

API파라미터반환
Secc.Receive_ServiceSelectionReq_001()--

ServiceSelectionRes API

API파라미터반환
Secc.Set_ServiceSelectionRes_ResponseCode(responseCode)responseCode (ResponseCodeType)-
Secc.Send_ServiceSelectionRes_001()--

상세 명세

SECC.Receive_ServiceSelectionReq_001

SECC.Receive_ServiceSelectionReq_001()

ServiceSelection 수신

Parameter-
Return-
MessageServiceSelection
SECC.Receive_ServiceSelectionReq_001()

Secc.Receive_ServiceSelectionReq_001

Secc.Receive_ServiceSelectionReq_001()

ServiceSelectionReq 수신

Parameter-
Return-
MessageServiceSelectionReq
Secc.Receive_ServiceSelectionReq_001()

SECC.Get_ServiceSelectionReq_Header_SessionID

SECC.Get_ServiceSelectionReq_Header_SessionID()

ServiceSelection.Header.SessionID 조회

Parameter-
ReturnByte[]
MessageServiceSelection
SECC.Get_ServiceSelectionReq_Header_SessionID()

SECC.Get_ServiceSelectionReq_Header_Signature_SignatureValue

SECC.Get_ServiceSelectionReq_Header_Signature_SignatureValue()

ServiceSelection.Header.Signature.SignatureValue 조회

Parameter-
ReturnByte[]
MessageServiceSelection
SECC.Get_ServiceSelectionReq_Header_Signature_SignatureValue()

SECC.Get_ServiceSelectionReq_Header_Signature_SignedInfo_CanonicalizationMethod

SECC.Get_ServiceSelectionReq_Header_Signature_SignedInfo_CanonicalizationMethod()

ServiceSelection.Header.Signature.SignedInfo.CanonicalizationMethod 조회

Parameter-
ReturnString
MessageServiceSelection
SECC.Get_ServiceSelectionReq_Header_Signature_SignedInfo_CanonicalizationMethod()

SECC.Get_ServiceSelectionReq_Header_Signature_SignedInfo_SignatureMethod

SECC.Get_ServiceSelectionReq_Header_Signature_SignedInfo_SignatureMethod()

ServiceSelection.Header.Signature.SignedInfo.SignatureMethod 조회

Parameter-
ReturnString
MessageServiceSelection
SECC.Get_ServiceSelectionReq_Header_Signature_SignedInfo_SignatureMethod()

SECC.Get_ServiceSelectionReq_Header_TimeStamp

SECC.Get_ServiceSelectionReq_Header_TimeStamp()

ServiceSelection.Header.TimeStamp 조회

Parameter-
ReturnUInt64
MessageServiceSelection
SECC.Get_ServiceSelectionReq_Header_TimeStamp()

SECC.Get_ServiceSelectionReq_SelectedEnergyTransferService_ParameterSetID

SECC.Get_ServiceSelectionReq_SelectedEnergyTransferService_ParameterSetID()

ServiceSelection.SelectedEnergyTransferService.ParameterSetID 조회

Parameter-
ReturnUInt16
MessageServiceSelection
SECC.Get_ServiceSelectionReq_SelectedEnergyTransferService_ParameterSetID()

SECC.Get_ServiceSelectionReq_SelectedEnergyTransferService_ServiceID

SECC.Get_ServiceSelectionReq_SelectedEnergyTransferService_ServiceID()

ServiceSelection.SelectedEnergyTransferService.ServiceID 조회

Parameter-
ReturnUInt16
MessageServiceSelection
SECC.Get_ServiceSelectionReq_SelectedEnergyTransferService_ServiceID()

SECC.Get_ServiceSelectionReq_SelectedVASListSpecified

SECC.Get_ServiceSelectionReq_SelectedVASListSpecified()

ServiceSelection.SelectedVASListSpecified 조회

Parameter-
ReturnBoolean
MessageServiceSelection
SECC.Get_ServiceSelectionReq_SelectedVASListSpecified()

SECC.Get_ServiceSelectionRes_Header_SessionID

SECC.Get_ServiceSelectionRes_Header_SessionID()

ServiceSelection.Header.SessionID 조회

Parameter-
ReturnByte[]
MessageServiceSelection
SECC.Get_ServiceSelectionRes_Header_SessionID()

SECC.Get_ServiceSelectionRes_Header_Signature_SignatureValue

SECC.Get_ServiceSelectionRes_Header_Signature_SignatureValue()

ServiceSelection.Header.Signature.SignatureValue 조회

Parameter-
ReturnByte[]
MessageServiceSelection
SECC.Get_ServiceSelectionRes_Header_Signature_SignatureValue()

SECC.Get_ServiceSelectionRes_Header_Signature_SignedInfo_CanonicalizationMethod

SECC.Get_ServiceSelectionRes_Header_Signature_SignedInfo_CanonicalizationMethod()

ServiceSelection.Header.Signature.SignedInfo.CanonicalizationMethod 조회

Parameter-
ReturnString
MessageServiceSelection
SECC.Get_ServiceSelectionRes_Header_Signature_SignedInfo_CanonicalizationMethod()

SECC.Get_ServiceSelectionRes_Header_Signature_SignedInfo_SignatureMethod

SECC.Get_ServiceSelectionRes_Header_Signature_SignedInfo_SignatureMethod()

ServiceSelection.Header.Signature.SignedInfo.SignatureMethod 조회

Parameter-
ReturnString
MessageServiceSelection
SECC.Get_ServiceSelectionRes_Header_Signature_SignedInfo_SignatureMethod()

SECC.Get_ServiceSelectionRes_Header_TimeStamp

SECC.Get_ServiceSelectionRes_Header_TimeStamp()

ServiceSelection.Header.TimeStamp 조회

Parameter-
ReturnUInt64
MessageServiceSelection
SECC.Get_ServiceSelectionRes_Header_TimeStamp()

SECC.Get_ServiceSelectionRes_ResponseCode

SECC.Get_ServiceSelectionRes_ResponseCode()

ServiceSelection.ResponseCode 조회

Parameter-
MessageServiceSelection
SECC.Get_ServiceSelectionRes_ResponseCode()

SECC.Set_ServiceSelectionRes_Header_SessionID

SECC.Set_ServiceSelectionRes_Header_SessionID(SessionID)

ServiceSelection.Header.SessionID 설정

ParameterSessionID(Byte[])
Return-
MessageServiceSelection
SECC.Set_ServiceSelectionRes_Header_SessionID()

SECC.Set_ServiceSelectionRes_Header_Signature_SignatureValue

SECC.Set_ServiceSelectionRes_Header_Signature_SignatureValue(SignatureValue)

ServiceSelection.Header.Signature.SignatureValue 설정

ParameterSignatureValue(Byte[])
Return-
MessageServiceSelection
SECC.Set_ServiceSelectionRes_Header_Signature_SignatureValue()

SECC.Set_ServiceSelectionRes_Header_Signature_SignedInfo_CanonicalizationMethod

SECC.Set_ServiceSelectionRes_Header_Signature_SignedInfo_CanonicalizationMethod(CanonicalizationMethod)

ServiceSelection.Header.Signature.SignedInfo.CanonicalizationMethod 설정

ParameterCanonicalizationMethod
Return-
MessageServiceSelection
SECC.Set_ServiceSelectionRes_Header_Signature_SignedInfo_CanonicalizationMethod()

SECC.Set_ServiceSelectionRes_Header_Signature_SignedInfo_SignatureMethod

SECC.Set_ServiceSelectionRes_Header_Signature_SignedInfo_SignatureMethod(SignatureMethod)

ServiceSelection.Header.Signature.SignedInfo.SignatureMethod 설정

ParameterSignatureMethod
Return-
MessageServiceSelection
SECC.Set_ServiceSelectionRes_Header_Signature_SignedInfo_SignatureMethod()

SECC.Set_ServiceSelectionRes_Header_TimeStamp

SECC.Set_ServiceSelectionRes_Header_TimeStamp(TimeStamp)

ServiceSelection.Header.TimeStamp 설정

ParameterTimeStamp
Return-
MessageServiceSelection
SECC.Set_ServiceSelectionRes_Header_TimeStamp()

SECC.Set_ServiceSelectionRes_ResponseCode

SECC.Set_ServiceSelectionRes_ResponseCode(ResponseCode)

ServiceSelection.ResponseCode 설정

ParameterResponseCode (ResponseCodeType)
Return-
MessageServiceSelection
SECC.Set_ServiceSelectionRes_ResponseCode()

Secc.Set_ServiceSelectionRes_ResponseCode

Secc.Set_ServiceSelectionRes_ResponseCode(responseCode)

ServiceSelectionRes.ResponseCode 설정

ParameterresponseCode (ResponseCodeType)
Return-
MessageServiceSelectionRes
local receivedSelectedServiceID = Secc.Get_ServiceSelectionReq_SelectedEnergyTransferService_ServiceID()
local receivedSelectedParameterSetID = Secc.Get_ServiceSelectionReq_SelectedEnergyTransferService_ParameterSetID()
local serviceSelectionResponseCode = ResponseCodeType.OK
Secc.Set_ServiceSelectionRes_ResponseCode(serviceSelectionResponseCode)

SECC.Send_ServiceSelectionRes_001

SECC.Send_ServiceSelectionRes_001()

ServiceSelection 전송

Parameter-
Return-
MessageServiceSelection
SECC.Send_ServiceSelectionRes_001()

Secc.Send_ServiceSelectionRes_001

Secc.Send_ServiceSelectionRes_001()

ServiceSelectionRes 전송

Parameter-
Return-
MessageServiceSelectionRes
Secc.Send_ServiceSelectionRes_001()

예제

ServiceSelectionRes 설정 및 전송

Script
local serviceSelectionResponseCode = ResponseCodeType.OK
Secc.Set_ServiceSelectionRes_ResponseCode(serviceSelectionResponseCode)

Secc.Send_ServiceSelectionRes_001()

V2GTP Header

Protocol Version0x01
Inverse Version0xFE
Payload Type0x8002
Payload Length0x00000017
PayloadPart20MainstreamPayloadID

XML Example

<?xml version="1.0" ?>
<s1:ServiceSelectionRes 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:std:iso:15118:-20:CommonMessages" xmlns:s2="urn:iso:std:iso:15118:-20:CommonTypes">
  <s2:Header>
    <s2:SessionID>0102030405060708</s2:SessionID>
    <s2:TimeStamp>639161323213909455</s2:TimeStamp>
  </s2:Header>
  <s2:ResponseCode>OK</s2:ResponseCode>
</s1:ServiceSelectionRes>