New user questions about OBD-II Emulator MK2
Posted: Tue May 01, 2018 4:59 am
New user questions about OBD-II Emulator MK2
Hello everyone.
I have recently purchased the OBD-II Emulator MK2. I'm using it in conjunction with the Scantool OBD Development Kit (https://www.scantool.net/obd-development-kit/). I can successfully retrieve PID values from the emulator. I can change PIDs either with the GUI application or with Windows Hyperterminal connected via the emulator's USB cable (using ATSET commands).
What I can't seem to figure out is how to use the serial connector on the side of the emulator (I want to connect to a (Microchip PIC) microcontroller). I don't see any indication of what the baud rate is in documentation (can it be changed?). Does this connection use the same command set as with the USB connection?
I tried connecting this serial connector to my PC via a USB-to-serial adapter (https://www.digikey.com/product-detail/ ... ND/2441358). This adapter provides for connection to a reference voltage to tell it what levels to use. I've used it successfully with many of my PIC projects, with reference voltages of 3.3V and 5V.
I connected it to the emulator pins as:
Emulator | FTDI adapter
TX ......... RX
RX ......... TX
GND ....... GND
+5V ........ VREF
(The pins are not labeled on the emulator, so I identified them from the photo at https://freematics.com/pages/products/f ... lator-mk2/)
I chose reference voltage of 5V because information at this link says "The 6-pin XH-2.54 socket provides an interface for serial TTL connection".
(BTW, there was no cable provided with the emulator for this socket; should there have been?)
Trying at 38400 baud, when I first power up, I receive a single byte: 0xFE. I don't know if this is 'garbage' because of wrong baud rate, or if it's correct.
Should I see some kind of initialization message, such as that I get via the USB cable?
Other question: I want to be able to emulate a real car, where when I connect my scantool dev kit, I see a continuous stream of messages. I'll have my application filter out the unwanted messages. What the emulator seems to do for me, is only reply to requests for data. During my search of this forum for information, I did come across a reply from Stanley that said it "behaves as the OBD port in a real car". (I don't remember which forum thread; forgot to bookmark it.)
Perhaps this serial port on the side will let me command the emulator to do this?
Yet another question (but not as important):
Is there a way to cause the emulator to save PID values I've changed, so the changes remain after power off and on?
I'm just beginning to learn about OBD-II and CAN networks.
Can anyone help me to understand better how to use this tool?
Thanks,
-Mike
Hello everyone.
I have recently purchased the OBD-II Emulator MK2. I'm using it in conjunction with the Scantool OBD Development Kit (https://www.scantool.net/obd-development-kit/). I can successfully retrieve PID values from the emulator. I can change PIDs either with the GUI application or with Windows Hyperterminal connected via the emulator's USB cable (using ATSET commands).
What I can't seem to figure out is how to use the serial connector on the side of the emulator (I want to connect to a (Microchip PIC) microcontroller). I don't see any indication of what the baud rate is in documentation (can it be changed?). Does this connection use the same command set as with the USB connection?
I tried connecting this serial connector to my PC via a USB-to-serial adapter (https://www.digikey.com/product-detail/ ... ND/2441358). This adapter provides for connection to a reference voltage to tell it what levels to use. I've used it successfully with many of my PIC projects, with reference voltages of 3.3V and 5V.
I connected it to the emulator pins as:
Emulator | FTDI adapter
TX ......... RX
RX ......... TX
GND ....... GND
+5V ........ VREF
(The pins are not labeled on the emulator, so I identified them from the photo at https://freematics.com/pages/products/f ... lator-mk2/)
I chose reference voltage of 5V because information at this link says "The 6-pin XH-2.54 socket provides an interface for serial TTL connection".
(BTW, there was no cable provided with the emulator for this socket; should there have been?)
Trying at 38400 baud, when I first power up, I receive a single byte: 0xFE. I don't know if this is 'garbage' because of wrong baud rate, or if it's correct.
Should I see some kind of initialization message, such as that I get via the USB cable?
Other question: I want to be able to emulate a real car, where when I connect my scantool dev kit, I see a continuous stream of messages. I'll have my application filter out the unwanted messages. What the emulator seems to do for me, is only reply to requests for data. During my search of this forum for information, I did come across a reply from Stanley that said it "behaves as the OBD port in a real car". (I don't remember which forum thread; forgot to bookmark it.)
Perhaps this serial port on the side will let me command the emulator to do this?
Yet another question (but not as important):
Is there a way to cause the emulator to save PID values I've changed, so the changes remain after power off and on?
I'm just beginning to learn about OBD-II and CAN networks.
Can anyone help me to understand better how to use this tool?
Thanks,
-Mike