LC-field
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Andreas_Schleiss
Posted On:   Wednesday, April 3, 2002 11:24 PM

Hi there;


I have tried to copy the HelloWorld-sample and change some little things...Now when I send the following command


0x80 0x20 0x00 0x00 0x00 0x7F


it returns the error 0x6f00, but if I fill the frame with data like


0x80 0x20 0x00 0x00 0x01 0x04 0x7F


it will work fine. can somebody help? thanx


PS. In the first case the apdubuffer[ISO7816.OFFSET_LC] contains 0x7F!

Re: LC-field

Posted By:   Joseph_Smith  
Posted On:   Thursday, April 4, 2002 02:04 PM

LC is the lenght of the CDATA. If there aren't any, pass 0.
So in your case, you are instructing the LC that there is 1 byte of data coming 0x4.
About | Sitemap | Contact