Amadis
GPI Polling
Polling addresses card interface detection. In the scope of Agnos Framework integration, it usually covers contact and contactless interfaces, but for the purpose of an actual payment system, magstripe is also part of the problem. Services related to polling are:
tGPIError gpiTechnoPolling(const unsigned char technologies, const unsigned int timeout,unsigned char *technologyDetected);
Use this primitive from L3 if contact and/or magstripe only are(is) supported:
Define a filter made of the technologies that are to be detected by the GPI
Set a timeout for the maximum polling duration
Call the primitive
Analyse the error code and the technology detected
It is also possible to use this primitive to detect card removal.
tGPIError gpiPolling(const char* contactlessCardReaderName);
This primitive is used by AgnosEP if contactless plus - optionally - contact and/or magstripe are(is) supported. See Antenna Management page.