版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
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對(duì)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ù)使用的表達(dá)式2.6的中文翻譯3節(jié)以滿足XSD屬性定義結(jié)構(gòu)的改變。用的XSD更新附錄A。用的實(shí)例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的更詳細(xì)說(shuō)明,將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算法和中國(guó)建設(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-更新說(shuō)明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ā)場(chǎng) MACingProcessandFileNamingConventionMAC過(guò)程和文件命名約 MACalgorithmMAC算 CDLookupProcessNotationCD查找過(guò)程符 FareSchema車費(fèi)方 FareSchemaExample費(fèi)率方案實(shí) Scenario場(chǎng)景示 DataStructureDesignPatterns數(shù)據(jù)結(jié)構(gòu)設(shè)計(jì)模 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票價(jià) FarePatterns票價(jià)模 FareCodes票價(jià)代 DayTypes日期類 ProductTypeParameters產(chǎn)品類型參 Participant參與 Names名 MifareParametersMifare參 AttributeDefinitions屬性定 HighSecurityBlacklist高安全級(jí) Locations位 DeviceParameters設(shè)備參 Manifest BusinessRules業(yè)務(wù)規(guī) TimeCodes時(shí)間代 PassengerTypes旅客類 CardBatchWithdrawList卡批次回收 Appendix XSDand LCSCD ExampleLCSCDXML ListofTables表格Table1:Acronyms表1:縮寫 Table2:CDDistributionNormalScenarioDescription表2:CD分發(fā)正常場(chǎng)景說(shuō) 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:費(fèi)用代碼表1-站到站 Table10:FareCodeTable2–SectiontoSectionmatrix表10:費(fèi)率代碼表2–區(qū)段到區(qū)段矩 Table11:FareTable1–StationtoStationpricesforSingletravel表11:費(fèi)率表1–、 ListofFigures圖表Figure1:LCSCDXMLfileDistributionandassociatedactions圖1:LCSCDXML文件的配發(fā)及相關(guān)措 Figure2:CDDistributionNormalScenario圖2:CD分發(fā)正常場(chǎng) Figure3:CDChangesBroughtinwithoutFutureActivation圖3:沒(méi)有將來(lái)激活而進(jìn)行的CD改變.26Figure4:FareProcessingRelationships圖4:費(fèi)率處理關(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)的有效負(fù)載,此負(fù)載可用于網(wǎng)ScopeThescopeofthisislimitedtodefiningLCSCDfortheYiPiaoTongsystem(includingblacklist).ThisrevisionincludesadescriptionofthecompleteCDfileformatthatneedstobetransmittedtoaLineCentreSystem(LCS).ThepayloadformatpresentedisalogicalrepresentationofthephysicalformthatwillbeconsumedbytheLCS.ThephysicalformatinXMLandisdescribedbyXSDs.Theidentifieseachtypeofpayloadthatneedstobesupported,andspecifiesthepayloadstructures.本文件僅對(duì)一票通系統(tǒng)(包括)的LCSCD進(jìn)行定義此版本還對(duì)需發(fā)送至線路中心系統(tǒng)(LCS)的所有CD文件格式進(jìn)行了描述。表述的有效LCSXML且用XSDs來(lái)描述。TerminologyTable1listsabbreviations,termsanddefinitionsusedinthis表Table1Table1Acronyms1MessageAuthenticationTransportNetworkLayoutofAFCnetwork.AFC網(wǎng)絡(luò)分布ListingofcardordeviceidentifierswithanassociatedblockingorunblockingactionthatneedstobeperformedonacardordevicebytheBlockingisthetermforthesettingofaflagonthechipofthesmartcard,whichpreventsthecardbeingused.Thisissetataloadorusagedevicethathasthecardidentifierinitsblacklist.Oncethecardhasbeenblocked,itsidentifiercanberemovedfromtheblacklist,thusreducingthesizeofthelisttobesenttoalldevicesandsimplifyingblacklistmanagement.Thecardisthennotoperationalandnolongerneedstobeidentifiedintheblacklist.CDThistermreferstoanitemofCDwithauniqueidentifierandasetofattributesthatdefinetheSameas同SeeCDThistermreferstotheCDxmlfilesandcanalsobeusedinterchangeablytorefertoagroupofrelatedCDObjects指CDxml文件,也能用于CD對(duì)象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è)標(biāo)建設(shè)事業(yè)IC 卡應(yīng)用技術(shù) 全國(guó)征求意見稿)中民建設(shè) 發(fā)CDManagementCD的管DistributionTheLCSCDfileisdeliveredtoeachLCSviaIBMWebsphereMQasthedeliverymechanismfortheLCSCDXMLfile.SeeBEI-00039_CHforfurtherdetailsonLCSCD文件由IBMWebsphereMQ作為L(zhǎng)CSCDXMLLCS。關(guān)于通信的詳細(xì)資料,見BEI-00039_CHACC到LC接口ACCTheLCSCDXMLfiledistributedtoeachLCSfileshallbeacompletesetofLCSCDforallthedevicetypesintheAFC.EachtimenewLCSCDcontentisdistributedtotheLCSdevices,thedeviceswillgenerateatransactiontoindicatetotheACCStheversionofLCSCDtheyareoperatingwith.LCSCDXML文件應(yīng)為AFCLCS配置數(shù)據(jù)。每次LCSLCS設(shè)備時(shí),設(shè)備將生成一個(gè)交易,向ACCSLCS所使116LCSCD235451TheACCsendstheCDtotheLCSviaMQ2AnewLCSCDXMLfileisretrievedbytheLCS收到一個(gè)新的LCSCDXML3TheLCSprocessestheLCSCDandforwardsthecontentsofLCSCDdowntoitsSCLCS處理LCSCD并轉(zhuǎn)發(fā)LCSCD的內(nèi)容給它的SC4TheSCprovidesthedeviceswiththeLCSSC給設(shè)備提供LCS5Thedevicesgenerateatransaction(TXN_EVENT_CD_VERSION_STATUS)toindicatetheofLCSCDinuseonthedeviceandispropagatedbackuptothe設(shè)備產(chǎn)生一個(gè)交易(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(信息認(rèn)證代碼)。LCS負(fù)責(zé)驗(yàn)證MACLC配置數(shù)據(jù)的真實(shí)性及完整性。LCSLCS配置數(shù)據(jù)中的內(nèi)容安全地(確保安全性及完整性)發(fā)送至其設(shè)CDActivationCDTheLCSCDXMLfilecontainsinformationonCDActivationtoindicatewhentheLCSCDneedstobeinusebytheAFCdevicetypes.LCSCDXMLCDAFCThemanifestpayloadwithintheLCSCDXMLfileindicatesthedatewhenthisLCSCDisexpectedtobeactivewithintheAFCsystem.ThisfieldisknownastheCDActivationDateandidentifiedwiththeattributenamecdActivationDate(See5CDInterfaceFunctionsCD接口函數(shù)).置數(shù)據(jù)在AFC系統(tǒng)預(yù)計(jì)被激活的日期。此字段即為CDActivationDate(配置數(shù)據(jù)激活日期/時(shí)間),屬性名為cdActivationDate。AdateinthepastindicatesthatthisLCSCDshouldbeimmediayactiveinAFCsystem.EachLCSshouldforwardthedifferencesincontentbetweentheLCSCDthattheirdevicescurrentlyhavecomparedtotheLCSCDthatwasreceivedbytheLCSasquicklyaspossible.AFCLCSCDLCS應(yīng)將當(dā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)的一個(gè)字段。<manifestcdPayloadId="88"cdPayloadDataVersion="1"<lookupinClass="CdAttributeId_t"<in<lookupinClass="CdAttributeId_t"<in<in<out<in<in<out>2006-04-<inThecdActivationDateattributeisretrievedbycallingtheCDInterfaceFunctionsCD接口函數(shù).TheCDInterfacefunctionsusetheCDLookupProcessNotationCD查找過(guò)程符號(hào)describedinsection2.8.CDCDInterfaceFunctionsCDcdActivationDate屬性。CD器屬性接口函數(shù)使用了在2.8說(shuō)明的CD查找過(guò)程表達(dá)式。VersioningTheLCSCDXMLfilecontainsthecompletesetofLCSCDforalldevicetypes.ThiswillallowtheLCStoprovidenewdevicesconnectingtotheLCSwithalltheLCSCD.TheLCSCDXMLfilecontainsinformationonversioningtoallowtheLCStocomparethepayloadsontheirdevicetypeswiththepayloadwithintheLCSCDXMLfile.ThiswillallowtheLCStoonlysendthedifferencesThemostsignificantversionnumberisthecdSetVersionattributeinthemanifestpayload.LCSXMLLCS可以將其設(shè)備類型的有效加載表與LCSXMLLCS可以僅發(fā)送差最重要的版本號(hào)是有效加載表內(nèi)的cdSetVersionThevalueofthecdSetVersionattributeissynchronisedwiththeACCSCDversion.ThisvalueisreportedintheheaderofeachtransactiongeneratedbydevicesHdr_tinBEI-ItistheresponsibilityoftheLCStoensurethisnumberiscorrectlyreportedbydevicetypesintheUsageData(UD).Thereisalsoaversionnumberforeachpayload,indicateasanxmlattribute.TheXMLfragmentbelowshowsthatthisfareTablespayloadhasaCDversionof1andisforalldevicetypes.cdSetVersion屬性的值與ACCS的配置數(shù)據(jù)版本同步。由設(shè)備生成的所有交易頭文件內(nèi)均記錄有此值(見BEI-00021_CH中的 xmlXML片段顯示了,有效加載項(xiàng)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ù)來(lái)獲取保存在結(jié)構(gòu)中的數(shù)據(jù),而不用過(guò)于考慮使用的數(shù)據(jù)結(jié)構(gòu)。如果結(jié)U16_tpayloadDetailsCount=GetPayloadDetailsCount(5001)CdPayloadId_tpayloadId=GetPayloadDetailsPayloadId(5001,0)ThisversioninformationforeachpayloadcanbeusedtodeterminewhatsetofpayloadsneedtobeupdatedinthedevicesmanagedbyeachLCS.ItisnotnecessaryfortheLCStoupdateeachdevicewiththelatestLCSCDXMLfile.Bycomparingthepayloaddetailsinthemanifestforeachdevicetypewiththepayloaddetailspresentoneachdeviceofthesamedevicetype,theLCSwillknowwhatpayloadsineachdeviceneedtobe各有效加載項(xiàng)的版本信息可用于確定需要更新什么有效荷載集合到各LC管理的設(shè)備內(nèi)。LCS不必用的LCSCDXML文件更新每個(gè)設(shè)備。通過(guò)將中每個(gè)設(shè)備類型有效荷載明細(xì)與存在于相同設(shè)備類型的設(shè)備上的有效荷載明細(xì)相比較,LCS將可以知道每個(gè)設(shè)備上CDDistributionScenariosCDTherearevariousCDDistributionscenarios.ThesescenariosdiscusstheimportantfieldsofthemanifestsectionoftheLCSCDXMLfile.ThefieldsarecdSetVersion,futureCdSetVersionandcdActivationDate.SeetheManifestfunctionsinSection5CDInterfaceFunctionsCDfortheassociatedAPI.有幾種CD分發(fā)場(chǎng)景。這些場(chǎng)景討論了LCSCDXML文件中有效荷載的重要字段。這些字段是cdSetVersion,futureCdSetVersion和cdActivationDate。相關(guān)的函數(shù)見5CDInterfaceFunctionsCD接口函數(shù)中的函數(shù)。TheLCSCDXMLfilenamecontainsthevaluesofgenerationIdandcdSetVersionintheform“generationId.cdSetVersion”.NotethechangesingenerationIdandcdSetVersioninred.SeeSection2.6MACingProcessandFileNamingConventionfordetailsaboutthefilenameconventionoftheLCSCDXMLfile.LCSCDXMLgenerationId和cdSetVersion“generationId.cdSetVersiongenerationIdcdSetVersion的改變用紅字標(biāo)出。關(guān)于LCSCDXML文件名轉(zhuǎn)換的細(xì)節(jié)見2.6MACingProcessandFileNamingFigure2describesthenormalCDdistributionscenario.AdescriptionofthisscenarioiscontainedinTable2.圖Figure2CD分發(fā)場(chǎng)景。該場(chǎng)景的詳細(xì)說(shuō)明在表Table2CCFFigure2CDDistributionNormalScenario2:CDTable2CDDistributionNormalScenarioDescription2:CD日說(shuō)1stOctThecurrentCDSetisgeneratedanddistributedasfileLCSCD19.1.Atthispoint,nofutureCDSetexists.Thelatestblacklistdataisincorporatedintothefile.當(dāng)前的CD集合生成及分發(fā),文件為L(zhǎng)CSCD19.1。這時(shí),沒(méi)有將來(lái)集合存在。的2ndOctAcurrentCDSetandafutureCDSetaregenerated.ThefutureLCSCDisdistributedwiththecurrentLCSCD.ThelatestblacklistdataisincorporatedwithinfileLCSCD20.1(current).NofurtherupdateshavebeenmadetofileLCSCD20.1.CDCD集合生成。將來(lái)的LCSCD和當(dāng)前的LCSCD一起分發(fā)。的數(shù)據(jù)合并到(當(dāng)前的)文件LCSCD20.1中。AnychangestotheblacklistpayloadswillbereflectedinthecdPayloadDataVersionxmlattributeandinthemanifestpayloaddetails.有效荷載的任何變化將反映到cdPayloadDataVersion的xml屬性和有效荷3rdOctAsubsequentblacklistupdate.ThegenerationIdhasbeenupdatedtoshowthatLCSCDwasregeneratedwiththelatestblacklistsThecdSetVersionhasnotchangedasnoCDdatahaschanged.ThefutureLCSCDXMLfileisalsosentforconsistency.后續(xù)的更新。generationId也將更新,以顯示LCSCD隨著的而重新4thOctAsubsequentblacklistupdate.ThecdActivationDatehasarrivedforthefutureLCSCD..TheFutureLCSCDXML21.2 esCurrent(cdActivationDate=Now),andwasregeneratedtoincludethelatestblacklists.NofutureCDsetexistsatthis后續(xù)的更新。將來(lái)的LCSCD的cdActivationDate達(dá)到。將來(lái)的LCSCD21.2變成當(dāng)前的(cdActivationDate=現(xiàn)在),并且已經(jīng)重新生成含有的。這CD集合存在。Figure3showsanupdatetotheLCSCD.ThisscenarioisidentifiedbytheincrementinboththegenerationIdandthecdSetVersion.ThisscenarioallowstheACCStocorrectproblemsintheactiveCDSetimmediaybyreplacingitwithanotherCDSetwithoutwaitingforafuturedate.圖Figure3顯示了一個(gè)LCSCD更新。該場(chǎng)景表現(xiàn)為generationId和thecdSetVersion都ACCSCD集合替換它,而立即修正激活CD集合的問(wèn)題4thOct5thOctCLCSCDfutureCdSetVersion=0CLCSCDfutureCdSetVersion=0CCFFigure3:CDChangesBroughtinwithoutFutureMACingProcessandFileNamingConventionMAC過(guò)程和文TherewillbeoneXMLfilecontainingthecurrentCDandlatestblacklist一個(gè)XML文件含有當(dāng)前CD和的數(shù)據(jù)。TherewillbeoneXMLfilecontainingthefutureCD.XMLCD。TheXMLfilewillnotcontainwhitespacebetweenXMLtags(e.g.nopretty-printformattingsuchasspacesortabsornewlinecharactercombinations).XML文件在XML之間不能存在空白字符(如,不能有排版格式,空格符或制表符或AnexampleofcorrectlyformattedXMLsuitablefortheMACingprocessisshown一個(gè)格式正確的可以用于MAC處理的XML<A><B>somevalue</B><C><D>anotherAnexampleofincorrectlyformattedXMLisshown<B>some<D>anotherTheoutputofthegenerationandMACingProcesswillproduceone(current)ortwo(currentandfuture)XMLfilesnamedaccordingtotheconventionshownbelow.MAC處理將處理一個(gè)(當(dāng)前)或兩個(gè)(當(dāng)前和將來(lái))XML文件,它們命名AnexampleofavalidLCSCDXMLfilenameisshown一個(gè)有效的LCSCDXML ThefieldsaredefinedinTable字段在表Table3Table3LCSCDXMLFileNamingConventions3:LCSCDXML字說(shuō)TheuniqueGenerationIdassignedbyCDGforthegenerationrequest(U16_t)representedindecimale.g.25CDG生成賦值的唯一生成Id要求表示為(U16_t)ThisnumberincrementseachtimeagenerationrequestisreceivedbyCDGfromeithertheCDAorBlacklistSubsystem.CDG每收到一個(gè)生成請(qǐng)求,無(wú)論來(lái)自CDA還是子系統(tǒng),該數(shù)TheuniqueCDSetVersionassignedtotheCDSetthatisbeinggenerated(U16_t)representedindecimale.g.1CDCD集合版本表示為(U16_t)的十進(jìn)制,1ThisnumberincrementstomatchtheCDSetbeingThecurrentandfutureXMLfileswillhavethesamegenerationIdbutadifferentcdSetVersionIdXML文件可以有相同的generationId,但是有不同的cdSetVersionId。ThefuturecdSetVersionwillalwaysbeoneormoregreaterthanthecurrentcdSetVersion將來(lái)的cdSetVersion將總是比當(dāng)前的cdSetVersion大一或TheKeyNumberusedforgeneratingtheCDMAC(KeyNumber_t)representedasafourdigithexadecimalstringe.g.0007用來(lái)生成CDMAC(KeyNumber_t)的密鑰號(hào)表示為一個(gè)四個(gè)數(shù)字的十0007。TheVersionoftheKeyNumbergeneratingtheCDMAC(KeyVersion_t)representedasafourdigithexadecimalstringe.g.用來(lái)生成CDMAC(KeyNumber_t)的密鑰號(hào)版本表示為一個(gè)四個(gè)數(shù)字0029。ThecalculatedMessageAuthenticationCode(char[4])producedbythesecuritysubsystemrepresentedasaeightdigithexadecimalstringe.g.A2B4C6D8十六進(jìn)制字符串,如A2B4C6D8SeethedefinitionofthebasetypesKeyNumber_tandKeyVersion_tinBEI-基本類型KeyNumber_t和KeyVersion_tBEI-00033_CHMAC MACTheCDMACwillbecalculatedasCDMACComputetheSHA-1hashoftheentirecontentsoftheCDXML計(jì)算CDXML文件全部?jī)?nèi)容的SHA-1ComputetheMACoverthehashfromstep1),usingISO/IEC9797-1,withablockcipherofDEA,paddingmethod1,MACalgorithm3,andMAClengthof32bits.1利用ISO/IEC9797-1,通過(guò)DEA鎖定,補(bǔ)位方法1,MAC算法3和32位MAC,根據(jù)第一步的哈希計(jì)算MAC。TheMACkeywillnotbe不發(fā)散MACCDLookupProcessNotationCDTheLCSCDisformattedinXML.ToprocesstheLCSCDthedevicetypeswillneedtoprovideasetofinputvaluestoobtainanoutputofoneormorevalues.ThisprocessisknownasaCDLookup.LCXMLLC配置數(shù)據(jù),設(shè)備需提供一套輸入值以獲得一個(gè)或多個(gè)輸出值。此處理即為配置數(shù)據(jù)Lookup.AsimplenotationhasbeendescribedtoindicatetheCDLookupEachlookupisspecifiedfromtheroottagoftheXML<LCSCD>howeverthe<>isnot<>Nextisoneoftheallowablepayloadnames,whichisachildtagof<LCSCD>.Thefullstopisusedtoindicateachildtag.Forexample,the<manifest>payloadisachildtag<LCSCD>.Thusthenotation<manifest>是<LCSCD>的一個(gè)子標(biāo)識(shí)符。因此,表示法為:Eachpayloadstartswithachild<lookup>tag.Each<lookup>tagconsistsofoneormorechild<input>tags.Thedatatypeofthe<input>isspecifiedintheinClassxs:attributeandcanbeusedfordatavalidationandreportingpurposes.子<input>標(biāo)識(shí)符組成。<input>inClass屬性內(nèi)規(guī)定,可用于數(shù)據(jù)的驗(yàn)證及1Thisstepissimilar,butnotidenticaltosectionandChart-9.2oftheChineseConstruction,as這一步與中國(guó)建設(shè)部的《建設(shè)事業(yè)IC卡應(yīng)用技術(shù)(征求)》標(biāo)準(zhǔn)中9.2章的節(jié)相似,InitialvalueinChart-9.2oftheChinesestandardisallzeros(asper“1ststep”ofthatD1,D2etcistheSHA-1hash(contraryto“2ndstep”oftheChinesestandard,whichspecifiesCLA,INS,P1,P2,Lcetc).-D1,D2等是哈希(與標(biāo)準(zhǔn)的“第二步”指定的CLAINS,P1P2Lc等相反)TheCDMACusesISO/IEC9797-1paddingmethod1(becausethehashisafixedlength),whereastheChinesestandardspecifiestheequivalentofpaddingmethod2.-CDMAC使用ISO/IEC9797-11(因?yàn)楣5拈L(zhǎng)度是固定的),2KMAandKMBintheChinesestandardareISO/IEC9797-1KandK’-在標(biāo)準(zhǔn)中,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)換為一個(gè)CdAttributeId_t4.3DevCdAttributeDefinitions_tBEI-000405CDInterfaceFunctionsCD接口函數(shù)。Ifamatchisfound,thentheprocessingmovestothesiblingtagwhichmaybeanotherlookup<lookup>,amatrixlookup<matrix>,asimpleoutput<output>/<out>orastructuraloutput<output>/<structure>/<item>.Navigatingasiblingnodefollowingamatchisindicatedbyadash“–“symbol.<matrix>,一個(gè)簡(jiǎn)單的輸 或一個(gè)結(jié)構(gòu)輸Forexample,aCDLookupforthevalueoftheCdAttributeName_tcdActivationDateisindicatedasshownbelow.例如,一個(gè)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查找表達(dá)式用于在5CDInterfaceFunctionsCD接口函數(shù)中定義的CD器屬性和結(jié)構(gòu)接口函數(shù)。屬性接口提供了一個(gè)返回任何定義于LCSCDXML接口內(nèi)的CDAttributeId_t值的機(jī)制。結(jié)構(gòu)接口將一個(gè)結(jié)構(gòu)的特定實(shí)現(xiàn)隱藏于一組該結(jié)構(gòu)每個(gè)成FareSchemaThefollowingpayloadsparticipateinthefarecalculationProductInformationDayTypesFarePatternsFareCodeTablesFareTablesTherelationshipsbetweentheinputstothefarecalculationprocessandthepayloadsandbetweenthepayloadsthemselvesareillustratedinFigure4.車費(fèi)計(jì)算處理的輸入與有效荷載之間的關(guān)系,及有效荷載之間的關(guān)系如Figure4 Figure4FareProcessingRelationships4ProductInformationrelatesaproducttoitsassociatedCalendar,FarePattern,FareCodeTableandFareTable.ACa
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年度汽車租賃公司與個(gè)人短期自駕游服務(wù)協(xié)議3篇
- 二零二五年度養(yǎng)殖場(chǎng)勞務(wù)合同(養(yǎng)殖場(chǎng)環(huán)保設(shè)施建設(shè))3篇
- 2025年度跨境電商業(yè)務(wù)承包合同3篇
- 2025年度旅游套餐分期付款購(gòu)買合同3篇
- 2025年度農(nóng)產(chǎn)品出口業(yè)務(wù)委托收購(gòu)及代理協(xié)議3篇
- 2025年度停車場(chǎng)車位資源優(yōu)化配置合同3篇
- 2025年度體育俱樂(lè)部兼職教練員聘用合同書3篇
- 二零二五年度籃球球員轉(zhuǎn)會(huì)合同變更通知3篇
- 二零二五年度公司銷售業(yè)務(wù)員協(xié)議書:環(huán)保建筑材料銷售服務(wù)合同3篇
- 二零二五年度酒店前臺(tái)禮儀與客戶滿意度勞動(dòng)合同3篇
- 基礎(chǔ)會(huì)計(jì)課程思政教案設(shè)計(jì)
- 蘇教版科學(xué)小學(xué)五年級(jí)上冊(cè)期末測(cè)試卷及完整答案(奪冠系列)
- 經(jīng)皮肝穿刺膽道引流(PTCD)導(dǎo)管的護(hù)理要點(diǎn)
- 國(guó)家開放大學(xué)《心理學(xué)》形考任務(wù)1-4參考答案
- 2024年社會(huì)工作者《社會(huì)工作實(shí)務(wù)(中級(jí))》考試真題必考題
- FZ∕T 74001-2020 紡織品 針織運(yùn)動(dòng)護(hù)具
- MOOC 作物育種學(xué)-四川農(nóng)業(yè)大學(xué) 中國(guó)大學(xué)慕課答案
- 汽車租賃服務(wù)投標(biāo)方案(技術(shù)方案2)
- 2024年中考語(yǔ)文名著閱讀《儒林外史》內(nèi)容簡(jiǎn)介、主要人物形象及相關(guān)練習(xí)
- 流浪乞討人員救助工作總結(jié)
- 云南省昆明市盤龍區(qū)2023-2024學(xué)年高二上學(xué)期期末質(zhì)量檢測(cè)數(shù)學(xué)試題【含答案解析】
評(píng)論
0/150
提交評(píng)論