Skip to content
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

Response size seems to always be 10 smaller #7

Open
hesa2020 opened this issue Dec 23, 2022 · 4 comments
Open

Response size seems to always be 10 smaller #7

hesa2020 opened this issue Dec 23, 2022 · 4 comments

Comments

@hesa2020
Copy link

hesa2020 commented Dec 23, 2022

Hello I wanted to try this awesome project to integrate with my devices however I have been having a few issues, I first attempted with a teensy 3.6 but without the uart stuff just using the builtin HardwareSerial in 9 bits mode but it was like if no data was ever received.

So I went and bought a mega 2560 from a local store today.

Instantly im seeing progress however the m_count from GetResponse doesnt match the response_size in both setup and tube_status by exactly 10

image

I was wondering if you would have any idea why I am using a Conlux CCM5G.
my PNP transistors are 2N4403 in case it make a differences, I dont have much experience with PNP transistors so I dont know if this one make a signifiant difference.

@hesa2020
Copy link
Author

hesa2020 commented Dec 23, 2022

I filled coins into the machine:

  • 12 x 1$
  • 71 x 0.25$
  • 49 x 0.10$
  • 41 x 0.05$

And its reading this correctly, so I am assuming my device doesnt send the full length of data.

image

However something with the polling is wrong, it keep reading previous state over and over for a while and then randomly changes when it wants so im assuming something with reading is acting funky.

@Tarcontar
Copy link
Owner

Hi, what exact coin changer do you have? Sadly I dont have any hardware anymore myself so I cant do any debugging or investigation. Do you have any documentation for the coin changer? Maybe it needs to be configured in any way. Could you provide a picture of your wiring?

@hesa2020
Copy link
Author

My device is a Conlux CCM5G, to provide a picture it will be a bit hard since I soldered everything, but it was doing the same thing on the breadboard wired exactly like the example/schematic you provided.

This should be the manual: https://www.vendingworld.com/Manuals/Conlux/CCM5%20Full%20Service%20Manual.pdf

I would like to show you the behavior over a call is it possible ?

@Tarcontar
Copy link
Owner

hi, did you find the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants