WriteInterfaceBlock

Support for the Milan Intelligent interface, sold by Money Controls as the Paylink USB unit and for the earlier PCI card version.

Moderators: aardvark, davebush, Admin

Post Reply
stormgames
Posts: 3
Joined: Thu Jul 27, 2006 11:00 am

WriteInterfaceBlock

Post by stormgames »

anyone any idea what the first parameter is supposed to be ? it documented as different in every PDF and is ambiguous, at best!

thanks
stormgames
Posts: 3
Joined: Thu Jul 27, 2006 11:00 am

Re: WriteInterfaceBlock

Post by stormgames »

actual an example of simple poll of a notreader on address 40 would be useful
davebush
Posts: 482
Joined: Fri Oct 22, 2004 12:20 pm

Re: WriteInterfaceBlock

Post by davebush »

I don't guarantee this works as written , but it should be close.

Code: Select all

char PollNoteAcc[] = {40, 0, 1,  254) ;

static void SendCcTalk(char* Command)
    {
    WriteInterfaceBlock(2, Command, Command[1] + 4) ;
    }

::::
    SendccTalk(PollNoteAcc) ;

    char Reply[256] ;
    int Returned = 0 ;
    do {
      int Returned = ReadInterfaceBlock(2, (char *)&Reply, sizeof Reply) ;
      } while (Returned == 0) ;
Aardvark software developer. Please put all communication on the problem through the board for the benefit of others.
Post Reply