mkrasselt1 / esp32-mdb-master

5 stars 2 forks source link

Slave implementation overview #2

Closed note5 closed 7 months ago

note5 commented 1 year ago

Thank you for thos awesome job. I see on other issue that you have also implemented slave. I would like to simulate a cashless device as slave using esp32. Please provide some pointers when it comes to making the connections to a VMC and how you tackle the serial communication. (Not asking for the code you do not want to share :))

mkrasselt1 commented 1 year ago

Hello :) Of course you do :D but - it's nothing different from the mdb interface specification to be found on the internet. you need some fast optocopplers between tx and ground and rx and ground. i am using the rmt driver to send and recieve the mdb frames. code to recieving and sending is also simmilar to the master.

mkrasselt1 commented 1 year ago

but we almost completly redesigned the master as wee, there will be an update soon

note5 commented 1 year ago

Ah, what type optocouplers would you recommend I use? I also see some circuits that use hex inverter , Is this neccessary ?

mkrasselt1 commented 1 year ago

no, hex inverter (you mean binary/signal inverter right?) is not necesary, as you could fix that in software

mkrasselt1 commented 1 year ago

And LTV-827 works a a optocoupler, just make shure yours is fast enought for 9600 baud ;)