-
-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hardware schematic! #7
Comments
Its in German, but Google translate is your friend ;-) https://reaktor23.org/projects/matedealer/#grundlegende-beschaltung |
Thank you for the link. It comprises of only two opto-couplers and 3 resistors! |
Can I build your circuit with Atmega328 to read mdb packets So their will be a parallel connection to the MDB bus. And the sniffer will only perform read operation! |
Actually you don't need the resistors and optocouplers at all!
Unfortunately no, I don't have the time to do that
You could use an Arduino with 3 UARTS
With that you should get a stream of data to your computer that looks roughly like this: TX 0x000 And so on... A simple sniffer, easy to build and to program. |
So you mean not a parallel one, where I can connect the circuit directly as the data is nothing but voltage levels! .And then using above link MDB to UART, I can view the conversation as: Is your above approach is as: VMC MDB<---->UART1(Serial Monitor UART0)UART2<---->MDB CD ? |
Actually you don't need the resistors and optocouplers at all! -- |
No, more like this:
All Received bytes from both, UART1 and UART2 are sent to the PC over UART0, just marked with an indicator so that you know which byte was which direction. MDB is 5V by specification, so its no problem to connect a UART directly. I'm not sure about a 3.3V UART. |
Thank you. So both RX1 and RX2 must be set up to read 9 bit mdb data! while(uart1.available()>0) right? |
Yes, you maybe need some fine tuning to the code, but you got the point! |
Okay. Thank you. I have tested the basic code! |
Also while reading mdb packets can I output them on Serial monitor for debugging? |
Have you concidered that MDB ist 9bits!? When you managed to read 9 bits from MDB, I recommend writing a funtion that sends the value as ASCII to the PC. |
This is my response for reset from serial monitor: RX: 110 10 RX: 112 12 As you can see I am receiving RX i.e. VMC packets correctly the ACK is 0 which is correct for VMC, right? |
I think snippet should do the work...
|
Nope didn't received values as I am printing 9bit value to 8bit serial communication! |
Made it! if(buffer_level(MDB_USART,RX) > 0)
|
But the output is same as that of arduino code! |
Can give me the details and schematic of hardware for MDB.
Thank you.
The text was updated successfully, but these errors were encountered: