文稿教程講稿bei-ch mifare standard1k card data definition v_第1頁(yè)
文稿教程講稿bei-ch mifare standard1k card data definition v_第2頁(yè)
文稿教程講稿bei-ch mifare standard1k card data definition v_第3頁(yè)
文稿教程講稿bei-ch mifare standard1k card data definition v_第4頁(yè)
文稿教程講稿bei-ch mifare standard1k card data definition v_第5頁(yè)
免費(fèi)預(yù)覽已結(jié)束,剩余85頁(yè)可下載查看

付費(fèi)下載

下載本文檔

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

文檔簡(jiǎn)介

BeijingMifareStandard1KCardDataDefinitionMifare標(biāo)準(zhǔn)1K卡數(shù)據(jù)定義 RevisionERGTransitRevision30JulyEngineeringProjectNeilRichardLiuZhongHistory修訂記錄修訂版修訂日Description描作SeeAppendixAPrevious參見(jiàn)附錄A13Nov4.2CardArea1–ReducedcardIssuerto4bitsandmovedtestModetoherefromArea2.4.21cardIssuer424.3CardArea2–MovedtestModetoArea1andreplaceitwithmaintenanceMode(1bit).Adjustedpaddingto5bits.4.32移動(dòng)testMode1CardMemoryOrganisation-Sector1Block3accessconditionrestoredtoIssuerTrailer’.DetailedCardLayout–UpdatedtoreflectaboveNeil14Novv3.8aftertranslation.3.8Coloredtextchangedtoblack.Neil14NovHistory-Movedv3.1to3.7intoAppendix3.1-3.8移到附錄CorrectedminortyposthroughouttheChangedallRangevaluestobeChangedproductTypetoproductTypeIdandpurseTypetopurseTypeId.將productTypeproductTypeIdpurseType改purseTypeId1.3Terminology–MovedallTermstotheTermscolumnandalldefinitionstotheDefinitionscolumn.1.3–將所有術(shù)語(yǔ)移到術(shù)語(yǔ)專欄,將所有定義移到DirectorySectorFile–-removed‘PublicPursePresentbutUnused’.–-去掉PublicPursePresentbutCardArea1–RenamedtestModetotestCard.IndustryCodeisnowdefinedas:75134.21將testModetestCardNeil修訂版修訂日Description描作4.2.1MACCalculation–removedduplicatedFigure4.2.1MAC計(jì)算–刪除的圖14.3CardArea2–RenamedmaintenanceMode,purseTypetopurseIdandproductTypetoproductId.CardDepositValue–changed‘ERGversion’to‘equivalent’.Added“NOTE”topurseId.4.32maintenanceModepurseTypepurseIdproductType改為productId。CardDepositValue將‘ERG版本改為‘對(duì)等’.將“注釋”加到purseId。4.5JourneyAreaFile–changedstatustojourneyStatusandadded‘gated’todescriptionof4.5–將“狀態(tài)”改為“旅程狀態(tài)”,將“有閘機(jī)”加到對(duì)transfersTaken的說(shuō)明。4.8.1PurseFile–correctedchecksumsizeto84.9alisationFiles1&2–Numbervalue0XAcomment–added‘origional’.cardholderNumberType–Value4changedto‘other’andchanged‘officer’to4.9個(gè)人化文檔1&2–值0XA評(píng)論-補(bǔ)充了“原始”。cardholderNumberType價(jià)值4改為“其他”,‘officer’‘soldier’。4.10.1TransactionLogFormat–RenamedproductTypetoproductTypeId.Table16–Removed‘Use’,Rebate’and‘Subcharge’4.10.1–將productType更名為7.1CardFormatting–Table17DataBlock–read/decrementcolumn-Added‘transfer’and8CardSerialNumberDefinition–Changedreferencesto‘CardIssuerFile’toCardAreaXFile’andIndustryCodeisnow:75Sector1-Updatedtoreflectabove10DataTransmission–Removedreferencetosplittingfieldsacrossblocks.24Janv3.10aftertranslation.3.10Chen25JanChangestosection1.4Referencesandcross-referenceformats.J.Bluhm-30Janv3.12afterHarry修訂版修訂日Description描作Versionedforrelease14FebSpecifyMACalgorithmforcalculatingmocCardCertificationCode的MACIncludedBEI-00014_CHProjectGlossaryandBEI-00048_CHSecurityArchitectureinReferences.“Big-endianonlyappliestonumericvalues.Paddingbitsaresettoallzeros,toallowforeasierinMitch19DefineMACkeydiversificationalgorithm,andremovethereferencetoBEI-00048SecurityArchitecture.定義MACBEI-00048《安全架Notedequivalences/differencesbetweenISO/IEC9797-1MACalgorithmandthealgorithmdefinedintheChineseConstructionMinistrystandardApplicationtechnologyforconstructioncauseICcard(NationwideExposureDraft).注意到ISO/IEC9797-1MAC《建設(shè)事業(yè)應(yīng)用技術(shù)》(全部發(fā)布版)定義的算AddedreferencestoBEI-00022_APPC_CHDeviceCardProcessingSpecificationAppendixC.Mitch30JulyChangessincev4.0havebeenrejectedandthecontentofthehasbeenrevertedbacktov4.0content.VersionedforRelease5.0HarryTableof MifareMemoryOrganisationMifare架 MemoryOrganisation架 DataBlocks數(shù)據(jù) SectorTrailer扇區(qū)尾 MifareCardMemoryLayoutMifare卡結(jié) BlockTranslationTable塊轉(zhuǎn)換 MemoryLayout結(jié) SmartCardFiles智能卡文 DirectorySector DirectoryItem 區(qū)條目標(biāo)識(shí) CardArea1File票卡1區(qū)文 MACCalculationMAC計(jì) CardArea2File票卡2區(qū)文 ValueFiles值文 JourneyAreaFile旅程區(qū)文 UseoftheactiveStatusField動(dòng)態(tài)選擇字段(activeStatus)的使 LAVAreaFile上次加值(LAV)區(qū)文 ProductArea產(chǎn)品 MultirideFile計(jì)次文 PeriodFile定期文 PurseArea錢(qián)包 PurseFile錢(qián)包文 alisationArea個(gè)人化 alisationFile1個(gè)人化1 alisationFile2個(gè)人化2 TransactionLogFiles交易日志文 TransactionLogRecordFormat交易日志記錄格 CRC-8Implementation算法CRC-8的實(shí) DataIntegrityScheme數(shù)據(jù)完整性方 AccessKeys密 UpdatingtheKeys更新密 SectorAccessKeys扇區(qū)密 ByCardSector卡扇區(qū)密鑰分 ByDevice設(shè)備密鑰分 CardSerialNumberDefinition卡序列號(hào)定 CardDefinition卡片定 CardMemoryOrganisation票卡組 DetailedCardLayout票卡詳細(xì)布 Sector Sector Sector Sector Sector Sector Sector Sector Sector Sector Sector Sectors11to15扇區(qū)11到扇區(qū) DataTransmission數(shù)據(jù)傳 Appendix PreviousHistory前期文檔記 ListofTables表索Table1:Abbreviations,TermsandDefinitions縮寫(xiě)、術(shù)語(yǔ)以及定 Table2:StandardCardEEPROMMemoryLayout標(biāo)準(zhǔn)卡EEPROM設(shè) Table3:ManufacturerBlockFormat廠商使用塊格 Table4:MemoryLayout結(jié) Table5:CardArea1FileFormat票卡1區(qū)文件格 Table6:CardArea2FileFormat票卡2區(qū)文件格 Table7:ValueFileFormat值文件格 Table8:JourneyAreaFileFormat旅程區(qū)文件格 Table9:LastAddValueAreaFileFormat上次充值區(qū)文件格 Table10:MultirideFile計(jì)次文 Table11:PeriodFile定期文 Table12:PurseFile錢(qián)包文 TABLE13:ALISATIONAREA1FILEFORMAT個(gè)人化1區(qū)文件格 Field字 TABLE14:ALISATIONAREA2FILEFORMAT個(gè)人化2區(qū)文件格 Field字 Table15:TransactionLogRecord交易日志記 Table16:TransactionLogRecordTypes交易日志記錄類 Table17:AccessConditions條 Table18:CardSectorAccessKeyTypes卡扇區(qū)密鑰類 Table19:DeviceAccessKey Table20:CardMemoryDefinition卡定 ListofFigures圖索Figure1:mocCardCertificationCode 圖1:mocCardCertificationCodeMAC計(jì) Figure2:Checksum Figure3:JourneyAreaSelection Figure4:DataTransmissionSequence數(shù)據(jù)傳輸順 Introduction引ThisisoneofasetofsthatdescribetheBeijingAFCClearingCentre(ACC)interfacespecifications.本文檔是描述中心(ACC)接口規(guī)范文檔Thesetofscomprises:該文檔集包括BEI-00017_CHConfigurationDataDefinitionBEI-00019_ifareUltralightCardDataDefinition卡數(shù)據(jù)定BEI-00020_ifareStandard1KCardDataDefinition卡數(shù)據(jù)定BEI-00021_CHUsageDataDefinitionBEI-00022_CHDeviceCardProcessingSpecificationBEI-00022_APPC_CHDeviceCardProcessingSpecificationAppendixC設(shè)備票卡處理規(guī)范附錄CBEI-00023_CHDeviceMan-MachineInterfaceSpecification設(shè)備人-BEI-00033_CHBaseTypeDataDefinitionBEI-00037_CHSystemInterfacesOverviewBEI-00039_CHACCtoLCInterfaceACCLCBEI-00040_CHSystemInitialValuesBEI-00045_CHOnlineEnquiryFunctionalSpecification查詢功能說(shuō)BEI-00054_CHSAMInterfaceSpecificationSAMPurposeTheMifareStandardcardisamulti-applicationcontactlesssmartcarddbyPhilips.ThepurposeofthisistodefineaTransitApplicationimplementationonthistypeofcard.Mifare標(biāo)準(zhǔn)票卡是由飛利浦公司提供的多功能非接觸式智能卡。制作本文件的目的是定義ScopeThescopeofthisislimitedtotheCardDataDefinitionfortheMifareStandardCardICMF1ICS50fortheBeijingproject.本文件的范圍只限于項(xiàng)目中Mifare標(biāo)準(zhǔn)票卡ICMF1ICS50的票卡數(shù)據(jù)定義Chapter2definesthememorylayoutoftheMifareStandardChapter3specifieshowthememoryisusedbytheTransitChapter4definestheTransitApplicationFilesstoredonthe第4章定義了票卡中的交通應(yīng)用文件。Chapter5describestheChecksumcalculation.5章描述了校驗(yàn)和計(jì)算。Chapter6describestheDataIntegrityChapter7definestheuseoftheCardAccess7章定義了票卡存取密鑰的使用。Chapter8describestheCardSerialNumber.8章描述了卡序列號(hào)。Chapter9definesthephysicalstructureofallFilesontheChapter10describesthedatatransmissiontoandfromtheTable1listsabbreviations,termsanddefinitionsusedinthisTable1AbbreviationsTermsandDefinitionsAbbreviation縮Term術(shù)Definition定AutomatedFareTheuserofthecard.CyclicRedundancyCheck循ProgrammableRead-OnlyAprepaidproductwhichprovidesthecardholderwiththerighttotravelforaspecificnumberofjourneys.Aformofproductbetweentheproductissuerandcardholder.Agenerictermforthecollectionofspecificproducttypes,i.e.multiride,periodandpurseproducts.Abbreviation縮Term術(shù)Definition定PurseProductAproductthatprovidesthecardholderwithmonetaryunitsthatareusedtopayforgoodsandservices.AformofContractbetweenatransitserviceproviderandcardholder,containingevidenceoffarepaymentandthereforeentitlementtousethetransitserviceforwhichitwasissued.Thisisashort-livedobjectthatkeepstrackofthecardholder’smovementinthetransitsystem,foraparticularjourney.TheJourneyrecordsvalidationdetailstosupportentry-exitdetermination,transferentitlements,pass-backbusinessrules,andtheInspectionprocess.MinistryOfThefollowingmaterialsaretobeusedinconjunctionwithorarereferencedbythis[Ref: ConfigurationData[Ref: MifareUltralightCardDataDefinitionMifareUltralight卡數(shù)據(jù)定義[Ref: [Ref: UsageData[Ref: DeviceCardProcessing[Ref: DeviceMan-MachineInterface[Ref: BaseTypeData[Ref: SystemInterfaces[Ref: ACCtoLCInterfaceACCLC的接口[Ref: SystemInitial[Ref: OnlineEnquiryFunctional[Ref: SAMInterfaceSpecificationSAM卡接口規(guī)范[Ref: Datasheet:MifareStandardCardIC,MF1ICS50,Specification-PhilipsSemiconductorsRevision5.1,May數(shù)據(jù)表:mifare標(biāo)準(zhǔn)票卡ICMF1ICS50,功能規(guī)格200155.1版MifareMemoryOrganisationMifare架ThissectiondescribesthetechnicalspecificationsoftheMifareStandardsmartcard,includingmemoryorganization,manufacturerblocks,datablocks,andsectortrailers.本章節(jié)描述了Mifare標(biāo)準(zhǔn)智能卡的技術(shù)規(guī)范,包括結(jié)構(gòu),廠商使用塊,數(shù)據(jù)塊和扇區(qū)TheMifareStandardcardisamulti-applicationcontactlesssmartcarddbyPhilips,specificallydesignedfortransportapplicationsandrelatedloyaltyprograms.ThiscardconformstoISO/IEC14443Astandard.Mifare標(biāo)準(zhǔn)票卡是由飛利浦公司提供的多功能非接觸式智能票卡,為交通應(yīng)用和與信用有關(guān)的應(yīng)用而設(shè)計(jì)。此票卡符合ISO/IEC14443A標(biāo)準(zhǔn)。Thiscarddatadefinitiondefinesadatamodelforsmartcardtransitapplications.Themodeldefinesbusinessobjectsandattributesasmartcardapplicationneedstosupporttransactionlogicandbusinessprocessesinthetransitenvironment.Theapplicationisdesignedfortransitsystemusers,i.e.passengers.此票卡的數(shù)據(jù)定義中定義了智能票卡交通應(yīng)用的數(shù)據(jù)模型。此模型定義了業(yè)務(wù)對(duì)象以及支持交通環(huán)境中的交易邏輯和業(yè)務(wù)流程所需要的智能票卡應(yīng)用屬性。此應(yīng)用專為軌道交Transactionperformance,securityandstoragecapacityaretechnicalissues,resolvedbytheMifareStandardcarddesign.Thesearediscussedlaterinthe.交易性能、安全和容量等技術(shù)問(wèn)題均在mifare標(biāo)準(zhǔn)票卡的設(shè)計(jì)中得到了解決。這些內(nèi)Thiscarddefinitionprovidesanextensibilitymechanismthatallowssystem-specificrequirementsnotalreadycovered,tobeaddedtotheapplicationsinanopenway.MemoryOrganisation架TheMifareStandardcardhasatotalof8192bits(1024bytes)ofEEPROMforstoringdata,organizedin16sectors,eachconsistingof4blocksof16bytes(64bytesperMifare標(biāo)準(zhǔn)票卡的EEPROM共有8192位(1024字節(jié)),分16個(gè)扇區(qū)數(shù)據(jù),每個(gè)扇416字節(jié)的塊組成(64字節(jié))。AseachsectorrequiresaSectorTrailerBlockandtheManufacturerBlockconsumes1Block,thisleavesonly47datablocksactuallyavailableforUserDatastorage.由于每個(gè)扇區(qū)都需要一個(gè)區(qū)尾塊,而廠商使用塊要占用一個(gè)塊,因此用戶數(shù)據(jù)實(shí)際可7個(gè)。TheEEPROMispartitionedasshowninTable2.EEPROM2所示。Table2:StandardCardEEPROMMemoryLayout標(biāo)準(zhǔn)卡EEPROM設(shè)塊Size00ManufacturerBlock廠商使用1DataBlock2DataBlock3SectorTrailer1-0DataBlock1DataBlock2DataBlock3SectorTrailerManufacturerBlockTheManufacturerBlockisusedtostorethecardserialnumber,whichiswrittenwhenthecardismanufacturedandmaynotbesubsequentlyupdated.Table3ManufacturerBlockFormatField字Size大小(位Description描Cardserialnumberwrittentothecardatmanufacturetime.Thisnumbercanneverbechanged.8Checkbytewrittentothecardatmanufacturetime.Thisnumbercanneverbechanged.Manufacturedatawrittentothecardatmanufacturetime.Thisdanneverbechanged.Bits(16Bytes):EndofFormoreinformationontheManufacturerBlock,refertothePhilipsdatasheet[Ref:DataBlocksEachDataBlockcanbeconfiguredaseitheraRead/WriteBlock(normalmemoryuse)orasaValueBlock(electronicPurse).TheuseofeachblockisconfiguredbytheAccessBitsintheSectorTrailer.每個(gè)數(shù)據(jù)塊既可以配置為讀寫(xiě)塊(正常使用)也可以配置為數(shù)值塊(電子錢(qián)包)。通TheseDataBlocksareusedfortheFilesasdefinedinthefollowingSectorTrailerThisblockcontainstwo6bytesecretkeystocontrolaccesstotheDataBlocksforthatSectorandAccessControlbitsfortheSector’sDataBlocks.此塊包含兩個(gè)6字節(jié)的密鑰,能控制所屬扇區(qū)的數(shù)據(jù)塊存取情況以及該扇區(qū)中數(shù)據(jù)塊的存ThereisalsoasinglebyteavailableforDataTheAccessControlbitsallowthefollowingoperationsontheDataBlockRead/Write(Read/Write,ValueandSectorTrailerBlocks).讀/寫(xiě)(讀/寫(xiě),數(shù)值和區(qū)Increment/Decrement/Transfer/Restore(ValueBlocksonly).增值/減值/傳輸/恢復(fù)FormoreinformationontheSectorTrailer,refertothePhilipsdatasheet[Ref:Formoreinformationontheuseofthesecretkeysandtheaccesscontrolbits,refertoAccessKeys(Section7).MifareCardMemoryLayoutMifare卡結(jié)ThissectiondescribestheblocktranslationtableandmemorylayoutoftheMifareStandardsmartcard.BlockTranslationTableThe47DataBlocksavailableonthecardareaccessedasLogicalBlocksusingaBlockTranslationTabletomapalogicalblocktothephysicalSectorandDataBlockonthe卡上有47個(gè)數(shù)據(jù)塊可用,使用數(shù)據(jù)塊轉(zhuǎn)換表使邏輯塊與票卡上的物理扇區(qū)和數(shù)據(jù)塊的形AstheCardlayoutisfixedbyPhilips,thefollowingtableisnotstoredonthecardbutisdefinedbytheApplication.LogicalBlocks =Sector0,blocks0,1andLogicalBlocks3,4, =Sector1,blocks0,1andLogicalBlocks6,7, =Sector2,blocks0,1and LogicalBlocks45,46,47=Sector15,blocks0,1and =扇區(qū)15,塊0、1、MemoryLayout結(jié)AllFilesareallocatedtofixedLogicalBlocksasshowninTable4:MemoryTable4:MemoryLayout結(jié)File文(inLogical邏輯塊Description描MOC11Notantitear無(wú)防保File文(inLogical邏輯塊Description描forfutureMOCdirectoryuse.為將來(lái) 12Notantitear無(wú)防保CardArea1and2Notantitear無(wú)防保PurseValue2StorageofthePurseremainingMultirideValue2StorageoftheMultirideremainingJourney2TearLAVLAV1Notantitear無(wú)防保Product2TearPurse2TearLog921toNottear無(wú)防保alisationArea1&12Notantitear無(wú)防保SmartCardFiles智能卡文Dataserialisationformatsarespecifiedinstructuretablesthroughoutthissection,withfieldsizesspecifiedasanumberofbits.DirectorySector Thisfileexistsinsector0ofthecard,andisprovidedforMOCcardField字Size大?。ㄎ籇escription描8=0x00Directory 區(qū)8=0x01(Issuancesector)(區(qū)8=0x10(PublicPursesector)(公共錢(qián)包區(qū)8=0xE1(ERGuse)(ERG使用8=0xE0(ERGuse(ERG使用8=0xE1(ERGuse(ERG使用8=0xE1(ERGuse(ERG使用8=0xE2(ERGuse(ERG使用8=0xE2(ERGuse(ERG使用8=0xE2(ERGuse(ERG使用8=0xE3(ERGuse(ERG使用8=0xFFUnappliedSector)(未使用扇區(qū)8=0xFFUnappliedSector)(未使用扇區(qū)8=0xFFUnappliedSector)(未使用扇區(qū)8=0xFFUnappliedSector)(未使用扇區(qū)8=0XFFUnappliedSector)(未使用扇區(qū)DirectoryItem Sector值IssuancePublicPurse公共錢(qián)JourneyProductERGLogsERGCardArea1File1TheCardArea1filestoresMOCcardcompatibilityattributesandcardissueThisisaStaticFileandisnotanti-tearprotected.這是個(gè)靜態(tài)文件,沒(méi)有防保護(hù)。ThefiledataformatisspecifiedinTable5CardArea1FileFormat1區(qū)文件格式.文件數(shù)據(jù)格式在Table5:CardArea1FileFormat1區(qū)文件格式中規(guī)定。ThisfileisstoredinSector1,Block0andislocatedhereforMOCcard1扇區(qū),0塊中,為了與MOCTable5CardArea1FileFormat1Field字Size大?。ㄎ籇escription描CityCode,forMOCcard城市代碼,與MOC=1000CityCodeforBeijing(城市代碼Range0...9999(BCDIndustryCode,forMOCcard=行業(yè)代碼,與MOCRange0...9999(BCDIssuerSerialNumber,forMOCcardThisistheERGserialNumber,alsoknownastheRange:0…這是ERGmocIssuerSerialNumber一樣。0…4,294,967,295CardCertificationCode,forMOCcard=MACderivedfrommifareSerialNumber+mocCityCode+mocIndustryCode+serialNumber(mocIssuerSerialNumber)See4.2.1MACCalculationMAC計(jì)算Range:卡認(rèn)證碼,與MOCMACmifareSerialNumbermocCityCodemocIndustryCode+4.2.1MACField字Size大小(位Description描4UniquelyidentifiesthecardThisisaproprietaryparticipantidentificationnumberRange:0…150…151Indicateswhethertheapplicationhasbeenissuedfornormaluseorfortestpurposesonly:theapplicationhasbeenissuedfornormaltheapplicationhasbeenissuedfortestortrainingpurposesintheproductionsystem.ThebatchnumberthecardwasissuedRange:9Specifiesthedate/timeofthestartofthemonththecardwasinitialisedasfollows:0=1stJanuary20061=1stFebruary20062=1stMarch200600:00(witharangeofapproximay42Range:0200611120062122006318CardArea1checksum1SeeSection5ChecksumBits(16Bytes):Endof MACCalculationMAC計(jì)ThemocCardCertificationCode(MAC)iscalculatedusingthemocCityCode,themocIndustryCode.andtheserialNumber(mocIssuerSerialNumber).ThekeyusedisfirstdiversifiedonthemifareSerialNumber.使用和序列calculationinSAM中的計(jì)卡認(rèn)證Figure1:mocCardCertificationCodeCardArea2File2TheCardArea2filestoresattributesthatallowacardtobemanagedthroughitsnormallifecycle,post-manufacture.票卡2區(qū)文件一些屬性,使得票卡生產(chǎn)后,在其正常生命周期中,可以進(jìn)行管理。ThisisaStaticFileandisnotanti-tearprotected.這是個(gè)靜態(tài)文件,沒(méi)有防保護(hù)。ThefiledataformatisspecifiedinTable6CardArea2FileFormat2區(qū)文件格式.文件數(shù)據(jù)格式在Table6:CardArea2FileFormat2區(qū)文件格式中規(guī)定。ThisfileisstoredinSector1,Block1.該文件在1扇區(qū),1塊中Table6CardArea2FileFormat2Field字Size大?。ㄎ籇escription描8Identifiestheparticularsetofsecurityaccesskeysthatprotectthecardissuer’sfiles.Keysetnumberswillbedefinedbythecardissuerasasetofindividualkeyversionnumbers,specifyingtheparticularversionofeachaccesskey.Range:Field字Size大?。ㄎ籇escription描3SpecifiestheversionoftheCardIssuerfileformat.Thecurrentversionis:1Range:1...71Specifiesthepreferredlanguageofthecardholder.Languageidentifierswillbedefinedbytheapplicationissuer.0=Chinese1=0ChineseDefault)中文(默認(rèn)1English4Specifiesthetypeofpassengerinthetransitsystem,e.g.adult,8StoresthemonetaryamountpaidbythecardholderasaThisallowsadevicetodeterminetherefundvalueofacardwhenitisreturnedbythecardholder.Range:0...255Note:ThisistheequivalentoftheMOCCashPledge押金)0...255元MOC中的押金字段在ERG1Indicatesthenumberoftimesthecardhasbeenre-Range:5PaddingbitstomakethethissectionendonabyteApplication3SpecifieswhetheraPeriodorMultirideProduct Noproduct 預(yù)留- 預(yù)留Field字Size大?。ㄎ籇escription描5IdentifiestheissueroftheProduct,relativetoCardissuer(i.e.relativetocardIssuer).Range:產(chǎn)品商,與卡商相關(guān)(即與cardIssuer相關(guān))0…316IdentifiesthetypeofPurseProduspecifiedbyitsissuer.Range:1...63NOTE:Thisvaluewillbe0ifthePurseisnotin1...636IdentifiesthetypeofProduspecifiedbyitsRange1...63UniquelyidentifiestheinstanceoftheProductforthespecificapplicationi.eonlyuniquewithinthecontextofthiscard).唯一1SpecifieswhichProductistobe0=1=01定期/1SpecifiesthestatusoftheAutoloadfacilityasAutoloadAutoload5IdentifiestheissuerofthePurse,relativetotheTransitApplicationissuer(i.e.relativetoproviderIdintheApplicationIssuerFile).件中的providerId有關(guān))Range0...31Storesthemonetaryamountpaidbythecardholdertopurchasetheproduct,tosupportoff-lineproductrefunds.Range0..131071Thevaluetobeautoloaded(purse)ornumberofridestobeautoloaded(multiride).Range:0…131071Fenor0...131071分或次Field字Size大?。ㄎ籇escription描7Paddingbitstomakethefiledatalength168CardArea2SeeSection5Checksum2Bits(16Bytes):Endof ValueFilesTheseFilesarestructuredinaccordancewith[Ref:13]–ValueThisfilecanonlybealteredusingtheValueBlockoperationsasdefinedinDataMifareStandardCardIC,MF1ICS50,Functional[Ref:13]本文件只能使用DatasheetMifareStandardCardICMF1ICS50Functional[Ref:13]TheyareusedtostoreandbackupboththePurseandtheMultirideremainingTheseareDynamicFilesandareanti-tearThesefilesarestoredinSectors2and3,Blocks1andThesefilesdataformatisspecifiedInTable7ValueFileFormat值文件格式.文件格式如Table7:ValueFileFormat值文件格式所示。Table7ValueFileFormatField字Size大?。ㄎ籇escription描Remainingvalueinverted8Notused8Notused8Notused8NotusedField字Size大?。ㄎ籇escription描Bits(16Bytes):EndofJourneyAreaFileTheJourneyAreafilecontainsinformationforthecurrentjourney,maintainstheactivePurse,Product,ValueFileandLogFilepointersandprovidestheanti-tearmechanismforcard.旅程區(qū)文件包含當(dāng)前旅程的信息,保存錢(qián)包、產(chǎn)品、值文件以及日志文件使用的塊選擇指針,提卡的制。Note:THISFILEMUSTBETHELASTFILEWRITTENTOTHECARDDURINGANYTRANSACTIONTHATUPDATESTHECARD.ThisisaDynamicFileandisanti-tearThisfileisstoredinSector4Blocks0and1.4扇區(qū),0、1塊。ThefiledataformatisspecifiedInTable8JourneyAreaFileFormat旅程區(qū)文件格式.文件格式如Table8:JourneyAreaFileFormat旅程區(qū)文件格式所示。Table8JourneyAreaFileFormatField字Size大?。ㄎ籇escription描4Specifiestheblockingstatusofthecardas 預(yù)留NotBlockedBlockedOtherBlockedSurrendered/Captured 預(yù)留Blocked-FaultyCard卡鎖Blocked-UnissuedCard未卡鎖 預(yù)留BlockedLost/StolenBlockedCardBatch 預(yù)留BlockedInactive4SpecifieswhichLogFileisnexttobeTheLogfile’slogicalBlockNumberis:21+currentLogFileisincrementedwhenaLogfileiswrittenandifitisgreaterthan8itisresetto0.Range:當(dāng)一個(gè)日志文件寫(xiě)入后,currentLogFile18將重0。1AcycliccounterthatallowsthedevicetodeterminewhetherJourneyAreaFileAorBiscurrentlyactive.Thisisusedforanti-tearprotection.Seesection4.5.1formoreinformation.Range:一個(gè)循環(huán)計(jì)數(shù)器,允許設(shè)備決定當(dāng)前哪個(gè)旅程區(qū)文件(A或B)此字段用于旅程區(qū)文件的防保護(hù)。4.5.1節(jié)。1SpecifieswhichProductwasusedforthe0=1=01定期/SpecifiesthedateandtimefromwhichtheJourneyisvalid.Updatedonthefirstlegofthecurrentpassengertrip.SpecifiedasthenumberofminutessincecardBaseDateTime(witharangeofapproximay8years).Range:規(guī)定為自cardBaseDateTime開(kāi)始的分鐘數(shù)(8年Specifiesthelocationatwhichtheproductwasfirstused.Setto0xFFFiflocationunspecified.Range:0xFFFSpecifiesthelocationwherethejourneyisexpectedtoend.Setto0xFFFiflocationunspecified.Range:0xFFF。8SpecifiesthedateandtimewhentheproductwaslastSpecifiedasthenumberofminutesfromstartDateTime(witharangeofapproximay254mins/4hours)自startDateTime起的分鐘數(shù)表示(2544小時(shí)TotalvaluedeductedfromtheissuingProductinthewholejourney(storedvalueforpurseproducts,numberofridesformultirideproducts,notusedforperiodproducts).Range:IdentifiesthelocationatwhichtheproductwaslastRange:0...40952Specifiesthenumberofgatedtransfersthathavebeentakenforthecurrentjourney.Range:0...31SpecifieswhichProductFilewaslast0=A1=B0=A1=B1SpecifieswhichProductValueFilewaslast0=A1=B0=A1=B1SpecifieswhichPurseFilewaslast0=A1=B0=A1B1SpecifieswhichPurseValueFilewaslast0=A1=B0=A1B3SpecifiesthevalidationstatusoftheJourneyasfollows:旅程0Productnotyetused1Lastusedtocheck-in2Lastusedtocheck-out3Lastusedtocheck-outintrainmalfunctionmode上次列車4Lastusedforcompensationfarepayment5..7=預(yù)Paddingbitstomakethefiledatalength168JourneyAreaSeeSection5Checksum5ChecksumCalculationBits(16Bytes):Endof Bits UseoftheactiveStatusField動(dòng)態(tài)選擇字段(activeStatus)ThisfieldisusedbytheDataIntegretySchemetodeterminewhichoftheJourneyAreaFilesistobeusedforthecurrenttransaction.RefertoSection6DataIntegritySchemeforadescriptionofhowthisfieldisused.6DataIntegrityScheme,了解此字段如何使用。LAVAreaFile上次加值(LAV)TheLastAddValueArea(LAV)filecontainsinformationregardingthelastaddvalueoperationforboththePurseandtheProduct.ThisisaStaticFileandisnotanti-tearThisfileisstoredinSector4,Block2.4扇區(qū),2塊。ThefiledataformatisspecifiedInTable9:LastAddValueAreaFileFormat上次充值區(qū)文件格式如Table9LastAddValueAreaFileFormatTable9LastAddValueAreaFileFormatField字Size大?。ㄎ籇escription描Product8Identifiesthesystemparticipantwhohandledthelastaddvaluetransaction,relativetotheapplicationissuer.Range:0...255Theproduct’stransactionsequencenumberofthelastaddvaluetransaction.Range:0...655358ThetotalnumberofridesremainingafterthelastaddvalueRange:0...2558ThenumberofridesaddedduringthelastaddvalueRange:0...255Thedateofthelastaddvaluetransaction,specifiedasanumberdaysfromcardBaseDateTime(witharangeofapproximay11years).Range:上次加值交易的日期,規(guī)定為從cardBaseDateTime4PaddingbitstomakethethissectionendonabytePurse8Identifiesthesystemparticipantwhohandledthelastaddvaluetransaction,relativetothecardissuerRange:0...255Field字Size大小(位Description描Thepurse’stransactionsequencenumberofthelastaddvalueRange:0...65535Thedateofthelastaddvaluetransaction,specifiedasanumberdaysfromcardBaseDateTime(witharangeofapproximay11years).Range:上次加值交易的日期,規(guī)定為從cardBaseDateTimeThePursebalanceafterthelastaddvalueRange:0...1310710...131071分Paddingbitstomakethefiledatalength168LAVAreaSeeSection5Checksum5ChecksumBits(16Bytes):Endof ProductAreaTheproductareafilecontainsinformationoneitheraMultirideorPeriodproductthatcanbeusedtoenableajourneyusingthatproduct.Itholdsinformationonthetravellocations,lastaddvalueandforproductmaintenance.產(chǎn)品區(qū)文件包含計(jì)次或定期產(chǎn)品的信息,以使得旅程中可以使用該產(chǎn)品。這是在產(chǎn)品中保TheseareDynamicFilesandareanti-tearThesefilesarestoredinSector5,Blocks0andThefiledataformatisspecifiedinTable10MultirideFileandTable11PeriodMultirideFile計(jì)次文Table10MultirideFileField字Size大?。ㄎ籇escription描Multiride4Specifiestheblockingstatusoftheprodu 預(yù)留NotBlockedBlockedOther 預(yù)留 Blocked–BlacklistedSAM鎖定– 預(yù)留BlockedBadAutoloadDebtBlockedBankAccountClosedBlockedProductOverLimit11..14預(yù) 4Incrementedeachtimeanon-repeatingactionisappliedtotheMultirideproduct.Thisisusedinconjunctionwiththeactionlistprocessingtoensurethatanactionisappliedonlyonce.Range:1Ifsetto1,theproductisalreadyIfsetto0,theproductwillbeactivatedwhenitisfirstusedforfarepayment.Whenactivatingtheproduct,validityStartDateTimewillbesettothecurrentdate/time,andthisfieldwillbesetto1.Range:激活產(chǎn)品時(shí),validityStartDateTime將被設(shè)為當(dāng)前日期/時(shí)間,1。1Specifieswhetheranhasbeenprinted.指定是否 notprinted未打印 Field字Size大小(位Description描Earliestdate/timeatwhichtheproductisSpecifiedasthenumberofminutessincecardBaseDateTime(witharangeofapproximay8years).Iftheproducthasnotbeenactivated,thisfieldspecifiesshelflifeoftheproduct(i.e.thelastdate/timethattheproductmaybeactivated).Whentheproductisactivated,devicescancalculatetheproducddatebasedonthevalidityDurationType,validityDurationandvalidityStartDateTime.Range:規(guī)定是自cardBaseDateTime開(kāi)始的分鐘數(shù)(8年)當(dāng)產(chǎn)品激活時(shí),設(shè)備可以基于validityDurationType,validityDuration和validityStartDateTime計(jì)算產(chǎn)品的結(jié)束日期Thevalidoriginlocationfortheproduct.Setto0xFFFiflocationunspecified.Range:0xFFF表示未制定位置0...4095Thevaliddestinationlocationfortheproduct.Setto0xFFFiflocationunspecified.Range:0xFFF表示未制定位置0...4095Asequencenumberthatisincrementedwhentheproductisusedorreloaded.Range:0...65535UniquelyidentifiestheSAMassociatedwiththelastaddvalueRange:SAM卡唯一標(biāo)識(shí)。0...65535ThemonetaryvalueofthelastaddvalueRange:0…131071Field字Size大小(位Description描3Thepaymentmethodofthelastaddvaluetransactionas 預(yù)留 預(yù)留 2SpecifiesvalidityDurationisstoredasoneofthefollowing:指定validityDuration中數(shù)據(jù)的單位:0Minutes1Hours2Days3CalendarMonths7Thenumberofminutes/hours/days/monthsamultirideproductisvalidforonceitisactivated.Setto0ifapurseproductisissuedontothecard.Range:0。3Paddingbitstomakethefiledatalength168MultirideFileSee5Checksum5ChecksumBits16BytesEndofblock位(16字節(jié)) PeriodFile定期文Table11PeriodFileField字Size大小(位Description描Period4SpecifiestheblockingstatusoftheProdufollows:規(guī)定產(chǎn) 預(yù)留NotBlockedBlockedOther 預(yù)留 Blocked–BlacklistedSAM鎖定– 預(yù)留BlockedBadAutoloadDebtBlockedBankAccountClosedBlockedProductOverLimit11..14預(yù) 4Incrementedeachtimeanon-repeatingactionisappliedrthePeriodproduct.ThisisusedinconjunctionwithactionlistprocessingtoensurethatanactionisappliedRange:每次執(zhí)行定期產(chǎn)品的非重復(fù)動(dòng)作時(shí),該數(shù)字增加。與1Ifsetto1,theproductisalreadyIfsetto0,theproductwillbeactivatedwhenitisfirstusedforfarepayment.Whenactivatingtheproduct,validityStartDateTimewillbesettothecurrentdate/time,andthisfieldwillbesetto1.Range:當(dāng)產(chǎn)品激活時(shí),ValidityStartDateTime字段將設(shè)成當(dāng)前日期/時(shí)1。1Specifieswhetheranhasbeen notprinted 票不打打Field字Size大小(位Description描Earliestdate/timeatwhichtheproductisSpecifiedasthenumberofminutessincecardBaseDateTime(witharangeofapproximay8years).Iftheproducthasnotbeenactivated,thisfieldspecifiesshelflifeoftheproduct(i.e.thelastedate/timethattheproductmaybeactivated).Whentheproductisactivated,devicescancalculatetheproducddatebasedonthevalidityDurationType,validityDurationandvalidityStartDateTime.Range

溫馨提示

  • 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ì)自己和他人造成任何形式的傷害或損失。

最新文檔

評(píng)論

0/150

提交評(píng)論