I think on to posibilities: the first is that you are
getting the response to a previous command, and you
sould call tcflush() before writting the command.

The sencond is that the Towitoko documentation could
be not exactly describing the return value format,
that should be as follows:

The response code for (0x03,0x07) command is [ss,nc]
where nc is not used and ss has the following format:

ss = b7 b6 b5 b4 b3 b2 b1 b0

b3 b2 b1 b0 = 0 0 0 0
b7 = change status: 1 => change, 0 => no change
b6 = card status: 1 => present, 0 => not present 

according to this 0x50 is the same as 0x40, that is
"card present / no change"

I don't know what the 4th bit value means, but it
would be good to know this from somebody at Towitoko.

--- Eelco Duijker <[EMAIL PROTECTED]> wrote:
> I also work with a towitoko, but i only know these
> responses:
> Output parameter:
>  * result:
>  *   0x00: No card / no change
>  *  0x80: No card / cahnge
>  *  0x40: Card present / no change
>  *  0xC0: Card present / change
> 
> It would be great to hear what 0x50 is, though I
> never had it.
> 
> Eelco Duijker
> 
> Richard Lang wrote:
> 
> > Hi!
> >
> > I have a Towitoko ChipDriveExtern 4.3
> >
> > When I ask (0x03;0x07) for the CardStatus, I get
> sometimes 0x50 back.
> > What does it mean?
> >
> > Richard
> >
> >
>
***************************************************************
> > Linux Smart Card Developers - M.U.S.C.L.E.
> > (Movement for the Use of Smart Cards in a Linux
> Environment)
> > http://www.linuxnet.com/smartcard/index.html
> >
>
***************************************************************
> > begin:vcard 
> n:Duijker;Eelco
> tel;cell:+31(0)651404412
> tel;fax:+31(0)235345477
> tel;work:+31(0)235420578
> x-mozilla-html:FALSE
> url:www.ITsec.nl
> org:ITsec Nederland BV;software development
> adr:;;Postbus 5120;Haarlem;;2000 GC;The Netherlands
> version:2.1
> email;internet:[EMAIL PROTECTED]
> title:junior system engineer
> fn:Eelco Duijker
> end:vcard
> 
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
***************************************************************
Linux Smart Card Developers - M.U.S.C.L.E.
(Movement for the Use of Smart Cards in a Linux Environment)
http://www.linuxnet.com/smartcard/index.html
***************************************************************

Reply via email to