Hello, I am new to this forum but I already searched also the Russian topics and found nothing that can help me.
I wrote a basic XFS sample, it just inquire some device, ask for status and so on.
It works fine on all diebold and ncr but it fails on all wincor models I have.
the error look like:
WFSOpen KO
FFFFFFD5 (-43) WFS_ERR_SERVICE_NOT_FOUND
as if it can find the device, but it happen for all devices (printer, cdm, anything).
D you have any suggestion why this is happening only on wincor?
cheers
trouble issueing xfs command to wincor
Re: trouble issueing xfs command to wincor
Make sure you've started XFS services (fwmain32.exe). Consult WN doc for details.
Re: trouble issueing xfs command to wincor
Thanks for your answer.
The fwmain32.exe is running and the ATMs in our lab are fully operating.
The are connected to the the test HOST and I can succesfully withdraw our fake bills.
I made further tests and the only device that seem to answer is the VDM. Does it mean that Wincor make use of vendor dependent Module? I can't find anything VDM related to our protopas conf
Philippe
The fwmain32.exe is running and the ATMs in our lab are fully operating.
The are connected to the the test HOST and I can succesfully withdraw our fake bills.
I made further tests and the only device that seem to answer is the VDM. Does it mean that Wincor make use of vendor dependent Module? I can't find anything VDM related to our protopas conf
Philippe
Re: trouble issueing xfs command to wincor
Maybe you're just having some small errors - such as incorrect provider names or wrong WFSVERSION ? Could you show an example of your code?
Re: trouble issueing xfs command to wincor
yes, sure.
Here is a sample code:
#include <stdio.h>
#include <xfscdm.h>
#include <xfsspi.h>
#include <xfsvdm.h>
#include <xfsadmin.h>
#include <stdio.h>
#define RECOGNISED_VERSIONS 0x00000303
int main( int argc, char ** argv)
{
HSERVICE hService=0;
WFSVERSION WfsVersion;
WFSVERSION SvcVersion, SpiVersion;
char szLogicalName[]="PIN30";
if( WFSStartUp(RECOGNISED_VERSIONS, &WfsVersion) ) {
printf("Error 1\n");
exit(1);
}
if( WFSOpen(szLogicalName, WFS_DEFAULT_HAPP, "TEST", 0, 30*1000, RECOGNISED_VERSIONS, &SvcVersion, &SpiVersion, &hService ) != WFS_SUCCESS)
{
printf("Error 2\n");
exit(1);
}
WFSClose (hService);
WFSCleanUp();
return 0;
}
Here is a sample code:
#include <stdio.h>
#include <xfscdm.h>
#include <xfsspi.h>
#include <xfsvdm.h>
#include <xfsadmin.h>
#include <stdio.h>
#define RECOGNISED_VERSIONS 0x00000303
int main( int argc, char ** argv)
{
HSERVICE hService=0;
WFSVERSION WfsVersion;
WFSVERSION SvcVersion, SpiVersion;
char szLogicalName[]="PIN30";
if( WFSStartUp(RECOGNISED_VERSIONS, &WfsVersion) ) {
printf("Error 1\n");
exit(1);
}
if( WFSOpen(szLogicalName, WFS_DEFAULT_HAPP, "TEST", 0, 30*1000, RECOGNISED_VERSIONS, &SvcVersion, &SpiVersion, &hService ) != WFS_SUCCESS)
{
printf("Error 2\n");
exit(1);
}
WFSClose (hService);
WFSCleanUp();
return 0;
}
Re: trouble issueing xfs command to wincor
Seems ok.
But WFS_ERR_SERVICE_NOT_FOUND almost always means wrong (inexistent) provider name.
Try to see what WN trace says (trctrace and trcerror).
But WFS_ERR_SERVICE_NOT_FOUND almost always means wrong (inexistent) provider name.
Try to see what WN trace says (trctrace and trcerror).
Re: trouble issueing xfs command to wincor
Unfortunately the trace (also on live systems) say that ATMs here are using default Provider Names (eg. cdm30, pin30, etc.) and ppl hwo manage atm confirmed it.
What send me mad is that I've the same error for all devices I can have both from conf files and registry.
Only devices that answer to my WFSOpen() is the VDM.
From your experience do WCR use VDM or just plain XFS?
p.
What send me mad is that I've the same error for all devices I can have both from conf files and registry.
Only devices that answer to my WFSOpen() is the VDM.
From your experience do WCR use VDM or just plain XFS?
p.
Re: trouble issueing xfs command to wincor
WN has properly working XFS layer, so it's very strange you cannot open devices.