Skip to content

Sniff a Multidrop Bus data stream and make it human readable

Notifications You must be signed in to change notification settings

vapopov/MDB-Sniffer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MDB Parser

What

Modern vending machines voluntarily adhere to the NAMA standard for Multidrop Bus (MDB). If these steps are correctly duplicated then this will output to the Arduino serial window a human-readable interpretation of the conversation taking place inside the vending machine between the various peripherals and the VMC.

Why

Many people want to create devices that "speak" MDB and can interact with a vending machine. Some examples include adding an RFID reader, Accepting payment with BitCoin, touch screens, and discount for secret knock.

How

This code is meant to be Arduino firmware. It assumes that the vending machine components adhere to the MDB 4.2 standard. There are three required components:

  • A physical circuit you will have to build/source. Section 4.4 of the standard describe the circuit. An example schematic from the Nottingham Hackspace Wiki has been included in this distro.
  • Arduino #1 runs "near_MDB" firmware. A1 connects to the physical circuit through the hardware serial. This means the hardware serial is not avilable to output data to a PC.
  • Arduino #2 runs "near_PC" firmware. A2 connects to your PC through a USB cable. A2 pin 10 connects to A1 pin 11. A2 pin 11 connects to A1 pin 10.

Don't forget the common ground between A1 and A2.

Who Where When

Created by Dan Royer (dan@marginallyclever.com) for the vending machine at the Vancouver Hackspace April 16, 2014.

"If I have seen further it is by standing on the shoulders of giants." -- Isaac Newton

Based on previous work from Nottingham Hackspace members James Hayward and Matt Lloyd.

More

About

Sniff a Multidrop Bus data stream and make it human readable

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 93.7%
  • C 6.3%