trouble issueing xfs command to wincor

Please, create your topics here (Any questions)
philippe
Прохожий
Сообщения: 4
Зарегистрирован: 13 фев 2016, 23:19
Авто: simca

trouble issueing xfs command to wincor

Непрочитанное сообщение philippe »

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
Аватара пользователя
magarila
Местный
Сообщения: 59
Зарегистрирован: 29 сен 2011, 20:09
Поблагодарили: 4 раза

Re: trouble issueing xfs command to wincor

Непрочитанное сообщение magarila »

Make sure you've started XFS services (fwmain32.exe). Consult WN doc for details.
philippe
Прохожий
Сообщения: 4
Зарегистрирован: 13 фев 2016, 23:19
Авто: simca

Re: trouble issueing xfs command to wincor

Непрочитанное сообщение philippe »

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
Аватара пользователя
magarila
Местный
Сообщения: 59
Зарегистрирован: 29 сен 2011, 20:09
Поблагодарили: 4 раза

Re: trouble issueing xfs command to wincor

Непрочитанное сообщение magarila »

Maybe you're just having some small errors - such as incorrect provider names or wrong WFSVERSION ? Could you show an example of your code?
philippe
Прохожий
Сообщения: 4
Зарегистрирован: 13 фев 2016, 23:19
Авто: simca

Re: trouble issueing xfs command to wincor

Непрочитанное сообщение philippe »

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;

}
Аватара пользователя
magarila
Местный
Сообщения: 59
Зарегистрирован: 29 сен 2011, 20:09
Поблагодарили: 4 раза

Re: trouble issueing xfs command to wincor

Непрочитанное сообщение magarila »

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).
philippe
Прохожий
Сообщения: 4
Зарегистрирован: 13 фев 2016, 23:19
Авто: simca

Re: trouble issueing xfs command to wincor

Непрочитанное сообщение philippe »

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.
Аватара пользователя
magarila
Местный
Сообщения: 59
Зарегистрирован: 29 сен 2011, 20:09
Поблагодарили: 4 раза

Re: trouble issueing xfs command to wincor

Непрочитанное сообщение magarila »

WN has properly working XFS layer, so it's very strange you cannot open devices.
Ответить