Skip to content Skip to sidebar Skip to footer

Cctalk Coin Acceptor No Reaction When Coin Inserted

I write Linux application that is supposed to handle coins insertations (let's say that for now I need to recognize in application what coin has been inserted). I use SCA1 Coin Acc

Solution 1:

I would have written this as a comment but I do not have enough reputation:

I have also used Baldanos' library as a starting point to get my coin acceptor to work. I would first replace

ser.read(50) 

with

time.sleep(0.01)          #give it time for all bytes to be in ser.in_waiting   
ser.read(ser.in_waiting)

Since, as said in the comments, you don't know if the message will be 50 bytes long.

That said, I managed to get it to work without changing too many things. For me, the coin acceptor was already set to Euros. What does your coin acceptor return when you request the coin id's (sending "184" and the range of 1,16)?

Post a Comment for "Cctalk Coin Acceptor No Reaction When Coin Inserted"