I'm creating an application using CEN/XFS API and i'm using PIN and IDC modules.
In the first step(after startup/open/register), i want to let user insert it's id-card. So i call WFS_CMD_IDC_READ_RAW_DATA
with WFSAsyncExecute
command. After this command completed(after: Messages WFS_EXECUTE_COMPLETE
event), i expect to have WFS_EXEE_IDC_MEDIAINSERTED
event, but i always get WFS_EXEE_IDC_INVALIDMEDIA
in my application. What's going on?
Edit: To ensure that the card reader doesn't contain any card inside of it, i also add a checking that checks status of it, if it's status = WFS_EXEE_IDC_MEDIAINSERTED
, i reset it(retain all cards) and after that call: WFS_CMD_IDC_READ_RAW_DATA
. But again, i always get WFS_EXEE_IDC_INVALIDMEDIA
event.