Currently, I am working on an iOS App using OBD device. How can I test it without using a vehicle.
Asked
Active
Viewed 1,001 times
0
-
You will need to create a class that provides simulates the device and provides mock data. – Paulw11 Sep 12 '16 at 07:28
3 Answers
1
You'll either need to purchase a simulator, which can be upwards of $300-400, or you could setup a bench ECU.
You should be able to find an ECU in a junkyard for $20-40 with the connector then you just need to wire it to an OBD2 port and a 12V for power. No messing around with creating testing classes, you'll be dealing with real world implementations.

Damon Earl
- 324
- 2
- 8
0
The problem with iOS is that BT OBD adapters will not work, only BT-LE.
I took the following approach:
- OBDSim has a TCP fork that lets it run using a TCP channel (note that this is different from -g Socket - this does not create a TCP channel for communication)
- I compiled this fork and it works great. I run it on OS X using
obdsim -T 5000 -g Cycle
which runs it onTCP port 5000 - Next up,there is a fork of
node-blueooth-obd
package which added an option to make it work over TCP as well. You can find the fork here - Finally, you can use ionic & cordova to use this forked library and communicate with a TCP based OBD simulator - see an example here
This setup is great for testing, and you should be able to swap OBDsim with WiFi ODB adaptors like OBDlink from Scantool

user1361529
- 2,667
- 29
- 61