languidsmartass / mdb-arduino-cashless Goto Github PK
View Code? Open in Web Editor NEWMDB Cashless Device implementation based on Arduino Uno and GPRS Shield
MDB Cashless Device implementation based on Arduino Uno and GPRS Shield
Hello,
I am using an arduino as a cashless device but i have a problem of command disorder, when arduino do reply of poll by a session begin response then suddenly vmc issues reset command and when reader comes to enable state then a proper vend occurs.. pls help
I'm so sorry for my newbie experience in C++ AVR syntax, i want to ask which pin do you use to connect from arduino to MDB RX TX vending machine? Is it pin 0 and 1 (serial that using for programming)?
Ps i'm using Arduino MEGA2560.
Hi i just try on same priject - vending with rfid. I suppouse (IMHO) that using socket server have more advantages for this project. How users put money on cards?
Dear Languid,
Where do I have to paste/replace all the ".c" and ".h" files.
I am using Arduino IDE 1.8.6 and the only location where I am able to locate USART.c and USART.h is at the folder location
C:\Program Files (x86)\Arduino\hardware\arduino\avr\firmwares\wifishield\wifi_dnld\src\SOFTWARE_FRAMEWORK\DRIVERS\USART
Please help me with the folder locations for the files.
Also I am trying to port this code to Arduino Mega. Please let me know which file I have to edit for 9 bit serial mode.
Hello awesome code written for cashless device.
I have some problems in my case. My device gets reader enable command and according to program device goes to enabled state so vmc should not issue reader enable command until reader gets disabled. But my device getting reader enable multiple times. Second is, when reader issues a beginsession command and vmc should ack, nack, ret in the response of beginsession. But in my case my device is getting 0x12 byte which is poll. And sometimes session begun and sometimes session does not begin. Do we need to set poll status to beginsession until device does not receive ack. Same with vendapproved and endsession command. Pls help
Thankyou
Do you have any sample schematics or pictures of how you connected it up?
(I know there is an example schematic in the MDB spec. I was hoping to see how you specifically did it with component model numbers. If you're willing to share and provide an answer it would be very helpful. Thank you in advance.)
Dear Languid,
I am Trying to use your software on an Arduino Mega.
Where do i have to change the Pin Numbers for Serial1?
Thanks a Lot, your Software is very usefull
Hi friend, I have Arduino Uno and MDB connector from Vending Machine. How to connected it, do you have schema / wiring of diagram to make your code works?
hi, i am very surprised by your work, congratulations... i have a doubt, when you connect the arduino to the vmc using the interface, you connect using the serial port (arduino usb), rx0/tx0, or the debug pins that you define using the softwareserial library? I see that you overwrote the UART port for 9bits but since there is no picture of how you did it, I am not sure where you send the signal to the vmc from. Thanks!
when compiling, I am getting undefined vars:
PORTC, in MDB.c
switch (csh_state) { case CSH_S_INACTIVE : /*PORTC = 0; PORTC |= (1 << 0);*/ break; case CSH_S_DISABLED : /*PORTC = 0; PORTC |= (1 << 1);*/ break; case CSH_S_ENABLED : PORTC = 0; PORTC |= (1 << 2); break; case CSH_S_SESSION_IDLE : PORTC = 0; PORTC |= (1 << 3); break; case CSH_S_VEND : PORTC = 0; PORTC |= (1 << 4); break; default : break; }
UCSR0A, in USUART.c
is there any setting that I am missing?
Thanks
Hi
Thanks for our great job
But can you please share the code of webserver project?
Seems like it's simple one, but it's hard to rebuild it from arduino code..
Thank you for this project. I would like to know if this is master or slave implementation. Thanks
Hello. Really really thank you.
İs it possible to show credit on vendig display.
Credi 9.99
Because item price expensive then 0.
I couldnt vend any more.
What kind of card did you run these codes on? Can you share schematic or circuit design related to the card.
Hi,
Can you please help me confirm what version of VMC MDB protocol is implemented in this code ?
Thanks and Regards,
Mohit
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.