perdidor / arduino-mdb-uart Goto Github PK
View Code? Open in Web Editor NEWAtmega1284 PLC as MDB-UART converter/MDB Master/MDB VMC emulator
Atmega1284 PLC as MDB-UART converter/MDB Master/MDB VMC emulator
The device is currently a simple UART level converter with minimal functions for processing incoming data from MDB. Despite this, the device is quite stable and can be used (and successfully used) as part of several dozen vending machines, where access to the extended functionality of devices supported by the bus is not required, frequent firmware upgrades and no contactless payments are not practiced. The MDBLib top-level library (current public version) supports devices like CoinChanger and BillValidator.
The implementation of FTL functionality and cashless payments requires significant changes to the controller's firmware code, because these modes of operation imply the presence of state-machine onboard for organizing real-time uninterruptible information exchange between the VMC, the cashless device and the converter. You will also need to refine the top-level library to support new adapter features.
In addition to software development, PCB rework will be required to ensure more stable operation and reduce the cost of the assembled board to 10USD max.
Planned time required on the development is more than 150 hours of my personal time, which I simply do not have when it comes to a hobby.
Considering all the above, the work on the current public project is terminated. Bugs will be fixed as they are found (as available time).
Work on advanced functionality (FTL, Cashless operations, support for NACK \ RET etc.) is already underway in private mode. For obvious reasons, the result of this work will not be public. Contact for any questions [email protected]
Cheers.
Is it possible to avoid the DB9 part using Serial1 to communicate with the mdb device and Serial0 (usb serial) to com with PC?
Hello,
What is minimum memory requirement for that setup? Used controller seemingly have 128kB flash memory.
Even that project is a low cost one. I am trying to figure a solution for a lower cost requirement project. Thinking of reducing memory on controller to get down its price. I read software uart is not suggested where timing is important.
Thanks & regards,
Ertan
MDB 4.2 datasheet, Section 2.6 File Transport Layer.
Hi @perdidor , thanks for your work and for making this project available.
I was able to get the 1280p talking to a bill acceptor:
But I am unable to initialize it, I have been reading the MDB protocol specs but it is a hard read.
Can you please post an example of what I need to type in the SEND box to enable the acceptor?
Section 7 of MDB 4.2
see "Commands, Repetition, ACK, NAK" section of MDB 4.2
Hello,
Thanks for sharing your work. It is indeed valuable. I am trying to make MDB-RS232 communication. I have not worked with MDB protocol or vending machines before. Now, I must learn how to do that. I am still waiting vending machine parts to be delivered myself for my internal testings. I do not know what brand and model of a machine I need to work, yet.
My very much newbie questions are:
1- Do I need arduino to use your card? I cannot be sure by looking at information available. I cannot see clearly from the video. However, github name implies this is for arduino and there are some arduino codes, too.
2- I do not see any code for atmega1284 itself. Some people said to me "it is a programmable one. I need to have my code and upload that on that chip itself." I want to say that I am no electronic or electrician at all. I just want to be clarify that chip itself need to be programmed or not.
3- So far, I could not find any AtMEGA1284P-PU chip in my region. I can buy ATMEGA1284P-AU chip. Is that "AU" suffix chip can be used for that project?
Thanks & regards,
Ertan
Hello, I cant' Runn The Test Programm.
How can i run it ?
Is it possible to add PCB rev2a project file? I have problem with gerber files. I tried to upload files to the factory but a lot of paths have shortcuts in their system.
Hello!
/home/.../Arduino-MDB-UART/MDB_UART_Master/MDB_UART_Master.ino: In function 'void EXT_UART_Setup()':
MDB_UART_Master:75:3: error: 'Serial1' was not declared in this scope
Serial1.begin(9600);
I need source Code for Serial1 class. Where can i found it?
ESP8266 /Wemos. Probably I need other lib than for arduino.
Many thanks,
Bestregards,
achest
I checked your pcb folder and saw the MDB_Master schematic. Only with a MAX232. Is this schematic for a simple RS232-MDB Converter cable?
I ask because I want to program my coin acceptor with the manufacturer software (called wheasy) and via the MDB connection. So I need a simple and dump converter circuit that converts my RS232 from PC to 9Bit MDB. Its a EM 800.13 v5 "Münzprüfer" from wh berlin.
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.