文稿分析讲稿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页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

BeijingConfigurationDataDefinition配置数据定 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增加了另外的文档。将这些一般性章节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器函数使用的表达式2.6的中文翻译3节以满足XSD属性定义结构的改变。用的XSD更新附录A。用的实例XML更新附录BJamesHortonKamilaBartschRenJunAddedDevCdBatchNumberBlacklisttoLCSCDandtothe添加DevCdBatchNumberBlacklist到LCSCDXSDIncorporatedCdAttributeName_tintotheCDLookup将结合到CDLookupKamilaAddedmissingbatchNumberBlacklisttranslationinSection4.1.1中关于batchNumberBlacklistRenAddedadditionalinformationaboutretrievinganCdAttributeId_tfromaCdAttributeName_t.添加了额外的关于从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。修正关于增加接口函数GetPassengerTypeName。Kamila16MACwithpaddingmethodMitch21Notedequivalences/differencesbetweenISO/IEC9797-1MACalgorithmandthealgorithmdefinedintheChineseConstructionMinistrystandardApplicationtechnologyforconstructioncauseICcard(NationwideExposureDraft).注释了ISO/IEC9797-1MAC算法和中国建设部IC卡应用技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节中的ActivationDateTimeStoneTableofIntroduction引 Purpose目 Scope范 Terminology术 CDManagementCD的管 Distribution配 Security安 CDActivationCD激 Versioning版本管 CDDistributionScenariosCD分发场 MACingProcessandFileNamingConventionMAC过程和文件命名约 MACalgorithmMAC算 CDLookupProcessNotationCD查找过程符 FareSchema车费方 FareSchemaExample费率方案实 Scenario场景示 DataStructureDesignPatterns数据结构设计模 LCSConfigurationData线路配置数 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系统参 ServiceProviderParameters服务提供商参 CardBlacklist卡 ProductBlacklist产品 SAMBlacklistSAM FareTables票价 FarePatterns票价模 FareCodes票价代 DayTypes日期类 ProductTypeParameters产品类型参 Participant参与 Names名 MifareParametersMifare参 AttributeDefinitions属性定 HighSecurityBlacklist高安全级 Locations位 DeviceParameters设备参 Manifest BusinessRules业务规 TimeCodes时间代 PassengerTypes旅客类 CardBatchWithdrawList卡批次回收 Appendix XSDand LCSCD ExampleLCSCDXML ListofTables表格Table1:Acronyms表1:缩写 Table2:CDDistributionNormalScenarioDescription表2:CD分发正常场景说 TABLE3:LCSCDXMLFILENAMINGCONVENTIONS表3:LCSCDXML文件命名约 Table4:ProductInformation表4:产品信 Table5:Calendar1–SingleJourney,ReturnandOne-daytickets表5:日历1–单程、往返和一日 Table6:Calendar2–SectionBasedtickets表6:履历2-根据区段划分的车 Table7:DayTypes表7:日期类 Table8:FarePattern1表8:模式 Table9:FareCodeTable1–StationtoStationmatrix表9:费用代码表1-站到站 Table10:FareCodeTable2–SectiontoSectionmatrix表10:费率代码表2–区段到区段矩 Table11:FareTable1–StationtoStationpricesforSingletravel表11:费率表1–、 ListofFigures图表Figure1:LCSCDXMLfileDistributionandassociatedactions图1:LCSCDXML文件的配发及相关措 Figure2:CDDistributionNormalScenario图2:CD分发正常场 Figure3:CDChangesBroughtinwithoutFutureActivation图3:没有将来激活而进行的CD改变.26Figure4:FareProcessingRelationships图4:费率处理关 Introduction引ThisisoneofasetofsthatdescribetheBeijingAFCClearingCentre(ACC)interfacespecifications.ThesetofsBEI-00017_CHConfigurationDataDefinitionBEI-00019_CHMifareUltralightCardDataDefinitionMifareUltralightBEI-00020_CHMifareStandard1KCardDataDefinitionMifare1KBEI-00021_CHUsageDataDefinitionBEI-00022_APPC_CHDeviceCardProcessingSpecificationAppendixC设备票卡处理规范附录CBEI-00033_CHBaseTypeDataDefinitionBEI-00039_CHACCtoLCInterfaceACCLCBEI-00040_CHSystemInitialValuesBEI-00054_CHSAMInterfaceSpecificationSAMPurposeThepurposeofthisistodescribetheLineCentreSystemConfigurationData(LCSCD)payloadsusedintheprocessingofYiPiaoTongtickettypesfortheAFCofBeijingMassTransitNetworkManagement&SupportProject.本文件旨在描述线路中心系统配置数据(LCSCD)的有效负载,此负载可用于网ScopeThescopeofthisislimitedtodefiningLCSCDfortheYiPiaoTongsystem(includingblacklist).ThisrevisionincludesadescriptionofthecompleteCDfileformatthatneedstobetransmittedtoaLineCentreSystem(LCS).ThepayloadformatpresentedisalogicalrepresentationofthephysicalformthatwillbeconsumedbytheLCS.ThephysicalformatinXMLandisdescribedbyXSDs.Theidentifieseachtypeofpayloadthatneedstobesupported,andspecifiesthepayloadstructures.本文件仅对一票通系统(包括)的LCSCD进行定义此版本还对需发送至线路中心系统(LCS)的所有CD文件格式进行了描述。表述的有效LCSXML且用XSDs来描述。TerminologyTable1listsabbreviations,termsanddefinitionsusedinthis表Table1Table1Acronyms1MessageAuthenticationTransportNetworkLayoutofAFCnetwork.AFC网络分布ListingofcardordeviceidentifierswithanassociatedblockingorunblockingactionthatneedstobeperformedonacardordevicebytheBlockingisthetermforthesettingofaflagonthechipofthesmartcard,whichpreventsthecardbeingused.Thisissetataloadorusagedevicethathasthecardidentifierinitsblacklist.Oncethecardhasbeenblocked,itsidentifiercanberemovedfromtheblacklist,thusreducingthesizeofthelisttobesenttoalldevicesandsimplifyingblacklistmanagement.Thecardisthennotoperationalandnolongerneedstobeidentifiedintheblacklist.CDThistermreferstoanitemofCDwithauniqueidentifierandasetofattributesthatdefinetheSameas同SeeCDThistermreferstotheCDxmlfilesandcanalsobeusedinterchangeablytorefertoagroupofrelatedCDObjects指CDxml文件,也能用于CD对象Removingtheblockingflagonthechipofthesmartcard,resultinginthecardbeingabletobeusedagain.AlsoknownasReferencesThefollowingmaterialsaretobeusedinconjunctionwithorarereferencedbythisBEI- MifareUltralight卡数据定义BEI- Mifare1K卡数据定义BEI- BEI- BEI- 设备票卡处理规范附录BEI- BEI- BEI- BEI- BEI- BEI- Informationtechnology–Securitytechniques–MessageAuthenticationCodes(MACs)– Firstedition1999-12-15CitiesandTownsConstructionTradeStandardofthePeople’sRepublicofChina Issuedby:ConstructionMinistryofthePeople’sRepublicofChina中民城镇建设行业标建设事业IC 卡应用技术 全国征求意见稿)中民建设 发CDManagementCD的管DistributionTheLCSCDfileisdeliveredtoeachLCSviaIBMWebsphereMQasthedeliverymechanismfortheLCSCDXMLfile.SeeBEI-00039_CHforfurtherdetailsonLCSCD文件由IBMWebsphereMQ作为LCSCDXMLLCS。关于通信的详细资料,见BEI-00039_CHACC到LC接口ACCTheLCSCDXMLfiledistributedtoeachLCSfileshallbeacompletesetofLCSCDforallthedevicetypesintheAFC.EachtimenewLCSCDcontentisdistributedtotheLCSdevices,thedeviceswillgenerateatransactiontoindicatetotheACCStheversionofLCSCDtheyareoperatingwith.LCSCDXML文件应为AFCLCS配置数据。每次LCSLCS设备时,设备将生成一个交易,向ACCSLCS所使116LCSCD235451TheACCsendstheCDtotheLCSviaMQ2AnewLCSCDXMLfileisretrievedbytheLCS收到一个新的LCSCDXML3TheLCSprocessestheLCSCDandforwardsthecontentsofLCSCDdowntoitsSCLCS处理LCSCD并转发LCSCD的内容给它的SC4TheSCprovidesthedeviceswiththeLCSSC给设备提供LCS5Thedevicesgenerateatransaction(TXN_EVENT_CD_VERSION_STATUS)toindicatetheofLCSCDinuseonthedeviceandispropagatedbackuptothe设备产生一个交易(TXN_EVENT_CD_VERSION_STATUS)以表明设备上使用LCSCD的版本,并且回6TheTXN_EVENT_CD_VERSION_STATUStransactionispropagatedbackuptoACCviaFigure1LCSCDXMLfileDistributionandassociatedactions1:LCSCDXML文件的配发及相SecurityTheACCSwillapplyaMACtotheLCSItistheresponsibilityoftheLCStoverifytheauthenticityandintegrityoftheLCSCDreceivedfromtheACCSbyvalidatingtheMAC.ItisthentheresponsibilityoftheLCStotransmitthecontentoftheLCSCDtotheirdevicesinasecurefashion,ensuringsecrecyandintegrityindependentlyoftheMACdescribedinthis TheLCSmayaugmenttheLCSCDwithspecificparametersrequiredbytheirdevices.TheLCSmayaltertheformatoftheLCSCDto modatetheirdeviceconstraints.NotethattheLCS’salterationofthedatawillinvalidatetheMAC.ACCSLCS配置数据上使用MAC(信息认证代码)。LCS负责验证MACLC配置数据的真实性及完整性。LCSLCS配置数据中的内容安全地(确保安全性及完整性)发送至其设CDActivationCDTheLCSCDXMLfilecontainsinformationonCDActivationtoindicatewhentheLCSCDneedstobeinusebytheAFCdevicetypes.LCSCDXMLCDAFCThemanifestpayloadwithintheLCSCDXMLfileindicatesthedatewhenthisLCSCDisexpectedtobeactivewithintheAFCsystem.ThisfieldisknownastheCDActivationDateandidentifiedwiththeattributenamecdActivationDate(See5CDInterfaceFunctionsCD接口函数).置数据在AFC系统预计被激活的日期。此字段即为CDActivationDate(配置数据激活日期/时间),属性名为cdActivationDate。AdateinthepastindicatesthatthisLCSCDshouldbeimmediayactiveinAFCsystem.EachLCSshouldforwardthedifferencesincontentbetweentheLCSCDthattheirdevicescurrentlyhavecomparedtotheLCSCDthatwasreceivedbytheLCSasquicklyaspossible.AFCLCSCDLCS应将当前设备的LCSCD与接收到的LCSCD内容中不同部分尽可能快地发送至其设备上。AdateandtimeinthefutureindicatesthatthisLCSCDshould eactiveintheAFCsystematthespecifieddate.LCSAFC系统内激ItistheresponsibilityoftheACCStodeliverthefutureactivationLCSCDXMLfilestoeachLCSatleastonedaybeforethefutureactivatedate.ItistheresponsibilityofeachLCStoforwardtotheirdevicesthedifferencesincontentbetweenthecurrentLCSCDandthefutureLCSCDXMLfilesuchthattheirdeviceswillbeupdated.LCSLCSLCS配置数据之间的差异发送至其设备上,以使ThefragmentofLCSCDXMLshownbelowindicatesthelocationofthecdActivationDateattributeasafieldwithinthecdInformationattributewhichiswithinthemanifestpayload(SeeManifestfunctioninSection5CDInterfaceFunctionsCD接口函数).LCSXMLcdActivationDate是有效加载表中属性cdInformation内的一个字段。<manifestcdPayloadId="88"cdPayloadDataVersion="1"<lookupinClass="CdAttributeId_t"<in<lookupinClass="CdAttributeId_t"<in<in<out<in<in<out>2006-04-<inThecdActivationDateattributeisretrievedbycallingtheCDInterfaceFunctionsCD接口函数.TheCDInterfacefunctionsusetheCDLookupProcessNotationCD查找过程符号describedinsection2.8.CDCDInterfaceFunctionsCDcdActivationDate属性。CD器属性接口函数使用了在2.8说明的CD查找过程表达式。VersioningTheLCSCDXMLfilecontainsthecompletesetofLCSCDforalldevicetypes.ThiswillallowtheLCStoprovidenewdevicesconnectingtotheLCSwithalltheLCSCD.TheLCSCDXMLfilecontainsinformationonversioningtoallowtheLCStocomparethepayloadsontheirdevicetypeswiththepayloadwithintheLCSCDXMLfile.ThiswillallowtheLCStoonlysendthedifferencesThemostsignificantversionnumberisthecdSetVersionattributeinthemanifestpayload.LCSXMLLCS可以将其设备类型的有效加载表与LCSXMLLCS可以仅发送差最重要的版本号是有效加载表内的cdSetVersionThevalueofthecdSetVersionattributeissynchronisedwiththeACCSCDversion.ThisvalueisreportedintheheaderofeachtransactiongeneratedbydevicesHdr_tinBEI-ItistheresponsibilityoftheLCStoensurethisnumberiscorrectlyreportedbydevicetypesintheUsageData(UD).Thereisalsoaversionnumberforeachpayload,indicateasanxmlattribute.TheXMLfragmentbelowshowsthatthisfareTablespayloadhasaCDversionof1andisforalldevicetypes.cdSetVersion属性的值与ACCS的配置数据版本同步。由设备生成的所有交易头文件内均记录有此值(见BEI-00021_CH中的 xmlXML片段显示了,有效加载项fareTables1且适用于各种设备类型。<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接口提供了函数来获取保存在结构中的数据,而不用过于考虑使用的数据结构。如果结U16_tpayloadDetailsCount=GetPayloadDetailsCount(5001)CdPayloadId_tpayloadId=GetPayloadDetailsPayloadId(5001,0)ThisversioninformationforeachpayloadcanbeusedtodeterminewhatsetofpayloadsneedtobeupdatedinthedevicesmanagedbyeachLCS.ItisnotnecessaryfortheLCStoupdateeachdevicewiththelatestLCSCDXMLfile.Bycomparingthepayloaddetailsinthemanifestforeachdevicetypewiththepayloaddetailspresentoneachdeviceofthesamedevicetype,theLCSwillknowwhatpayloadsineachdeviceneedtobe各有效加载项的版本信息可用于确定需要更新什么有效荷载集合到各LC管理的设备内。LCS不必用的LCSCDXML文件更新每个设备。通过将中每个设备类型有效荷载明细与存在于相同设备类型的设备上的有效荷载明细相比较,LCS将可以知道每个设备上CDDistributionScenariosCDTherearevariousCDDistributionscenarios.ThesescenariosdiscusstheimportantfieldsofthemanifestsectionoftheLCSCDXMLfile.ThefieldsarecdSetVersion,futureCdSetVersionandcdActivationDate.SeetheManifestfunctionsinSection5CDInterfaceFunctionsCDfortheassociatedAPI.有几种CD分发场景。这些场景讨论了LCSCDXML文件中有效荷载的重要字段。这些字段是cdSetVersion,futureCdSetVersion和cdActivationDate。相关的函数见5CDInterfaceFunctionsCD接口函数中的函数。TheLCSCDXMLfilenamecontainsthevaluesofgenerationIdandcdSetVersionintheform“generationId.cdSetVersion”.NotethechangesingenerationIdandcdSetVersioninred.SeeSection2.6MACingProcessandFileNamingConventionfordetailsaboutthefilenameconventionoftheLCSCDXMLfile.LCSCDXMLgenerationId和cdSetVersion“generationId.cdSetVersiongenerationIdcdSetVersion的改变用红字标出。关于LCSCDXML文件名转换的细节见2.6MACingProcessandFileNamingFigure2describesthenormalCDdistributionscenario.AdescriptionofthisscenarioiscontainedinTable2.图Figure2CD分发场景。该场景的详细说明在表Table2CCFFigure2CDDistributionNormalScenario2:CDTable2CDDistributionNormalScenarioDescription2:CD日说1stOctThecurrentCDSetisgeneratedanddistributedasfileLCSCD19.1.Atthispoint,nofutureCDSetexists.Thelatestblacklistdataisincorporatedintothefile.当前的CD集合生成及分发,文件为LCSCD19.1。这时,没有将来集合存在。的2ndOctAcurrentCDSetandafutureCDSetaregenerated.ThefutureLCSCDisdistributedwiththecurrentLCSCD.ThelatestblacklistdataisincorporatedwithinfileLCSCD20.1(current).NofurtherupdateshavebeenmadetofileLCSCD20.1.CDCD集合生成。将来的LCSCD和当前的LCSCD一起分发。的数据合并到(当前的)文件LCSCD20.1中。AnychangestotheblacklistpayloadswillbereflectedinthecdPayloadDataVersionxmlattributeandinthemanifestpayloaddetails.有效荷载的任何变化将反映到cdPayloadDataVersion的xml属性和有效荷3rdOctAsubsequentblacklistupdate.ThegenerationIdhasbeenupdatedtoshowthatLCSCDwasregeneratedwiththelatestblacklistsThecdSetVersionhasnotchangedasnoCDdatahaschanged.ThefutureLCSCDXMLfileisalsosentforconsistency.后续的更新。generationId也将更新,以显示LCSCD随着的而重新4thOctAsubsequentblacklistupdate.ThecdActivationDatehasarrivedforthefutureLCSCD..TheFutureLCSCDXML21.2 esCurrent(cdActivationDate=Now),andwasregeneratedtoincludethelatestblacklists.NofutureCDsetexistsatthis后续的更新。将来的LCSCD的cdActivationDate达到。将来的LCSCD21.2变成当前的(cdActivationDate=现在),并且已经重新生成含有的。这CD集合存在。Figure3showsanupdatetotheLCSCD.ThisscenarioisidentifiedbytheincrementinboththegenerationIdandthecdSetVersion.ThisscenarioallowstheACCStocorrectproblemsintheactiveCDSetimmediaybyreplacingitwithanotherCDSetwithoutwaitingforafuturedate.图Figure3显示了一个LCSCD更新。该场景表现为generationId和thecdSetVersion都ACCSCD集合替换它,而立即修正激活CD集合的问题4thOct5thOctCLCSCDfutureCdSetVersion=0CLCSCDfutureCdSetVersion=0CCFFigure3:CDChangesBroughtinwithoutFutureMACingProcessandFileNamingConventionMAC过程和文TherewillbeoneXMLfilecontainingthecurrentCDandlatestblacklist一个XML文件含有当前CD和的数据。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还是子系统,该数TheuniqueCDSetVersionassignedtotheCDSetthatisbeinggenerated(U16_t)representedindecimale.g.1CDCD集合版本表示为(U16_t)的十进制,1ThisnumberincrementstomatchtheCDSetbeingThecurrentandfutureXMLfileswillhavethesamegenerationIdbutadifferentcdSetVersionIdXML文件可以有相同的generationId,但是有不同的cdSetVersionId。ThefuturecdSetVersionwillalwaysbeoneormoregreaterthanthecurrentcdSetVersion将来的cdSetVersion将总是比当前的cdSetVersion大一或TheKeyNumberusedforgeneratingtheCDMAC(KeyNumber_t)representedasafourdigithexadecimalstringe.g.0007用来生成CDMAC(KeyNumber_t)的密钥号表示为一个四个数字的十0007。TheVersionoftheKeyNumbergeneratingtheCDMAC(KeyVersion_t)representedasafourdigithexadecimalstringe.g.用来生成CDMAC(KeyNumber_t)的密钥号版本表示为一个四个数字0029。ThecalculatedMessageAuthenticationCode(char[4])producedbythesecuritysubsystemrepresentedasaeightdigithexadecimalstringe.g.A2B4C6D8十六进制字符串,如A2B4C6D8SeethedefinitionofthebasetypesKeyNumber_tandKeyVersion_tinBEI-基本类型KeyNumber_t和KeyVersion_tBEI-00033_CHMAC MACTheCDMACwillbecalculatedasCDMACComputetheSHA-1hashoftheentirecontentsoftheCDXML计算CDXML文件全部内容的SHA-1ComputetheMACoverthehashfromstep1),usingISO/IEC9797-1,withablockcipherofDEA,paddingmethod1,MACalgorithm3,andMAClengthof32bits.1利用ISO/IEC9797-1,通过DEA锁定,补位方法1,MAC算法3和32位MAC,根据第一步的哈希计算MAC。TheMACkeywillnotbe不发散MACCDLookupProcessNotationCDTheLCSCDisformattedinXML.ToprocesstheLCSCDthedevicetypeswillneedtoprovideasetofinputvaluestoobtainanoutputofoneormorevalues.ThisprocessisknownasaCDLookup.LCXMLLC配置数据,设备需提供一套输入值以获得一个或多个输出值。此处理即为配置数据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属性内规定,可用于数据的验证及1Thisstepissimilar,butnotidenticaltosectionandChart-9.2oftheChineseConstruction,as这一步与中国建设部的《建设事业IC卡应用技术(征求)》标准中9.2章的节相似,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接口函数.注意,LCS配置数据XML内具有相应数据,可将CdAttributeName_t名称转换为一个CdAttributeId_t4.3DevCdAttributeDefinitions_tBEI-000405CDInterfaceFunctionsCD接口函数。Ifamatchisfound,thentheprocessingmovestothesiblingtagwhichmaybeanotherlookup<lookup>,amatrixlookup<matrix>,asimpleoutput<output>/<out>orastructuraloutput<output>/<structure>/<item>.Navigatingasiblingnodefollowingamatchisindicatedbyadash“–“symbol.<matrix>,一个简单的输 或一个结构输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接口函数.TheInterfaceprovidesamechanismtoreturnanyoftheCdAttributeId_tvalues,includingstructuraldata,definedintheLCSCDXMLinterfaceCD查找表达式用于在5CDInterfaceFunctionsCD接口函数中定义的CD器属性和结构接口函数。属性接口提供了一个返回任何定义于LCSCDXML接口内的CDAttributeId_t值的机制。结构接口将一个结构的特定实现隐藏于一组该结构每个成FareSchemaThefollowingpayloadsparticipateinthefarecalculationProductInformationDayTypesFarePatternsFareCodeTablesFareTablesTherelationshipsbetweentheinputstothefarecalculationprocessandthepayloadsandbetweenthepayloadsthemselvesareillustratedinFigure4.车费计算处理的输入与有效荷载之间的关系,及有效荷载之间的关系如Figure4 Figure4FareProcessingRelationships4ProductInformationrelatesaproducttoitsassociatedCalendar,FarePattern,FareCodeTableandFareTable.ACa

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论