Dear all.
 
I am a student doing my final year project where I need to deal with smart card that using T1 protocol which involves the block transfer. I had some difficulty in understanding on how the Sequence Number in the I-Block work?
 
Follow are some questions that I would like to ask. Hope someone can help me on this.
Your help will be very much appreciated.
 
  1. Is the Sequence Number (SN) in the I-Block is used only when got chaining?
 
  1. If NO chaining is in used during block transfer between reader and smart card:
What will the SN indicate? Will is always be 0 or it indicate the number of I-Block sent from the reader to the card? Which case is correct?
 
Example: Write binary command (I-Block 1)
                 Read binary command (I-Block 2)
                            Write binary command (I-Block 3)
                            Write binary command (I-Block 4)
 
      Case 1: The SN in I-Block will always be zero
                  I-Block 1 – SN=0
                  I-Block 2 – SN=0
                  I-Block 3 – SN =0
                  I-Block 4 – SN=0
 
      Case 2: Indicate the number of I-Block sent from the reader to the card.
                  I-Block 1 – SN=0
                  I-Block 2 – SN=1
                  I-Block 3 – SN=0
                  I-Block 4 – SN=1
 
  1. If chaining is in used during block transfer between reader and smart card:
What does the sequence number indicate? Is it indicate the number of I-Block sent for a single command where the SN will reset to 0 when it transmit next command or just indicate the number of I-Block sent from the reader to the card? Which case is correct?
 
Example: Write Binary command 1 (Contain 3 I-Block)
                Write Binary command 2 (Contain 2 I-block)
 
Case 1: Indicate the number of I-Block sent for a single command
Write binary command 1
                        I-Block 1 – SN=0
                        I-Block 2 – SN=1
                        I-Block 3 – SN=0
 
            Write Binary command 2
                        I-Block 1 – SN=0
                        I-Block 2 – SN=1
 
            Case 2: Indicate the total number of I-Block sent for all the command
Write binary command 1
                        I-Block 1 – SN=0
                        I-Block 2 – SN=1
                        I-Block 3 – SN=0
 
            Write Binary command 2
                        I-Block 4 – SN=1
                        I-Block 5 – SN=0
 
  1. In the case of block transfer where no chaining is in used:
If I receive a R-block from the card in response to a I-Block 2 (second I-Block sent with SN=1) sent from the reader to the card, I need to resent the previous I-Block. The question is, should I set the I-Block Sequence Number in the I-Block?
 
Case 1: By remain the SN as in I-Block 2 that is SN=1 (still indicate 2nd I-block sent from the reader to the card since the previous block sent failed or got error)
 
Case 2: Set the SN=0 that indicate that this is the 3rd I-Block sent from the reader to the card even though it resent the previous I-Block?
           
            Which case is correct?
 
Regards,
Jackie wong

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to