GUI of HSM Simulator

May 4, 2012 at 7:41 AM


Following url describes how to run visual interface of simulator


I dont see it in my programs files. Although i can run it using the console command but i want to use the GUI as well.


any help ?

Thanks & Regards,


May 4, 2012 at 7:48 AM

Under both 7 and XP, the installer doesn't create a program group, so you should see it in "All Programs".

May 4, 2012 at 11:27 AM

Thanks Nick.

 Yes, it is there. and running.

I have almost reached my destination. But some thing is left. I have tried 2 approaches.

First, I downlaoded the PVV Clashing demo source code, rebuild it , run the




I made another new project, added ThalesCore.dll in the project and communicated with Simulator. 

In this way, I was sending commands and receivnig messages. Adn it was working fine.

Secondly I installed the simulator installer and run the GUI.

Now from my application, i tried to connect to this simulator. Connection was built, but when i tried to pass same command to this simulator, it returned me response "Command not found"

Any help on this ?

Thanks & Regards,




May 4, 2012 at 11:36 AM

Just done with this problem as well. Thanks.


May 4, 2012 at 11:39 AM

Actually the main reason of using GUI for Simulator was to confirm, whether Simulator is working for "PE" commands or not. AS on interface there is an area of "Printer Output"

But as you mentioned earlier, this simulator will not response real time for "PE", "PA" and similar more commands. But still it is very very helpful.

Any suggessions, how should i check PE and PA commands ?


Thanks & Regards,

May 4, 2012 at 12:32 PM

Unfortunately, to check a client implementation of the PA and PE commands, you'll have to use an actual HSM in order to ensure that it accepts the printer formatting you'll be loading and that it is valid.

May 4, 2012 at 12:40 PM

Thanks Nick.

May 8, 2012 at 8:05 AM

Now I got connected to real HSM.

As my main purpose is to print the PIN. So I am passing it following commands

Step 1

JE (For translation from ZPK to LMK)

It is working fine.

Step 2

Now to set print format i need to send following commands

PA, PC and LI

Question 1: Do I need to send all of these 3 commands?

Question 2: Both PE and PC ommands take a parameter "Data" (Symbols and constants defined in Print Formatting Symbols Tables.)

I am passing this data value as "ASDF" and getting error code "00" in response for both commands

Following is detail

PA Command = 1234PAASDF

PA Response =  1234PB00

PC Command = 1234PCASDF 

PC Response = 1234PD00

Which shows that there is no error.

Question 3:

For LI Command I am sending following Command and getting the response.

LI Command = 1234LI2A

LI Response = 1234LJ15

I am putting efforts on where i am doing wrong in this. As LI command is taking parameters of length and character which i am providing to it.

Any suggessions on this?


Many Thanks & Regards,


May 8, 2012 at 8:24 AM

No suggestions, really. Printing is something you'll have to either figure out by trial and error or get command traces of someone that's done it before and go from there.

May 8, 2012 at 9:17 AM

Alright Nick.

I look into this.

Thanks for your helf so far. Really appreciate.




May 8, 2012 at 10:41 AM

Finally I got to the error code of "Printer not ready"

At this time, I would like to know about parameter of PA command which is


Its length and Type = "nA"

and its details = "Symbols and constants defined in Print Formatting Symbols Tables."


I am looking into these symbols and constants information. Any help on this ?

Thanks & Regards,


May 8, 2012 at 10:42 AM

Unfortunately I can't any more help beyond what's already available in the manual.

May 8, 2012 at 11:12 AM


May 8, 2012 at 12:20 PM

I have executed PE command and it responded me successfully with PF response. But not responding me PZ response.

I am using following code

   command = messageHeader + commnadCode + documentType + accountNumber + pin + field0 + delimeterString + field1 + delimeter + trailor

        Dim printPFReply As String = SendFunctionCommand(command)

        Dim printPZReply As String = SendFunctionCommand(command)



    Private Function SendFunctionCommand(ByVal s As String) As String
        thalesData = ""

        While thalesData = "" AndAlso thales.IsConnected
        End While

        If Not thales.IsConnected Then
            Return ""
            Return thalesData
        End If
    End Function



 Now both variables printPFReply and printPZReply do respond only PF Response not PZ Response. :(










May 8, 2012 at 2:17 PM

I don't know why that happens.

May 8, 2012 at 2:32 PM

ok, Thanks