Bewator 5PQ-SM500 Contactless Smartcard Reader User Manual

Bewator Ltd. Contactless Smartcard Reader Users Manual

Contents

Users Manual

SM501 and SM501KContactless SmartcardReader HandbookHB02/104 Iss 1AApplicabilityThis handbook applies to the SM501 and SM501K ContactlessSmartcard Readers© BEWATOR COTAG JANUARY 2000                                    This handbook is based on the best information available to Bewator Cotag at the time of publication.Although every effort is made to keep our documentation up to date, small changes which arise fromthe Company's policy of continuing product improvement are not necessarily incorporated. Someproducts are not available in all countries. All orders are accepted only on the Company's standardConditions of Sale, copies of which are available on request.Bewator Cotag, a division of Bewator Group Ltd, Mercers Row, Cambridge CB5 8EX, UKTel: +44 (0)1223 321535   Fax: +44 (0)1223 366799   Email: sales@bewator-cotag.com   www.bewator-cotag.com
iContentsChapter 1  IntroductionData output .............................................................................................1-1Reading Smartcard data...........................................................................1-1Setting up the Reader...............................................................................1-1Chapter 2  InstallingMounting, connecting and setting up........................................................2-1Chapter 3  Setting upJumper settings.......................................................................................3-1Distributor Code ......................................................................................3-1Interface 5 ...............................................................................................3-1Data output selection (jumper JU1) ..........................................................3-2Data type selection (JU2)..........................................................................3-3Data output in “chip serial number” mode ................................................3-3Interface 1 ......................................................................................3-3Interface 2 ......................................................................................3-3Interface 3 ......................................................................................3-3Interface 4 ......................................................................................3-4Interface 5 ......................................................................................3-4Data output in “Girovend” mode...............................................................3-4Interface 1 ......................................................................................3-4Interface 2 ......................................................................................3-5Interface 3 ......................................................................................3-5Interface 4 ......................................................................................3-5Interface 5 ......................................................................................3-5Data output in “Cotag” mode....................................................................3-6Interface 1 ......................................................................................3-6Interface 2 ......................................................................................3-6Interface 3 ......................................................................................3-6Interface 4 ......................................................................................3-6Interface 5 ......................................................................................3-7LED control and BCLINK selection (JU3)...................................................3-7LED control ....................................................................................3-7BCLINK ..........................................................................................3-8Chapter 4  OperationLEDs .......................................................................................................4-1Internal LED control .......................................................................4-1Single wire LED control...................................................................4-1External LED control.......................................................................4-2All LED control modes.....................................................................4-2Horn........................................................................................................4-2PIN data...................................................................................................4-2Using cards..............................................................................................4-2Looking after a card...........................................................................4-2
SM501 and SM501K Contactless Smartcard ReaderiiHold off time............................................................................................4-3Repeat Data Delay (RDD)..........................................................................4-3Chapter 5  Data outputElectrical characteristics of outputs from the Reader.................................5-1Data Hold input.......................................................................................5-2Wiegand interface.....................................................................................5-2Connections.......................................................................................5-2Electrical characteristics ....................................................................5-2Data format .......................................................................................5-2Card data .......................................................................................5-3PINpad data....................................................................................5-3Magnetic Stripe........................................................................................5-4Connections.......................................................................................5-4Electrical characteristics ....................................................................5-4PINpad data....................................................................................5-5Custom interfaces ....................................................................................5-5Chapter 6  Card data formatChip serial number mode .........................................................................6-1Girovend mode.........................................................................................6-1Cotag mode..............................................................................................6-2Information contained in a Cotag smartcard .......................................6-2Sector type 0 - Access control.............................................................6-3Other sector types..............................................................................6-3
1-1Chapter 1  IntroductionThe  SM501 and SM501K Contactless Smartcard Readers aredesigned to read the codes contained in “Mifare” smartcards and topass these codes to a host system.The  SM501K has an integrated keypad. As well as reading cards, italso passes data entered on the keypad to the host system.The Readers consists of a printed circuit assembly and keypadmounted inside a plastic enclosure. They require a DC power supply.Data outputEach Reader provides a choice of Wiegand, Mag Stripe or BCLINKformat data output for the card data (and the PIN data on the Kmodel).Reading Smartcard dataBy setting a jumper, the Reader can be configured to read one ofthree areas of data from the Smartcard:•  Read chip serial number from any Mifare card•  Read Girovend information only from Girovend cards•  Read Cotag information only from Cotag cardsSetting up the ReaderYou configure the Reader using jumpers as desribed in chapter 2.
SM501 and SM501K Contactless Smartcard Reader1-2
2-1Chapter 2  InstallingMounting, connecting and setting upMount the Reader in a suitable position near the door approximately1.2m from the floor. The Reader can be installed outside in asheltered position.The Reader has a mounting plate with two oval mounting holes whichare suitable for most installations - you first need to break open themounting holes using a screwdriver. There are also four round holesin the mounting plate which will align with a standard wall box of thetype used, for example, for light switches.1. If the Reader is fixed to the mounting plate, undo the fourscrews which are in each corner, then place the mountingplate in position on the wall or door frame and mark theposition of the two mounting holes. Note: the mounting platemust be positioned with its connector at the top left.2. Drill the two mounting holes. The holes accept 3.5mm machinescrews or No 6 wood screws.3. The connections are made to the connector on the mountingplate. Pass the cable through the large hole in the centre of themounting plate. Note: the two power supply cables must bepassed twice through the hole in the ferrite bead supplied withthe Reader before they are joined to the connector, as shown inthe following diagram:-+from power supplyeach cable passes through ferrite bead twice0VV+ to connector on mounting plate4. Make the connections shown in the following table as required:Name FunctionV+ Power supply +V (+ve) unregulated DCmax 36.0V, min 10.0V, 250mA max0V Power supply 0V (-ve),(also ground reference for data output)Amber Either: Amber LED control - 0V for amber LEDOr: BCLINK data interface RxHorn Horn - 0V to soundRed Either: Red LED control - 0V for red LEDOr: BCLINK data interface address
SM501 and SM501K Contactless Smartcard Reader2-2Name FunctionGreen Either: Green LED control - 0V for green LEDOr: Single wire LED control0V for green LED, +5V for red LED(0V also switches off amber LED)D0 Data zero for Wiegand outputData for Mag Stripe outputBCLINK data interface TxD1 Data one for Wiegand outputClock for Mag Stripe outputDA Data Available for Wiegand or Mag Stripe outputNote: do not apply a voltage greater than +5V to the horn inputor the LED inputs4. Route the cable tidily, then screw the mounting plate to thewall or door frame. Make sure all braid and loose filaments ofwire are cut right back or insulated with tape or sleeving.5. Set the jumpers on the Reader to provide the functions yourequire, as described in the following tables:INTERFACEJumper JU1 Function1 32 bit Wiegand2 34 bit Wiegand3 10 character Mag Stripe4 26 bit Wiegand5 37 character Mag StripeDATAJumper JU2 Function1 Read chip serial number from any Mifare card2 Read Girovend information only from Girovend cards3 Read Cotag information only from Cotag cards4 not used5 not usedLED CONTROLJumper JU3 Function1 Internal - LED and horn inputs are disabled2 Single wire LED control -0V on GREEN input for green LED,+5V on GREEN input for red LED3 External - LEDs and horn can be controlled using theRED, GREEN, AMBER and HORN inputs - 0V to activate5 BCLINK6. Locate the Reader on the mounting plate with the LEDs at thetop left and press it home - the Reader cannot be pushed fullyhome unless it is the correct way round.
Installing2-37. Tighten the screws, then insert the little plastic plugs suppliedwith the Reader into the screw-holes so that the screws cannotbe seen and the case looks neat. (Note that the plastic plugscannot be removed without damaging them - four spare plugsare supplied with each Reader.)8. Power up the Reader and test it: hold a smart card close to theoutline of the card engraved on the face of the Reader - theReader should bleep when the card is read and the hostshould receive the card data output. Each key-press shouldgive an amber flash and the host should receive PIN data.
SM501 and SM501K Contactless Smartcard Reader2-4
3-1Chapter 3  Setting upJumper settingsYou set the following functions using jumpers on the Reader:•  The protocol used by the Reader for data output (Wiegand,Mag Stripe or BCLINK)•  The type of data to be read from the Smartcard (chip serialnumber, Girovend, Cotag)•  Function of LEDs and hornDistributor CodeIn Girovend and Cotag modes, you can teach the Reader a DistributorCode. (In Girovend mode the “System Code” is the Distributor Code.)When you power up the Reader, there is a 4 second configurationperiod which is signified by the green LED being lit. If you present acard  within this period, the Reader learns the Distributor Code fromthe card and bleeps for 2 seconds. After learning a Distributor Code,the Reader will ignore all cards with the wrong Distributor Code.Interface 5Interface 5 can be re-programmed using a configuration card to givethe data output that you require: contact Technical Support inCambridge for details.
SM501 and SM501K Contactless Smartcard Reader3-2Data output selection (jumper JU1)Using jumper JU1, you can choose from three Wiegand and two MagStripe (ABA) data outputs as shown in the table below:Interface1Interface2Interface3Interface4Interface5*Interface typeWiegandWiegandABAWiegandABABit length500µs500µs1.5ms500µs1.5msPulse width100µs100µs500µs100µs500µsNumber ofbits/characters3234102637Data holdimplemented**NoNoNoNoNoD0 active high/lowlowlowlowlowlowD1 active high/lowlowlowlowlowlowDA active high/lowlowlowlowlowlowRepeat data delay2s2s2s2s2sRead hold off time***1s/5s1s/5s1s/5s1s/5s1s/5sFollowing for ABAformats only :-Number of leadingzero bits88Number of trailingzero bits88*This interface can be redefined by presenting a Cotag programmedsmartcard during the configuration period - contact TechnicalSupport in Cambridge for details.**If Data Hold is implemented, the amber LED will not work.***The hold off time is 1 second on the SM501 Reader, and is 5seconds on the SM501K Reader. If a key is pressed within the 5seconds hold off time on the SM501K Reader, the hold off time isreset to 2 seconds from the time the key was pressed. Pressinganother key within the 2 seconds hold off time resets the hold off timeagain, so that it is always 2 seconds after the last key was pressed.Note: if JU3 is set to position 5 for BCLINK data output, the positionof JU1 has no effect.
Setting up3-3Data type selection (JU2)Jumper JU2 Function1 Read chip serial number from any Mifare card2 Read Girovend information only from Girovend cards3 Read Cotag information only from Cotag cardsData output in “chip serial number” modeIn the following diagrams, data is transmitted from left to right.If chip serial number (CSN) mode is selected the data output for eachinterface is as follows:Interface 113232-bit CSN32-bit chip serial number, most significant bit first.Interface 232-bit CSN13410Start bit 1, 32-bit chip serial number, stop bit 0, least significant bitfirst.Interface 3BccccccccccFLrcc - 32-bit chip serial number converted to decimal andoutput as ten ASCII characters
SM501 and SM501K Contactless Smartcard Reader3-4Interface 4lower 24 bits of CSN1oddparityevenparity26Lower 24 bits of chip serial number with leading even parity bit andodd trailing parity bit, most significant bit first.Interface 5Interface 5 can be re-defined using a configuration card. If it is left inits default setting, the data output is as follows:B00000000000000000000cccccccccc0000000FLrcc - 32-bit chip serial number converted to decimal andoutput as ten ASCII charactersData output in “Girovend” modeIn the following diagrams, data is transmitted from left to right, andthe shaded areas are zeros.If Girovend mode is selected the data output for each interface is asfollows:Interface 113218-bit GSN8-bit IC0000006 zeros, 8-bit Girovend installation code, 18-bit Girocard serialnumber, most significant bit first.
Setting up3-5Interface 216-bit GSN134108-bit IC000 00000Start bit 1, lower 16 bits of 18-bit Girocard serial number, 3 zeros, 8-bit Girovend installation code, 5 zeros, stop bit 0, least significant bitfirst.Interface 3B00nnnnnnnnFLrcn - 26-bit number converted to decimal and output as 8ASCII characters. The most significant 8 bits of the26-bit number are the 8-bit Girovend system code.The least significant 18 bits of the 26-bit number arethe 18-bit Girocard serial number.Interface 41oddparity16-bit GSN8-bit ICevenparity268-bit Girovend installation code, lower 16 bits of 18-bit Girocardserial number, with leading even parity bit and odd trailing parity bit,most significant bit first.Interface 5Interface 5 can be re-defined using a configuration card. If it is left inits default setting, the data output is as follows:B00sss0000000000000000000cccccc0000000FLrcs - 8-bit Girovend system code converted to decimal andoutput as 3 ASCII characters.c - 18-bit Girocard serial number converted to decimaland output as 6 ASCII characters.
SM501 and SM501K Contactless Smartcard Reader3-6Data output in “Cotag” modeIn the following diagrams, data is transmitted from left to right.If Cotag mode is selected the data output for each interface is asfollows:Interface 113216-bit card number16-bit site code16-bit site code, lower 16 bits of card number, most significant bitfirst.Interface 216-bit card number134103-bitIS 13-bit site codeStart bit 1, lower 16 bits of card number, 3-bit issue state, lower 13bits of site code, stop bit 0, least significant bit first.Interface 3B00ccccccccFLrcc - Least significant 26 bits of card number converted todecimal and output as 8 ASCII characters.Interface 41oddparity16-bit card number8-bit SCevenparity26Lower 8 bits of site code, lower 16 bits of card number, with leadingeven parity bit and odd trailing parity bit, most significant bit first.
Setting up3-7Interface 5Interface 5 can be re-defined using a configuration card. If it is left inits default setting, the data output is as follows:Bsssss00000cccccccccccccccccccci000000FLrcs - 16-bit site code converted to decimal and output as 5ASCII characters.c - 64-bit card number converted to decimal and outputas 20 ASCII characters.i - 3-bit issue state converted to decimal and output as1 ASCII character.LED control and BCLINK selection (JU3)Jumper JU3 Function1 Internal - LED and horn inputs are disabled2 Single wire LED control -0V on GREEN input for green LED,+5V on GREEN input for red LEDhorn input is disabled3 External - LEDs and horn can be controlled using theRED, GREEN, AMBER and HORN inputs - 0V to activate5 BCLINKLED controlUse the 1 setting if you want the Reader alone to control the LEDs asfollows:•  The red LED is on when no smartcard is in range.•  When the Reader reads a valid smartcard, the red LED goesoff, the green LED goes on, and the horn beeps. The green LEDgoes off and the red LED on again after the hold off time.The 2 setting requires external control of the green LED indicationfrom the host, but the Reader controls red and amber LEDindications. This provides single-wire control of the LED indicationfrom the host. It works as follows:•  The red LED is on when no smartcard is in range.
SM501 and SM501K Contactless Smartcard Reader3-8•  When the Reader reads a valid smartcard, the red LED stayson and the amber LED comes on. The amber LED remains onfor the period of the hold off time.•  If the GREEN input on the connector is pulled low (0V) whilethe amber LED is on, both red and amber LEDs go off and thegreen LED comes on, and the hold off time is cancelled.•  The green LED stays on until the GREEN input returns high(+5V), when the green LED goes off and the red LED comes onagain.Use the 3 setting when the drives for LED indications and horn aresupplied by the host system. The LEDs follow the inputs labelledRED, GREEN and AMBER on the connector: +5V for off, 0V for on.The horn follows the Horn input: +5V for off, 0V for on. Note that,even when the LEDs and horn are driven externally, the amber LEDwill flick for 100ms whenever a key is pressed on the SM501KReader, and the horn will beep for 100ms whenever a card is read oneither Reader.BCLINKSet JU3 to position 5 if you want to transmit data from the Reader inBCLINK format. This setting overrides all settings of JU1.
4-1Chapter 4  OperationOnce you have set up all the options described in chapter 3, “Settingup”, normal operation simply consists of presenting your card to theReader, entering your PIN on the keypad if the Reader is typeSM501K, and awaiting the response. The Readers are always used inconjunction with a host system which controls the door lockmechanism (or any other equipment in different applications) andtakes decisions about when to activate it.LEDsInternal LED controlUnder internal control (LEDs driven by Reader), the indicator LEDswork as follows:•  The red LED is on when no smartcard is in range.•  When the Reader reads a valid smartcard, the red LED goesoff, the green LED goes on, and the horn beeps. The green LEDgoes off and the red LED on again after the hold off time*.Single wire LED controlUnder single wire control (red and amber LEDs driven by Reader,green LED driven by host), the indicator LEDs work as follows:•  The red LED is on when no smartcard is in range.•  When the Reader reads a valid smartcard, the red LED stayson and the amber LED comes on. The amber LED remains onfor the period of the hold off time*.•  If the GREEN input on the connector is pulled low (0V) whilethe amber LED is on, both red and amber LEDs go off and thegreen LED comes on, and the hold off time* is cancelled.•  The green LED stays on until the GREEN input returns high(+5V), when the green LED goes off and the red LED comes onagain.*The hold off time depends on which type of Reader you are using;see the section on the hold off time later in this chapter.
SM501 and SM501K Contactless Smartcard Reader4-2External LED controlUnder external control (LEDs driven by host), the indicator LEDsfollow the RED, AMBER and GREEN terminals on the connector.All LED control modesIn all of the above LED control modes, the amber LED flicks on or off(depending on its current state) for 100ms whenever a key is pressedon the SM501K Reader.HornThe horn bleeps for 100ms whenever the Reader reads a validsmartcard.If External LED Control is selected, the horn can be controlledexternally using the Horn terminal on the connector.PIN dataThe SM501K Reader outputs PIN data whenever a key is pressed,irrespective of whether it has read a card.Using cardsThe Readers are designed for use with a hand-held card. Present theface of the card near the Reader and wait for the horn to beep.Looking after a card•  Don’t let the card get too hot - for example if left in a car on asunny day. The operating temperature range for the card is-20 to +50oC.•  Don’t deliberately bend the card and take care not to sit on itin your pocket.•  To clean the card, use a damp cloth. Don’t use any solventsand don’t immerse it in anything.
Operation4-3Hold off timeWhen the Reader reads a valid card, it will not read a card again untilthe hold off time has elapsed.The standard data ouputs which are available using jumper JU1 allgive a hold off time of 1 second for the SM501 Reader, and 5 secondsfor the  SM501K Reader.If a key is pressed within the 5 seconds hold off time on the SM501KReader, the hold off time is reset to 2 seconds from the time the keywas pressed. Pressing another key within the 2 seconds hold off timeresets the hold off time again, so that it is always 2 seconds after thelast key was pressed.Repeat Data Delay (RDD)When the Reader reads data from a card, it sends card data to thehost. After it has done this, it will not send the same card data to thehost again until the RDD time has elapsed. This prevents the systembecoming overloaded with lots of data from one card being read overand over again.The standard data ouputs which are available using jumper JU1 allgive a repeat data delay of 2 seconds. Note that if the hold off time islonger than the RDD (as with the standard data outputs on theSM501K Reader), the RDD has no effect.
SM501 and SM501K Contactless Smartcard Reader4-4
5-1Chapter 5  Data outputThe  SM501 and SM501K Readers offer a choice of Wiegand orMagnetic Stripe or BCLINK interface to communicate with a hostsystem. You select the interface you require using the jumpers on theReader, see chapter 3.Electrical characteristics of outputs from theReaderThe Wiegand interface uses the data lines D0, D1 and DA.All outputs are driven by open drain drivers which can each sink upto 250mA. When a driver is off, its output is pulled up to +5V (theregulated logic voltage on the board) by a 1k resistor (and also bywhatever is connected at the host end).The polarities of the three data outputs (D0, D1 and DA) areindividually selectable (active-high or active-low) using aconfiguration card: contact Technical Support in Cambridge fordetails.The diagram below shows the logical implementation of the outputsused for the Wiegand interface.D0D1DA+5V0V0V1k 1k 1k
SM501 and SM501K Contactless Smartcard Reader5-2Data Hold inputThe Reader can be configured to use the AMBER LED input as a DataHold input (H). This can be used by the host to buffer up to five datamessage in the Reader until the host is ready to read them. Thisenables the data lines from two Readers to be connected in parallel,the host polling each in turn by releasing its Data Hold input, readingthe data, then asserting the Data Hold input again. If you do not readthe messages quickly enough and the message buffer becomes full,new messages will be thrown away.Wiegand interfaceConnectionsThe pin connections for the Wiegand interface are as follows:0V (ground)D0 (logic 0)D1 (logic 1)DA (data available)Electrical characteristicsThe interface provides three outputs: logic zero data (D0), logic onedata (D1) and data available (DA).Data transfer is performed by pulsing the D0 line to indicate a logiczero and by pulsing the D1 line to indicate a logic one. The voltage ofthe data lines is +5V or 0V.The Data Available output (DA) is provided to tell the host system itmust read a data message from the Reader. DA becomes active 1msbefore data is sent and is released 1ms after the data has been sent.Data formatThere are three aspects to the format of the data message, all ofwhich can be varied, depending on the interface setting you use:•  Framing bits at the start and finish of the message.•  Any parity bits which may be used.•  The data from the card.
Data output5-3The following diagram shows a typical message structure.LSBData FramingTransmitted lastFramingTransmitted firstTrailingParityLeadingParityMSBFraming bits are usually either not used or confined to start and stopbits which have a fixed state. Some applications require a morecomplicated sequence of framing bits, usually at the start of themessage.Parity bits are used to check the integrity of the data message. Paritymay be odd or even and it may be calculated from the data only orfrom the data and some framing bits.Card dataData from the card can be any number of bits including any paritycheck bits which may be stored in the card code. The interfaceselected determines whether the data is sent most significant bit firstor least significant bit first.PINpad dataData from a PINpad is sent whenever a key is pressed, providing theReader is not already sending a card data message, in which case itsends the PINpad data afterwards. PINpad data has 8 data bits. Thefirst four bits are the inverse of the PINpad key, the second four bitsare the PINpad key. For example, if the data is 1010 0101, the keypressed was 5. If the data is 0100 1011, the key pressed was #. (Hex0 to 9 corresponds to keys 0 to 9, hex A is * and hex B is #.)
SM501 and SM501K Contactless Smartcard Reader5-4Magnetic StripeA Magnetic Stripe interface is provided which simulates the output ofa magnetic card reader.ConnectionsThe pin connections for the Magnetic Stripe interface are as follows:0V (ground)D0 (data)D1 (strobe)DA (present)Electrical characteristicsThe interface provides three outputs: Present, Data and Strobe.Present is a signal given by a magnetic card reader indicating that acard has been inserted in the slot. On the Readers, this signalbecomes active just before data is sent and is released after the datahas been sent.Data is a signal whose level reflects the value of the bit in the code.Strobe is a series of clock pulses. Data can be sampled on either therising edge or the falling edge of the Strobe signal.The following diagram should make clear the action of all threesignals in a data transfer. In this example, the Data line (D0) is highfor a one and low for a zero:Present (DA)Data (D0)Strobe (D1)Card number 0 0 010111
Data output5-5PINpad dataData from a PINpad is sent whenever a key is pressed, providing theReader is not already sending a card data message, in which case itsends the PINpad data afterwards. PINpad data has 8 data bits. Thefirst four bits are the inverse of the PINpad key, the second four bitsare the PINpad key. For example, if the data is 1010 0101, the keypressed was 5. If the data is 0100 1011, the key pressed was #. (Hex0 to 9 corresponds to keys 0 to 9, hex A is * and hex B is #.)Whenever a key is pressed, the Strobe output pulses 8 times, and theData output should be sampled at each Strobe pulse to give the 8data bits corresponding to the key that was pressed. Note thatPINpad data is not output as an ASCII character.Custom interfacesIt is possible to configure your own interface: contact TechnicalSupport in Cambridge for details.
SM501 and SM501K Contactless Smartcard Reader5-6
6-1Chapter 6  Card data formatChip serial number modeThis mode will work with any Mifare contactless smartcard regardlessof the data content and security keys used.The Reader will read the first card it finds at the antenna and outputthe chip serial number as its data.The chip serial number is a number programmed into the card at thetime of manufacture which is guaranteed to be unique regardless ofthe source or application of the card.Girovend modeThis mode enables you to use cards that have been pre-programmedby Girovend to work with their cashless vending systems.The Girovend cards are programmed in accordance with the Mifareapplication directory standard.The Girovend cards contain a public access sector which contains,among other things, an 8 bit “installation code”, an 8 bit “systemcode” and an 18 bit “serial number”.The Reader treats the system code in the same way as a CotagDistributor Code, and treats the installation code in the same way asa Cotag Site Code, and treats the serial number in the same way as aCotag Card Number.When reading cards, the Reader will interrogate all the cardscurrently in range of the antenna one by one until a card is foundwhich contains Girovend data. If the installer code matches thatlearnt by the Reader (see the section at the beginning of chapter 3 fordetails of teaching the Reader a Distributor Code) then it outputs thesystem code and serial number via the currently selected datainterface.If the installer code does not match that learnt by the Reader, theReader will keep interrogating the rest of the cards.
SM501 and SM501K Contactless Smartcard Reader6-2Cotag modeThis mode uses smartcards which have been programmed withCotag’s own data, see below for details.The Cotag cards are programmed in accordance with the Mifareapplication directory standard.A Cotag programmed card may contain one or more sectors ofinformation which may be either access control data or configurationdata. Every sector contains the distributor code.When reading cards the reader will interrogate all the cards currentlyin the range of the antenna one by one until a card is found whichcontains Cotag data. If the Distributor Code matches that learnt bythe Reader  (see the section at the beginning of chapter 3 for detailsof teaching the Reader a Distributor Code) then the Reader reads andprocesses each sector which is present .Information contained in a Cotag smartcardThis section should be read with a good understanding of thestructure of the data in a Mifare contactless card, particularly thestructure of the MAD (Mifare Application Directory). (For thisinformation, see the Mifare standardisation note entitled “MIFAREApplication directory MAD”.)Note: all numbers stored in a Cotag sector are stored most significantbyte first (this is is different from most other data in the card).A Cotag programmed card may contain between one and threesectors of information. Each sector has the Cotag AID (ApplicationIdentifier) in the relevant position in the MAD. (Cotag’s AID is $4837,that is: the $37th access control application ($48 = access control)The sectors all have the following structure:DC Type CS44 bytes of data164Cotag Read key Cotag Write keyAccess bytesDC - Distributor code
Card data format6-3Type - Type of sector - can be one of the folowing values0 - Access control sector1 - Configuration sector2 - Configuration extension sectorCS - Checksum correction byte - this is calculated so thatthe EOR of the first 48 bytes of the sector = $AA.Data - This is the 44 bytes of sector data - its use use isdictated by the sector type and is described in detailbelow.Cotag Read key - Cotag’s  own  secret  readkey.Cotag Write key - Cotag’s  own  secret  writekey.Access bytes - See  GEMPLUS“Contactless SerialReaders ReferenceManual” for a descriptionof this area.Sector type 0 - Access controlIf this sector is present it must be the highest numbered Cotag sectoron a card (that is, it must come after any configuration sectors).The data contained in this type of sector has the following structure:164CNIS SCIS - 3 bit Issue state of card (0 - 7)SC - 16 bit Site code of card (0 - 65,535)CN - 64 bit Card number of card(0 - 281,474,976,710,655)Other sector typesOther sector types are defined which enable you to configure Readerinterface type 5. Contact Technical Support in Cambridge for details.
SM501 and SM501K Contactless Smartcard Reader6-4

Navigation menu