We are setting up your paylink system with Debian Linux. Well all went fine and we’ve finally got round to working on the video system full time.
However We’ve hit a couple of snags which I hope you can help talk us around. First when I try to compile using Aesimei.h I get a conflict with type “BOOL” which is first defined in the /usr/include/x11/xmd.h and file /usr/include/wintypes.h, X11 is used by Debian (linux) for screen draw etc. I’ve got round this by commenting out the wintypes.h define, which I presume will cause no errors? With that commented out code will compile.
I run the demo and it works fine.
So on to my first test. I start the aeswdriver, then run a bit of test code where I open the mei and enable the interface first, I then read the dispensers and print the findings. I’ve got a single azkyone cc talk hoper on cc tslk id 3, so it should be a pound? However when I read out the dispenser structure values it appears to be mixed up, it shows in print out (and through a debugger)
OK open
Unit 16909313
InterfaceNumber 1
UnitAddress 2
Value 3
Count 100
Inhibit 0
Currency 0
Coin count 0
Coin Count st 0
>From the code
for (i=0,serial=0; ReadDispenserDetails(serial, &Dispenser); serial++,i++)
{
printf("Unit %ld \n",Dispenser.Unit);
printf("InterfaceNumber %ld \n",Dispenser.InterfaceNumber);
printf("UnitAddress %ld \n",Dispenser.UnitAddress);
printf("Value %ld \n",Dispenser.Value);
printf("Count %ld \n",Dispenser.Count);
printf("Inhibit %ld \n",Dispenser.Inhibit);
printf("Currency %ld \n",Dispenser.Currency);
printf("Coin count %ld \n",Dispenser.CoinCount);
printf("Coin Count st %ld \n",Dispenser.CoinCountStatus);
}
The first thing which strikes me is shouldn’t the unit value be 100 and unit address be 3? It seems mixed up.
Also if I try to read the status variable I get an error using using printf("Status %ld \n",Dispenser.Status);
Gives Source/PayLinkSystem.c:170: error: syntax error before "int"
We’re really keen to use your system but are under real time constraints now, can you give me some pointers on the above.