ccTalk on esp32 wroom

Hello everyone,

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

  • 2 = destination address

  • 0 = zero data bytes

  • 1 = source address

  • 245 = command header ‘Request equipment category id’

  • 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?

What is it about the library that makes it incompatible with the ESP32 ?

The Arduino architecture differs from the ESP32 architecture.

I realise that, of course, but it would be interesting to know which aspect of the difference causes the problem

Please post a link to a cctalk library that does not work with the R4. It could provide the basis for a compatible library

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.

Thanks in advance for your cooperation.

This is library i used for my project :

Sorry about that. This is the first time I post here.

1 Like

At first glance, there doesn't seem to be anything in that code that would make it incompatible with ESP32. What makes you think it is?

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.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.