Troubles with understanding of MDB sniffer

Home Forum Everything Else Troubles with understanding of MDB sniffer

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • #6095

    Hello, Dan!

    You wrote a great library for mdb devices, named MDB sniffer:

    I have a questions about it. It will be great if you’ll help me.

    1. Why do you use 2 arduinos instead of 1 arduino mega? It has 4 usarts and can interact simultaneously with mdb & raspberry pi.
    2. How can I send a data to the bus? I see the MDB_transmitData method, but I not found any example of it’s usage. Can you give me a samples of the code?


    I had two UNOs available. I needed hardware serial for the MDB *and* hardware serial to talk to my PC. So I used software serial between two arduino UNOs. Convoluted, but it worked.

    I haven’t used transmit yet, I was still trying to figure out who was saying what and when. It’s easy to tell when the master talks to the slaves and hard to tell the reverse, especially if there’s any kind of communication failure.

    Do you have a better way to do this?



    I was searchin gthe internet for a way to connect a computer to a vending machine when i came across your solution.
    Instead of the 2 arduinos, i wanted to use a usb-rs232 with a din 5pin adapter. But i can’t get it to work, maybe it’s the 9bit problem, when the rs232 usually only goes to 8bit. Can you help, please?

    My idea is to setup a computer, to check/manage stock and to accept other forms of payments, like paypal. And then “drop” the correct item.



    you already know your method won’t work.

    You can’t drop the correct item. There is no way in MDB to say “drop item X”. you can only put or remove $X credit on the machine.


    Thank you for the quick reply.

    Thought it could be done with somekind of an adapter (the comunication part). Maybe with an ethernet shield on a arduino and then the arduino connected to the machine. By the way, i’m trying to connect via a 5pin din plug not with the 4 pin mdb plug. Not sure if there is any difference or is just an adapter. And also, the company who provided the machine installed a dex software/program.

    But i guess it’s easier to strip the machine of the controller and create a new from a raspberry.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.