Protocol for communcation between ATM and bank