Monday 24 September 2012

Entry Point method of Telium application


void entry(void)   ---> In entry.c file
{
object_info_t info;
/// Recording services
ObjectGetInfo(OBJECT_TYPE_APPLI, ApplicationGetCurrent(),&info);
give_interface(info.application_type, NULL, NULL);
strcpy(info.name," MhLottery ");
memcpy(appName,info.name,OBJECT_NAME_LEN);
appName[OBJECT_NAME_LEN] = '\0';

}

Entry points are application’s functions lunched by the manager on events as :
– Reset
– Key pressed
– Clock (cyclic execution)
– Magnetic card swiped
– Smart card inserted
– File received
– It is also possible to create your own event using IAM mechanism…
Application must record services for all entry points at application boot
2 types of entry point (EP)
– Polling EP : Manager polls all applications (broadcast)
• Polling order is performed according to a defined priority
– Selecting EP : Manager gives focus to one application
At the end of each entry point, application must return to Manager

int after_reset(NO_SEGMENT no, void *p1, S_TRANSOUT *param_out)
{
          ------------
      ----------------
}


– Activated on each terminal reset (Polling according to priority)
– No data coming from Manager
– Data to return to Manager
• S_TRANSOUT
» If previous transaction was interrupted
– Application reset processing
• Check if cold reset (after downloading) or warm reset (no downloading)
• Initialise data and create disks
• Latest moment to call RegisterPowerFailure()
• Load and Open all mandatory Dlls
» Note that these 2 last cases Dll and RegisterPowerFailure() can also be moved to
entry() function, just after the service registering command.

Device Tamper detection


Any tempering attempt :
– Clear the secret areas
– Display a warning message (“Alert irruption” blinking)
– Lock the keyboard
– Reactivation of the terminal needed (Recovery tool)
– :-) product is activated
– :-( product is deactivated

Tuesday 18 September 2012

Getting Start with EFT930G Terminal
















 SAGEM EFT930G POS Terminal we have to do the following:

  1. Look inside the folder where you installed the Telium SDK  in C:\Program Files\SDK30\SDK 9.4.0\. now go toComponent\OS folder. At that Folder you will see  m31 files. If your terminal is for MOCK-UP, upload the EFT930_MOCKUP.M31 and if it is for production, upload the file EFT930_DIR_PROD.M31
  2. When uploading is finished, “Disconnect” the terminal. The terminal will reboot and returns to LLT mode.
  3. Now the time to load managers file. It is also necessary for handling other application for running.
  4. “Connect” the terminal again, but this time, look for the \Component\Manager folder. In this folder, there are 4 flavors to choose from: EFT930_export_PROD.M31, EFT930_health_PROD.M31,EFT930_interne_PROD.M31, and EFT930_spain_PROD.M31. In our case, we usually select interne or export. Upload the selected telium manager by dragging the file.
  5. Disconnect the terminal. When the terminal reboots, it will ask for several parameters (if the application will be using GPRS radio, do not forget to select GPRS to AUTO and fill up the APN)
  6. When loading of manager is finished, the terminal will reboot again but this time the words “LOAD APPLICATION” will be displayed on screen.