Hitman666 / nbCcTalkCoinAcceptor

This project contains usage instructions and code examples (C#) for communication with coin acceptor using the ccTalk protocol
29 stars 19 forks source link

CoinAcceptor isn't detected if the application is closed in a bad way. #2

Open criticc opened 10 years ago

criticc commented 10 years ago

hi, i've tested your assembly with my coin acceptor and its working great but when something closes my application like an unexpected error for example or something like that, the coin acceptor isn't detected anymore just if i turn off and on again the usb cable or the com port. Is there any way to solve this?

Hitman666 commented 10 years ago

So, if you rerun the coin acceptor executable after it crashes it doesn't recognize the coin acceptor machine until you replug the usb? Hmm, I must say I haven't run into this situation, but if the coin acceptor executable works after restarting it then I would try to make a simple "checker script" which checks (every x minutes) if the coin acceptor executable is running and if it's not - start it. WDYT?

criticc commented 10 years ago

I could do that but when i find that the executable is not running and i start it again how can reconnect to the coinacceptor? if it isnt detectable?