-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bank notes are sometimes not correctly accepted #9
Comments
Here are the logs of a 10 Euro bill not being accepted: After pressing the button to "Give change" again, it immediately gave 20 coins of change: Something is going on with the interface to the bill acceptor. @pc-coholic do you have some insight? |
Just so I get this right (without having looked at the logs):
Is that correct, @schneider42 ? |
"Bill gets refused": The rest is as described. |
Logfile 1: 0xF0: Everything is OK This is given multiple times, then the timeout happens (as defined in https://github.com/muccc/fnordload/blob/master/fnordload/note_validator.py#L56). Logfile 2: 0xF0: Everything is OK 0xF0: Everything is OK So I think what is happening here is, that we just run into the 30 seconds timeout, while we wait for an answer from the bill-validator. IMHO this can happen because of two reasons:
The developer-manual specifies, that a poll has to occur at least every 5 seconds to keep the device alive.
A long, long time ago, increasing the time between the poll-commands caused problems when using the escrow-function (Hold the money but do not stack it yet): If you didn't send a escrow-poll in time, the devices would have already stacked the banknote before you told it to hold it. But as we are not using this functionality, this should pose no problem. |
I think I now have fairly good idea what happening:
We just need to disable or retrigger the timeout once a bill is inserted. |
With a 5 Euro bill, I see the following:
With a 10 Euro bill, this happened:
@pc-coholic: Is this a correct way to see that the acceptor started to get a bill? |
Otherwise it might trigger a timeout while a bill is currently processed. Closes muccc#9
Ah, scrap my last comment. The PR just restarts the timeout on any kind of activity. I think this should be fine. |
I merged the PR (which was kinda already present on the machine) - but the problem seems to persist... Needs further debugging.... |
I've enabled more verbose logging. Waiting for a new case..
The text was updated successfully, but these errors were encountered: