[Pcsclite-muscle] Escape commands Gemalto CT700

Ludovic Rousseau ludovic.rousseau at gmail.com
Tue Aug 31 02:39:56 PDT 2021


Michael,

Le dim. 29 août 2021 à 14:42, Ludovic Rousseau
<ludovic.rousseau at gmail.com> a écrit :
>
> Le dim. 29 août 2021 à 01:12, Michael StJohns <mstjohns at comcast.net> a écrit :
> > Hi -
>
> Hello,
>
> > Does anyone know of a list of escape commands for use with the CT700 (or
> > for that matter any of the Gemalto Pinpads)?
> >
> > I'm specifically trying to find the "write text to display" command.
>
> I have not tested on my side but you can try these escape commands:
>
> - 0xB6 : erase the display
> - 0x68 + 32 bytes : the first 16 bytes are for the first line of text,
> the next 16 bytes are for the second line.
>
> Tell us if it works.

I tried on 2 old pinpad readers 08e6:3478 (one Gemplus and one Gemalto)
https://ccid.apdu.fr/ccid/shouldwork.html#0x08E60x3478
In both cases I get a CCID error. The reader does not accept the
escape command 0xB6 or 0x68.

00000011 [140682182256384] ifdhandler.c:1440:IFDHControl()
ControlCode: 0x42000001, usb:08e6/3478:libudev:0:/dev/bus/usb/002/013
(lun: 0)
00000011 [140682182256384] Control TxBuffer: 68 30 31 32 33 34 35 36
37 38 39 41 42 43 44 45 46 30 31 32 33 34 35 36 37 38 39 41 42 43 44
45 46
00000015 [140682182256384] -> 000000 6B 21 00 00 00 00 07 00 00 00 68
30 31 32 33 34 35 36 37 38 39 41 42 43 44 45 46 30 31 32 33 34 35 36
37 38 39 41 42 43 44 45 46
00000678 [140682182256384] <- 000000 83 00 00 00 00 00 07 42 0A 00
00000020 [140682182256384] commands.c:1019:CmdEscapeCheck error on byte 10
00000007 [140682182256384] Control RxBuffer:
00000006 [140682182256384] ifdwrapper.c:477:IFDControl() Card not
transacted: 612

Byte 10 is the first data byte so 0x68 here.


I then tried with a Gemalto CT710
https://ccid.apdu.fr/ccid/shouldwork.html#0x08E60x34C2

This time the command is not rejected. I get no error but I also get
nothing special on the display.
I also get no error if I use another command code like 0xAA or 0x42.
It looks like the reader just ignores the unsupported escape commands.

My source code is attached.
You need to enable DRIVER_OPTION_CCID_EXCHANGE_AUTHORIZED in the
driver Info.plist file.

Any success on your side?

Bye

-- 
 Dr. Ludovic Rousseau
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PinPadWriteDisplay.py
Type: text/x-python
Size: 1618 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/pcsclite-muscle/attachments/20210831/823c0545/attachment.py>


More information about the pcsclite-muscle mailing list