文稿分析講稿bei-ch configuration data definition v_第1頁
文稿分析講稿bei-ch configuration data definition v_第2頁
文稿分析講稿bei-ch configuration data definition v_第3頁
文稿分析講稿bei-ch configuration data definition v_第4頁
文稿分析講稿bei-ch configuration data definition v_第5頁
已閱讀5頁,還剩304頁未讀 繼續(xù)免費閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)

文檔簡介

BeijingConfigurationDataDefinition配置數(shù)據(jù)定 RevisionERGTransitRevision30JulyEngineeringProjectKamilaRichardLiuZhongHistory修訂記版日Description描述作基于MASS-00070AlMarsh/JanetteSmithLeonJones后的修AlAlAlJamesShaneJames增加xsdJamesShaneJamesKamila加入DevCdMifareLite_t和KamilaReplaceDevCdMapsRecord_twithDevCdLookup_t.AddedexampleonlyXML.ModifiedstructureanduseofDevCdMatrix_t.用DevCdLookup_t替換DevCdMapsRecord_tXML中加入例子修改DevCdMatrix_tKamilaCorrectedformattingissueswithKamilaAddeddiagramtosupportFareSchemaKamila版日Description描述作RemovedDeviceUpdatedallpayloadstogenericdefinitions.Addedconcreteimplementationofgenericstructures.AdditionalationaddedtoLookupandMatrix.Movedthesegenericsectionstothebeginningofthesection3.IncludedclockandfarecodeonFareSchemarelationships對LookupMatrix增加了另外的文檔。將這些一般性章節(jié)KamilaUpdatesforShaneAddedACCCDMandLCrelationshipsdiagramand增加了ACCCDMLCAddedCDParametersinAppendix在附錄ACDDefinednewstructureAttributeDefinitionsforLookupswheretheoutputiscomplexi.e.morethanoneKamilaAddedacalendartoFigure2todenotesignificanceofthecurrentdate.SimpleformattingchangestoKamilaAddedattributenamesofpayloadsto增加了DevCdFile_tKamilaUpdatestosection1.Rewritesofsection2,3andUpdatestodesignpatterns1FurtherpayloadsaddedandrenamedDevCdTimeBands_ttoDevCdDayTypes_t.UpdatestoXSDandXML增加了充值方式并將DevCdTimeBands_tDevCdDayTypes_t.。更新了XSDXML。JamesHortonKamilaAddedCorrectedKamilaReviewedtheChinesetranslationofthis,inparticularSection3andSection4.Ren版日Description描述作UpdatedthedescriptionofsomedatastructuresinSectionChangedAppendixAtoPortrait,andFixedthesizeofFigure1.把附錄A1RenAttributeId_tchangedtoUpdatedSection2.5tomatchnotationusedintheCDAccessorFunctionsUpdatedChinesetranslationstoSectionUpdatedSection3tomatchchangestotheXSDattributedefinitionstructures.UpdatedAppendixAwiththelatestUpdatedAppendixBwiththelatestexampleAttributeId_t改為更新2.5以滿足在CD器函數(shù)使用的表達式2.6的中文翻譯3節(jié)以滿足XSD屬性定義結(jié)構(gòu)的改變。用的XSD更新附錄A。用的實例XML更新附錄BJamesHortonKamilaBartschRenJunAddedDevCdBatchNumberBlacklisttoLCSCDandtothe添加DevCdBatchNumberBlacklist到LCSCDXSDIncorporatedCdAttributeName_tintotheCDLookup將結(jié)合到CDLookupKamilaAddedmissingbatchNumberBlacklisttranslationinSection4.1.1中關(guān)于batchNumberBlacklistRenAddedadditionalinformationaboutretrievinganCdAttributeId_tfromaCdAttributeName_t.添加了額外的關(guān)于從CdAttributeName_tChangedalloccurrencesofCDAttributeto將所有的CDAttribute改為CdAttributeKamilaUpdatedXSDandXMLexample–addeddi–MatchedXMLinSection2.3–2.5tomatchupdatedattributedefinitionslistedinBEI-00040–AddedfurtherclarificationtoSection4.2DevCdManifest_tandSection4.23DevCdMac_tandchangedcdSecurityDiversifierstobasetypeU16_t4.2DevCdManifest_t4.23DevCdMac_t的更詳細說明,將cdSecurityDiversifiersU16_tJames版日Description描述作UpdatedXMLJamesChangestosection1.4Referencesandcross-referenceJ.Bluhm-AddedSection5fromBEI-00040andupdatedModifiedDevCdCardBatchNumberBlacklisttomatchnew修改了DevCdCardBatchNumberBlacklistModifieddescriptionfor修改了DevCdSamBlacklist_tChangedformatVersiontoCdPayloadFormatVersion_tandcdVersiontoCdPayloadDataVersion_t.將formatVersion改成CdPayloadFormatVersion_t,cdVersion改成CdPayloadDataVersion_t。AddedarrayandcountnotationforinputstoLookup給LookupAddedCDDistributionKamilaAddedMACingCorrectedreferencestoSectionUpdatestoCDDistributionRemoved刪除DevCdMac_tReplaceddeviceTypewith用hardwareType替換deviceType。UpdatedXSDandXMLexampleJamesHortonKamilaVersionforReleaseJamesFixedMitchDefinedMACRemoveobsoletereferencestocrypto定義MACMitch版日Description描述作RemoveproductPassengerFeedbackListfromXML.CorrectationforGetDeviceDisplayString().Addmissingclosingintags.AddedGetPassengerTypeNameinterfacefunction.RemovedemptysectionheadingCardTypes.XML刪除productPassengerFeedbackList。修正關(guān)于增加接口函數(shù)GetPassengerTypeName。Kamila16MACwithpaddingmethodMitch21Notedequivalences/differencesbetweenISO/IEC9797-1MACalgorithmandthealgorithmdefinedintheChineseConstructionMinistrystandardApplicationtechnologyforconstructioncauseICcard(NationwideExposureDraft).注釋了ISO/IEC9797-1MAC算法和中國建設(shè)部IC卡應(yīng)用技AddedreferencestoBEI-00022_APPC_CHDeviceCardProcessingSpecificationAppendixC.–Mitch03MinorupdatesforTechNoterelease(BEI-00017_CH-Shane30SeeBEI-00017_CHTNR4-008CompiledUpdates(4.7)forKamila04July5.1Conventions–addedA.1LCSCD-removedcommentinA.1LCSCD-XMLShane10July4.9DevCdCalendar_t–corrected4.9DevCdCalendar_t-更新說明Minorformatupdates.Kamila18JulyA.1Removedbasetypesdefinitionsandreplacedwithreferencetosysbasetypes.xsd.A.1刪除basetype定義,用sysbasetypes.xsd的參考文件AddHardwareTypeListto將HardwareTypeListXSDKamila版日Description描述作24JulyCorrectedfarePatternswiththeadditionofsalesPatternProductTypestosupportthenonunquie改正farePatternssalesPatternProductTypesRemovedGetCardIssuableProductTypesBatchNumbers,5.21.15GetCardIssuableProductTypesCount,1.14Kamila30VersionforReleaseModifiedSectionChangedtheChineseversionoftheheadingofSectionModifiedSectionModifiedSectionChagedActivationDateTimetoActivationDatein2.52.5節(jié)中的ActivationDateTimeStoneTableofIntroduction引 Purpose目 Scope范 Terminology術(shù) CDManagementCD的管 Distribution配 Security安 CDActivationCD激 Versioning版本管 CDDistributionScenariosCD分發(fā)場 MACingProcessandFileNamingConventionMAC過程和文件命名約 MACalgorithmMAC算 CDLookupProcessNotationCD查找過程符 FareSchema車費方 FareSchemaExample費率方案實 Scenario場景示 DataStructureDesignPatterns數(shù)據(jù)結(jié)構(gòu)設(shè)計模 LCSConfigurationData線路配置數(shù) Fields字 Fields字 Fields字 Fields字 Fields字 Fields字 Fields字 Fields字 Fields字 Fields字 Fields字 Fields字 Fields字 Fields字 Fields字 Fields字 Fields字 Fields字 Fields字 Fields字 Fields字 Fields字 Fields字 CDInterfaceFunctionsCD接口函 SystemParameters系統(tǒng)參 ServiceProviderParameters服務(wù)提供商參 CardBlacklist卡 ProductBlacklist產(chǎn)品 SAMBlacklistSAM FareTables票價 FarePatterns票價模 FareCodes票價代 DayTypes日期類 ProductTypeParameters產(chǎn)品類型參 Participant參與 Names名 MifareParametersMifare參 AttributeDefinitions屬性定 HighSecurityBlacklist高安全級 Locations位 DeviceParameters設(shè)備參 Manifest BusinessRules業(yè)務(wù)規(guī) TimeCodes時間代 PassengerTypes旅客類 CardBatchWithdrawList卡批次回收 Appendix XSDand LCSCD ExampleLCSCDXML ListofTables表格Table1:Acronyms表1:縮寫 Table2:CDDistributionNormalScenarioDescription表2:CD分發(fā)正常場景說 TABLE3:LCSCDXMLFILENAMINGCONVENTIONS表3:LCSCDXML文件命名約 Table4:ProductInformation表4:產(chǎn)品信 Table5:Calendar1–SingleJourney,ReturnandOne-daytickets表5:日歷1–單程、往返和一日 Table6:Calendar2–SectionBasedtickets表6:履歷2-根據(jù)區(qū)段劃分的車 Table7:DayTypes表7:日期類 Table8:FarePattern1表8:模式 Table9:FareCodeTable1–StationtoStationmatrix表9:費用代碼表1-站到站 Table10:FareCodeTable2–SectiontoSectionmatrix表10:費率代碼表2–區(qū)段到區(qū)段矩 Table11:FareTable1–StationtoStationpricesforSingletravel表11:費率表1–、 ListofFigures圖表Figure1:LCSCDXMLfileDistributionandassociatedactions圖1:LCSCDXML文件的配發(fā)及相關(guān)措 Figure2:CDDistributionNormalScenario圖2:CD分發(fā)正常場 Figure3:CDChangesBroughtinwithoutFutureActivation圖3:沒有將來激活而進行的CD改變.26Figure4:FareProcessingRelationships圖4:費率處理關(guān) Introduction引ThisisoneofasetofsthatdescribetheBeijingAFCClearingCentre(ACC)interfacespecifications.ThesetofsBEI-00017_CHConfigurationDataDefinitionBEI-00019_CHMifareUltralightCardDataDefinitionMifareUltralightBEI-00020_CHMifareStandard1KCardDataDefinitionMifare1KBEI-00021_CHUsageDataDefinitionBEI-00022_APPC_CHDeviceCardProcessingSpecificationAppendixC設(shè)備票卡處理規(guī)范附錄CBEI-00033_CHBaseTypeDataDefinitionBEI-00039_CHACCtoLCInterfaceACCLCBEI-00040_CHSystemInitialValuesBEI-00054_CHSAMInterfaceSpecificationSAMPurposeThepurposeofthisistodescribetheLineCentreSystemConfigurationData(LCSCD)payloadsusedintheprocessingofYiPiaoTongtickettypesfortheAFCofBeijingMassTransitNetworkManagement&SupportProject.本文件旨在描述線路中心系統(tǒng)配置數(shù)據(jù)(LCSCD)的有效負載,此負載可用于網(wǎng)ScopeThescopeofthisislimitedtodefiningLCSCDfortheYiPiaoTongsystem(includingblacklist).ThisrevisionincludesadescriptionofthecompleteCDfileformatthatneedstobetransmittedtoaLineCentreSystem(LCS).ThepayloadformatpresentedisalogicalrepresentationofthephysicalformthatwillbeconsumedbytheLCS.ThephysicalformatinXMLandisdescribedbyXSDs.Theidentifieseachtypeofpayloadthatneedstobesupported,andspecifiesthepayloadstructures.本文件僅對一票通系統(tǒng)(包括)的LCSCD進行定義此版本還對需發(fā)送至線路中心系統(tǒng)(LCS)的所有CD文件格式進行了描述。表述的有效LCSXML且用XSDs來描述。TerminologyTable1listsabbreviations,termsanddefinitionsusedinthis表Table1Table1Acronyms1MessageAuthenticationTransportNetworkLayoutofAFCnetwork.AFC網(wǎng)絡(luò)分布ListingofcardordeviceidentifierswithanassociatedblockingorunblockingactionthatneedstobeperformedonacardordevicebytheBlockingisthetermforthesettingofaflagonthechipofthesmartcard,whichpreventsthecardbeingused.Thisissetataloadorusagedevicethathasthecardidentifierinitsblacklist.Oncethecardhasbeenblocked,itsidentifiercanberemovedfromtheblacklist,thusreducingthesizeofthelisttobesenttoalldevicesandsimplifyingblacklistmanagement.Thecardisthennotoperationalandnolongerneedstobeidentifiedintheblacklist.CDThistermreferstoanitemofCDwithauniqueidentifierandasetofattributesthatdefinetheSameas同SeeCDThistermreferstotheCDxmlfilesandcanalsobeusedinterchangeablytorefertoagroupofrelatedCDObjects指CDxml文件,也能用于CD對象Removingtheblockingflagonthechipofthesmartcard,resultinginthecardbeingabletobeusedagain.AlsoknownasReferencesThefollowingmaterialsaretobeusedinconjunctionwithorarereferencedbythisBEI- MifareUltralight卡數(shù)據(jù)定義BEI- Mifare1K卡數(shù)據(jù)定義BEI- BEI- BEI- 設(shè)備票卡處理規(guī)范附錄BEI- BEI- BEI- BEI- BEI- BEI- Informationtechnology–Securitytechniques–MessageAuthenticationCodes(MACs)– Firstedition1999-12-15CitiesandTownsConstructionTradeStandardofthePeople’sRepublicofChina Issuedby:ConstructionMinistryofthePeople’sRepublicofChina中民城鎮(zhèn)建設(shè)行業(yè)標建設(shè)事業(yè)IC 卡應(yīng)用技術(shù) 全國征求意見稿)中民建設(shè) 發(fā)CDManagementCD的管DistributionTheLCSCDfileisdeliveredtoeachLCSviaIBMWebsphereMQasthedeliverymechanismfortheLCSCDXMLfile.SeeBEI-00039_CHforfurtherdetailsonLCSCD文件由IBMWebsphereMQ作為LCSCDXMLLCS。關(guān)于通信的詳細資料,見BEI-00039_CHACC到LC接口ACCTheLCSCDXMLfiledistributedtoeachLCSfileshallbeacompletesetofLCSCDforallthedevicetypesintheAFC.EachtimenewLCSCDcontentisdistributedtotheLCSdevices,thedeviceswillgenerateatransactiontoindicatetotheACCStheversionofLCSCDtheyareoperatingwith.LCSCDXML文件應(yīng)為AFCLCS配置數(shù)據(jù)。每次LCSLCS設(shè)備時,設(shè)備將生成一個交易,向ACCSLCS所使116LCSCD235451TheACCsendstheCDtotheLCSviaMQ2AnewLCSCDXMLfileisretrievedbytheLCS收到一個新的LCSCDXML3TheLCSprocessestheLCSCDandforwardsthecontentsofLCSCDdowntoitsSCLCS處理LCSCD并轉(zhuǎn)發(fā)LCSCD的內(nèi)容給它的SC4TheSCprovidesthedeviceswiththeLCSSC給設(shè)備提供LCS5Thedevicesgenerateatransaction(TXN_EVENT_CD_VERSION_STATUS)toindicatetheofLCSCDinuseonthedeviceandispropagatedbackuptothe設(shè)備產(chǎn)生一個交易(TXN_EVENT_CD_VERSION_STATUS)以表明設(shè)備上使用LCSCD的版本,并且回6TheTXN_EVENT_CD_VERSION_STATUStransactionispropagatedbackuptoACCviaFigure1LCSCDXMLfileDistributionandassociatedactions1:LCSCDXML文件的配發(fā)及相SecurityTheACCSwillapplyaMACtotheLCSItistheresponsibilityoftheLCStoverifytheauthenticityandintegrityoftheLCSCDreceivedfromtheACCSbyvalidatingtheMAC.ItisthentheresponsibilityoftheLCStotransmitthecontentoftheLCSCDtotheirdevicesinasecurefashion,ensuringsecrecyandintegrityindependentlyoftheMACdescribedinthis TheLCSmayaugmenttheLCSCDwithspecificparametersrequiredbytheirdevices.TheLCSmayaltertheformatoftheLCSCDto modatetheirdeviceconstraints.NotethattheLCS’salterationofthedatawillinvalidatetheMAC.ACCSLCS配置數(shù)據(jù)上使用MAC(信息認證代碼)。LCS負責驗證MACLC配置數(shù)據(jù)的真實性及完整性。LCSLCS配置數(shù)據(jù)中的內(nèi)容安全地(確保安全性及完整性)發(fā)送至其設(shè)CDActivationCDTheLCSCDXMLfilecontainsinformationonCDActivationtoindicatewhentheLCSCDneedstobeinusebytheAFCdevicetypes.LCSCDXMLCDAFCThemanifestpayloadwithintheLCSCDXMLfileindicatesthedatewhenthisLCSCDisexpectedtobeactivewithintheAFCsystem.ThisfieldisknownastheCDActivationDateandidentifiedwiththeattributenamecdActivationDate(See5CDInterfaceFunctionsCD接口函數(shù)).置數(shù)據(jù)在AFC系統(tǒng)預(yù)計被激活的日期。此字段即為CDActivationDate(配置數(shù)據(jù)激活日期/時間),屬性名為cdActivationDate。AdateinthepastindicatesthatthisLCSCDshouldbeimmediayactiveinAFCsystem.EachLCSshouldforwardthedifferencesincontentbetweentheLCSCDthattheirdevicescurrentlyhavecomparedtotheLCSCDthatwasreceivedbytheLCSasquicklyaspossible.AFCLCSCDLCS應(yīng)將當前設(shè)備的LCSCD與接收到的LCSCD內(nèi)容中不同部分盡可能快地發(fā)送至其設(shè)備上。AdateandtimeinthefutureindicatesthatthisLCSCDshould eactiveintheAFCsystematthespecifieddate.LCSAFC系統(tǒng)內(nèi)激ItistheresponsibilityoftheACCStodeliverthefutureactivationLCSCDXMLfilestoeachLCSatleastonedaybeforethefutureactivatedate.ItistheresponsibilityofeachLCStoforwardtotheirdevicesthedifferencesincontentbetweenthecurrentLCSCDandthefutureLCSCDXMLfilesuchthattheirdeviceswillbeupdated.LCSLCSLCS配置數(shù)據(jù)之間的差異發(fā)送至其設(shè)備上,以使ThefragmentofLCSCDXMLshownbelowindicatesthelocationofthecdActivationDateattributeasafieldwithinthecdInformationattributewhichiswithinthemanifestpayload(SeeManifestfunctioninSection5CDInterfaceFunctionsCD接口函數(shù)).LCSXMLcdActivationDate是有效加載表中屬性cdInformation內(nèi)的一個字段。<manifestcdPayloadId="88"cdPayloadDataVersion="1"<lookupinClass="CdAttributeId_t"<in<lookupinClass="CdAttributeId_t"<in<in<out<in<in<out>2006-04-<inThecdActivationDateattributeisretrievedbycallingtheCDInterfaceFunctionsCD接口函數(shù).TheCDInterfacefunctionsusetheCDLookupProcessNotationCD查找過程符號describedinsection2.8.CDCDInterfaceFunctionsCDcdActivationDate屬性。CD器屬性接口函數(shù)使用了在2.8說明的CD查找過程表達式。VersioningTheLCSCDXMLfilecontainsthecompletesetofLCSCDforalldevicetypes.ThiswillallowtheLCStoprovidenewdevicesconnectingtotheLCSwithalltheLCSCD.TheLCSCDXMLfilecontainsinformationonversioningtoallowtheLCStocomparethepayloadsontheirdevicetypeswiththepayloadwithintheLCSCDXMLfile.ThiswillallowtheLCStoonlysendthedifferencesThemostsignificantversionnumberisthecdSetVersionattributeinthemanifestpayload.LCSXMLLCS可以將其設(shè)備類型的有效加載表與LCSXMLLCS可以僅發(fā)送差最重要的版本號是有效加載表內(nèi)的cdSetVersionThevalueofthecdSetVersionattributeissynchronisedwiththeACCSCDversion.ThisvalueisreportedintheheaderofeachtransactiongeneratedbydevicesHdr_tinBEI-ItistheresponsibilityoftheLCStoensurethisnumberiscorrectlyreportedbydevicetypesintheUsageData(UD).Thereisalsoaversionnumberforeachpayload,indicateasanxmlattribute.TheXMLfragmentbelowshowsthatthisfareTablespayloadhasaCDversionof1andisforalldevicetypes.cdSetVersion屬性的值與ACCS的配置數(shù)據(jù)版本同步。由設(shè)備生成的所有交易頭文件內(nèi)均記錄有此值(見BEI-00021_CH中的 xmlXML片段顯示了,有效加載項fareTables1且適用于各種設(shè)備類型。<fareTablescdPayloadId="18"cdPayloadDataVersion="1"deviceType="010002001F003D003E00">Themanifestindicatesalistofpayloadidsandversionforeachdevicetype.Forexample,theexampleXMLshownbelowindicatesamanifestpayload.ItshowstwopayloadsarerequiredbythegateandtherespectivecdPayloadDataVersionandIDXML片段cdPayloadDataVersion及cdPayloadFormatVersion。<manifestcdPayloadId="88"cdPayloadDataVersion="1"cdPayloadFormatVersion="1"><lookupinClass="CdAttributeId_t"<in<lookupinClass="HardwareType_t"<incomment="ERGBeijing<lookupinClass="CdAttributeId_t"<in<output<itemcomment="calendars<itemcomment="cdPayloadDataVersion<itemcomment="cdPayloadFormatVersion<itemcomment="fareTables<itemcomment="cdPayloadDataVersion<itemcomment="cdPayloadFormatVersionTheCDInterfaceprovidesfunctionsforretrievingdatastoredinstructures,withouthavinganyassumedknowledgeaboutthedatastructureused.Ifthestructureisanarray,anindexisrequiredasaninputtothefunction.CD接口提供了函數(shù)來獲取保存在結(jié)構(gòu)中的數(shù)據(jù),而不用過于考慮使用的數(shù)據(jù)結(jié)構(gòu)。如果結(jié)U16_tpayloadDetailsCount=GetPayloadDetailsCount(5001)CdPayloadId_tpayloadId=GetPayloadDetailsPayloadId(5001,0)ThisversioninformationforeachpayloadcanbeusedtodeterminewhatsetofpayloadsneedtobeupdatedinthedevicesmanagedbyeachLCS.ItisnotnecessaryfortheLCStoupdateeachdevicewiththelatestLCSCDXMLfile.Bycomparingthepayloaddetailsinthemanifestforeachdevicetypewiththepayloaddetailspresentoneachdeviceofthesamedevicetype,theLCSwillknowwhatpayloadsineachdeviceneedtobe各有效加載項的版本信息可用于確定需要更新什么有效荷載集合到各LC管理的設(shè)備內(nèi)。LCS不必用的LCSCDXML文件更新每個設(shè)備。通過將中每個設(shè)備類型有效荷載明細與存在于相同設(shè)備類型的設(shè)備上的有效荷載明細相比較,LCS將可以知道每個設(shè)備上CDDistributionScenariosCDTherearevariousCDDistributionscenarios.ThesescenariosdiscusstheimportantfieldsofthemanifestsectionoftheLCSCDXMLfile.ThefieldsarecdSetVersion,futureCdSetVersionandcdActivationDate.SeetheManifestfunctionsinSection5CDInterfaceFunctionsCDfortheassociatedAPI.有幾種CD分發(fā)場景。這些場景討論了LCSCDXML文件中有效荷載的重要字段。這些字段是cdSetVersion,futureCdSetVersion和cdActivationDate。相關(guān)的函數(shù)見5CDInterfaceFunctionsCD接口函數(shù)中的函數(shù)。TheLCSCDXMLfilenamecontainsthevaluesofgenerationIdandcdSetVersionintheform“generationId.cdSetVersion”.NotethechangesingenerationIdandcdSetVersioninred.SeeSection2.6MACingProcessandFileNamingConventionfordetailsaboutthefilenameconventionoftheLCSCDXMLfile.LCSCDXMLgenerationId和cdSetVersion“generationId.cdSetVersiongenerationIdcdSetVersion的改變用紅字標出。關(guān)于LCSCDXML文件名轉(zhuǎn)換的細節(jié)見2.6MACingProcessandFileNamingFigure2describesthenormalCDdistributionscenario.AdescriptionofthisscenarioiscontainedinTable2.圖Figure2CD分發(fā)場景。該場景的詳細說明在表Table2CCFFigure2CDDistributionNormalScenario2:CDTable2CDDistributionNormalScenarioDescription2:CD日說1stOctThecurrentCDSetisgeneratedanddistributedasfileLCSCD19.1.Atthispoint,nofutureCDSetexists.Thelatestblacklistdataisincorporatedintothefile.當前的CD集合生成及分發(fā),文件為LCSCD19.1。這時,沒有將來集合存在。的2ndOctAcurrentCDSetandafutureCDSetaregenerated.ThefutureLCSCDisdistributedwiththecurrentLCSCD.ThelatestblacklistdataisincorporatedwithinfileLCSCD20.1(current).NofurtherupdateshavebeenmadetofileLCSCD20.1.CDCD集合生成。將來的LCSCD和當前的LCSCD一起分發(fā)。的數(shù)據(jù)合并到(當前的)文件LCSCD20.1中。AnychangestotheblacklistpayloadswillbereflectedinthecdPayloadDataVersionxmlattributeandinthemanifestpayloaddetails.有效荷載的任何變化將反映到cdPayloadDataVersion的xml屬性和有效荷3rdOctAsubsequentblacklistupdate.ThegenerationIdhasbeenupdatedtoshowthatLCSCDwasregeneratedwiththelatestblacklistsThecdSetVersionhasnotchangedasnoCDdatahaschanged.ThefutureLCSCDXMLfileisalsosentforconsistency.后續(xù)的更新。generationId也將更新,以顯示LCSCD隨著的而重新4thOctAsubsequentblacklistupdate.ThecdActivationDatehasarrivedforthefutureLCSCD..TheFutureLCSCDXML21.2 esCurrent(cdActivationDate=Now),andwasregeneratedtoincludethelatestblacklists.NofutureCDsetexistsatthis后續(xù)的更新。將來的LCSCD的cdActivationDate達到。將來的LCSCD21.2變成當前的(cdActivationDate=現(xiàn)在),并且已經(jīng)重新生成含有的。這CD集合存在。Figure3showsanupdatetotheLCSCD.ThisscenarioisidentifiedbytheincrementinboththegenerationIdandthecdSetVersion.ThisscenarioallowstheACCStocorrectproblemsintheactiveCDSetimmediaybyreplacingitwithanotherCDSetwithoutwaitingforafuturedate.圖Figure3顯示了一個LCSCD更新。該場景表現(xiàn)為generationId和thecdSetVersion都ACCSCD集合替換它,而立即修正激活CD集合的問題4thOct5thOctCLCSCDfutureCdSetVersion=0CLCSCDfutureCdSetVersion=0CCFFigure3:CDChangesBroughtinwithoutFutureMACingProcessandFileNamingConventionMAC過程和文TherewillbeoneXMLfilecontainingthecurrentCDandlatestblacklist一個XML文件含有當前CD和的數(shù)據(jù)。TherewillbeoneXMLfilecontainingthefutureCD.XMLCD。TheXMLfilewillnotcontainwhitespacebetweenXMLtags(e.g.nopretty-printformattingsuchasspacesortabsornewlinecharactercombinations).XML文件在XML之間不能存在空白字符(如,不能有排版格式,空格符或制表符或AnexampleofcorrectlyformattedXMLsuitablefortheMACingprocessisshown一個格式正確的可以用于MAC處理的XML<A><B>somevalue</B><C><D>anotherAnexampleofincorrectlyformattedXMLisshown<B>some<D>anotherTheoutputofthegenerationandMACingProcesswillproduceone(current)ortwo(currentandfuture)XMLfilesnamedaccordingtotheconventionshownbelow.MAC處理將處理一個(當前)或兩個(當前和將來)XML文件,它們命名AnexampleofavalidLCSCDXMLfilenameisshown一個有效的LCSCDXML ThefieldsaredefinedinTable字段在表Table3Table3LCSCDXMLFileNamingConventions3:LCSCDXML字說TheuniqueGenerationIdassignedbyCDGforthegenerationrequest(U16_t)representedindecimale.g.25CDG生成賦值的唯一生成Id要求表示為(U16_t)ThisnumberincrementseachtimeagenerationrequestisreceivedbyCDGfromeithertheCDAorBlacklistSubsystem.CDG每收到一個生成請求,無論來自CDA還是子系統(tǒng),該數(shù)TheuniqueCDSetVersionassignedtotheCDSetthatisbeinggenerated(U16_t)representedindecimale.g.1CDCD集合版本表示為(U16_t)的十進制,1ThisnumberincrementstomatchtheCDSetbeingThecurrentandfutureXMLfileswillhavethesamegenerationIdbutadifferentcdSetVersionIdXML文件可以有相同的generationId,但是有不同的cdSetVersionId。ThefuturecdSetVersionwillalwaysbeoneormoregreaterthanthecurrentcdSetVersion將來的cdSetVersion將總是比當前的cdSetVersion大一或TheKeyNumberusedforgeneratingtheCDMAC(KeyNumber_t)representedasafourdigithexadecimalstringe.g.0007用來生成CDMAC(KeyNumber_t)的密鑰號表示為一個四個數(shù)字的十0007。TheVersionoftheKeyNumbergeneratingtheCDMAC(KeyVersion_t)representedasafourdigithexadecimalstringe.g.用來生成CDMAC(KeyNumber_t)的密鑰號版本表示為一個四個數(shù)字0029。ThecalculatedMessageAuthenticationCode(char[4])producedbythesecuritysubsystemrepresentedasaeightdigithexadecimalstringe.g.A2B4C6D8十六進制字符串,如A2B4C6D8SeethedefinitionofthebasetypesKeyNumber_tandKeyVersion_tinBEI-基本類型KeyNumber_t和KeyVersion_tBEI-00033_CHMAC MACTheCDMACwillbecalculatedasCDMACComputetheSHA-1hashoftheentirecontentsoftheCDXML計算CDXML文件全部內(nèi)容的SHA-1ComputetheMACoverthehashfromstep1),usingISO/IEC9797-1,withablockcipherofDEA,paddingmethod1,MACalgorithm3,andMAClengthof32bits.1利用ISO/IEC9797-1,通過DEA鎖定,補位方法1,MAC算法3和32位MAC,根據(jù)第一步的哈希計算MAC。TheMACkeywillnotbe不發(fā)散MACCDLookupProcessNotationCDTheLCSCDisformattedinXML.ToprocesstheLCSCDthedevicetypeswillneedtoprovideasetofinputvaluestoobtainanoutputofoneormorevalues.ThisprocessisknownasaCDLookup.LCXMLLC配置數(shù)據(jù),設(shè)備需提供一套輸入值以獲得一個或多個輸出值。此處理即為配置數(shù)據(jù)Lookup.AsimplenotationhasbeendescribedtoindicatetheCDLookupEachlookupisspecifiedfromtheroottagoftheXML<LCSCD>howeverthe<>isnot<>Nextisoneoftheallowablepayloadnames,whichisachildtagof<LCSCD>.Thefullstopisusedtoindicateachildtag.Forexample,the<manifest>payloadisachildtag<LCSCD>.Thusthenotation<manifest>是<LCSCD>的一個子標識符。因此,表示法為:Eachpayloadstartswithachild<lookup>tag.Each<lookup>tagconsistsofoneormorechild<input>tags.Thedatatypeofthe<input>isspecifiedintheinClassxs:attributeandcanbeusedfordatavalidationandreportingpurposes.子<input>標識符組成。<input>inClass屬性內(nèi)規(guī)定,可用于數(shù)據(jù)的驗證及1Thisstepissimilar,butnotidenticaltosectionandChart-9.2oftheChineseConstruction,as這一步與中國建設(shè)部的《建設(shè)事業(yè)IC卡應(yīng)用技術(shù)(征求)》標準中9.2章的節(jié)相似,InitialvalueinChart-9.2oftheChinesestandardisallzeros(asper“1ststep”ofthatD1,D2etcistheSHA-1hash(contraryto“2ndstep”oftheChinesestandard,whichspecifiesCLA,INS,P1,P2,Lcetc).-D1,D2等是哈希(與標準的“第二步”指定的CLAINS,P1P2Lc等相反)TheCDMACusesISO/IEC9797-1paddingmethod1(becausethehashisafixedlength),whereastheChinesestandardspecifiestheequivalentofpaddingmethod2.-CDMAC使用ISO/IEC9797-11(因為哈希的長度是固定的),2KMAandKMBintheChinesestandardareISO/IEC9797-1KandK’-在標準中,KMAKMB分別是ISO/IEC9797-1KK’Each<input>tagconsistsofasinglechild<in>tagthatindicatesavaluewithinthedatatype.Itisthisvaluethatasearchismadeon.Squarebrackets[]areusedtoindicatethatasearchisbeingperformedtofindamatchingvalue.WhentheinputdatatypeisaCdAttributeId_t,theaccessorfunctionCD.GetAttrId()isfirstusedtoretrievethenumericalvalueoftheCdAttributeName_t.CdAttributeId_tCD.GetAttrId()NotethereisdataintheLCSCDXMLthatallowsaCdAttributeName_ttobeturnedintoanCdAttributeId_tvalue.See4.3DevCdAttributeDefinitions_tand5CDInterfaceFunctionsCD接口函數(shù).注意,LCS配置數(shù)據(jù)XML內(nèi)具有相應(yīng)數(shù)據(jù),可將CdAttributeName_t名稱轉(zhuǎn)換為一個CdAttributeId_t4.3DevCdAttributeDefinitions_tBEI-000405CDInterfaceFunctionsCD接口函數(shù)。Ifamatchisfound,thentheprocessingmovestothesiblingtagwhichmaybeanotherlookup<lookup>,amatrixlookup<matrix>,asimpleoutput<output>/<out>orastructuraloutput<output>/<structure>/<item>.Navigatingasiblingnodefollowingamatchisindicatedbyadash“–“symbol.<matrix>,一個簡單的輸 或一個結(jié)構(gòu)輸Forexample,aCDLookupforthevalueoftheCdAttributeName_tcdActivationDateisindicatedasshownbelow.例如,一個CdAttributeName_t值為cdActivationDate的CDLookupcdActivationDateWhentheoutputisanarrayofvalues,returningtheentirearraycanbeindicatedwithsquarebrackets“[]”afterthe<out>tag.HardwareType_thardwareType=0100//GateAttimesitisnecessarytoreturnthesetofinputs.ThesamenotationisHardwareType_thardwareTypes[100]=Todeterminethenumberofinputsreturned,acountisdforeachinputinterfacefunction.Thenotationisasfollows:U16_tcount=Thesamenotationappliestomatrices,wheretherowandcolumnvaluescanbeFareCode_tfc[100]=LCSCD.fareTables.lookup.input.in[fareTableId]-lookup.input.in[CD.GetAttrId("fareTableMatrix")]-FareSetId_tfs[100]=LCSCD.fareTables.lookup.input.in[fareTableId]-Whentheoutputisastructure,individualitemsarereferencedbyanumberenclosedincurlybraces“{}”afterthe<item>tag.U32_ti=CdPayloadId_tcdPayloadId=Thereturnvaluemaybeassignedtoavariableofamatchingdatatypeasshownaboveviaasimpleassignmentstatement.TheCDLookupNotationisusedinsidetheCDInterfacefunctionsdefinedin5CDInterfaceFunctionsCD接口函數(shù).TheInterfaceprovidesamechanismtoreturnanyoftheCdAttributeId_tvalues,includingstructuraldata,definedintheLCSCDXMLinterfaceCD查找表達式用于在5CDInterfaceFunctionsCD接口函數(shù)中定義的CD器屬性和結(jié)構(gòu)接口函數(shù)。屬性接口提供了一個返回任何定義于LCSCDXML接口內(nèi)的CDAttributeId_t值的機制。結(jié)構(gòu)接口將一個結(jié)構(gòu)的特定實現(xiàn)隱藏于一組該結(jié)構(gòu)每個成FareSchemaThefollowingpayloadsparticipateinthefarecalculationProductInformationDayTypesFarePatternsFareCodeTablesFareTablesTherelationshipsbetweentheinputstothefarecalculationprocessandthepayloadsandbetweenthepayloadsthemselvesareillustratedinFigure4.車費計算處理的輸入與有效荷載之間的關(guān)系,及有效荷載之間的關(guān)系如Figure4 Figure4FareProcessingRelationships4ProductInformationrelatesaproducttoitsassociatedCalendar,FarePattern,FareCodeTableandFareTable.ACa

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
  • 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

最新文檔

評論

0/150

提交評論