I'm working on a project that includes the "EMP800" coin acceptor, which operates utilizing the cctalk protocol. The data frame should look like this:
TX data = 2 0 1 245 8
8 = checksum
and the data received:
RX data = 1 13 2 0 67 111 105 110 32 65 99 99 101 112 116 111 114 22
1 = destination address
13 = 13 data bytes
2 = source address
0 = reply header
67…114 = ASCII for ‘Coin Acceptor’
22 = checksum ( sum of all packet bytes is zero).
My coin acceptor is communicating with the esp32 when I send data, just like in the example above, but the problem is that there is no cctalk library compatible with esp32, so I had to create a direct function using, for example, "cctalk headers" to identify coin IDs, etc..
Is there a specific method (algorithm) for identifying coin values and accepting them via a coin acceptor?
I moved your topic to a more appropriate forum category @daalih.
The Nano ESP32 category you chose is only used for discussions directly related to the Arduino Nano ESP32 board.
In the future, please take the time to pick the forum category that best suits the subject of your question. There is an "About the _____ category" topic at the top of each category that explains its purpose.
I attempted to run my coin acceptor with this code, but received no results. I had no information about this protocol, which is why I assumed it was incompatible with esp32.
That's hardly convincing evidence. I'd start with the basics ... what are the signal levels of the coin acceptor's I/O? Are they RS232 or TTL UART? If TTL, are they 3.3V, 5V, or something else?
After that you'll need to dig into the ccTalk protocol and the library code. You should also get a logic analyzer so you can look at the raw data transmissions. They're low cost and available on Amazon.