After we theoretically have been savvy (see
Part 1 ) and already imagine what is worth and what should not be expected from connecting a smartphone to your car, we can proceed to practice.

To begin with, the presence of 3 devices is important for successful auto diagnostics:
1. Car
2. Adapter
3. Mobile device (laptop, PC, smartphone)Car
So, you have a car and you want to know whether it is possible, and if possible, to connect to your car.
The presence of a
diagnostic connector (DLC) , the main function of which is to connect the diagnostic scanner with control units, automatically assumes the ability to connect to the on-board computer of the vehicle from the outside, including from the smartphone using the appropriate adapter. But as mentioned in the previous part of the many different DLC connectors and proprietary protocols, we will consider only the relevant
OBD-II standards , especially since most modern cars meet this standard.
And so, the first question: Does my car meet the OBD-II standard?')
Prerequisites may be:- The car was produced for the US market (OBD-II) after 1996.
- the car was produced for the European market (EOBD), gasoline after 2001, diesel after 2004.
- The car was produced for the Japanese market (JOBD) after 2004.
If the cars were produced for other markets: the CIS, Asia, Africa, etc., then it is more difficult to establish a clear date and guarantees for OBD-II support. You also need to remember that some manufacturers could support the standard in earlier models of their cars.
The next step may be to search for the appropriate sticker under the hood of the car.The label must contain information about compliance with the standard and may contain the abbreviations OBD-II, EOBD or JOBD. It may look different, here are some of the options.



Regardless of the success of the search in the previous steps, it is time to find the
diagnostic connector itself . If the machine complies with OBD-II, then the connector is sure to be found and it will be possible to connect to it for further research. If there is still no confidence in compatibility, the presence and shape of the connector can serve as an additional clue to the mystery of the DLC.
We are looking for a 16-pin trapezoid-shaped diagnostic connector, such as in the figure.

DLC connector must comply with SAE J1962 standards. According to these standards, the DLC connector is required to occupy a certain central position in the car. It should be within 16 inches (40 cm) of the steering wheel. A manufacturer can place a DLC in one of eight locations defined by the EPA. Each connector pin has its own purpose.
In accordance with the standard diagnostic connector should be located near the steering column, often below the torpedo to the left, to the right or directly under the steering column. However, there are also exotic cases:

behind the panel on the front of the torpedo, behind the folding box near the driver's door, etc., all possible locations of 8, we tried to illustrate with pictures with arrows and tips where to look for the connector.
1. On the driver's side, under the instrument panel, in the area under the steering column: Skoda Octavia Tour, 2008, Volkswagen Transporter 2002

2. On the driver's side, under the instrument panel, in the area between the driver's door and the steering column - Ford Focus C-Max, 2006; Ford Focus (USA) 2001, Fiat Linea, 2008; Subaru, Impreza WRX, 2005.

3. On the driver's side, under the instrument panel, between the steering column and the center console. Also, the connector can be located on the console itself from the driver’s side. Honda Civic 2009

4. On the driver's side, in the area of ​​the instrument panel, between the steering column and the center console of the Volkswagen Passat 1996 ...

5. On the driver's side, in the area of ​​the instrument panel, between the driver's door and the center console of the BWM X5 2001.

6. The central console, on a vertical surface (radio, remote control heating, etc.). Access to the diagnostic socket can be closed with an ashtray, coin box, glass holder, etc. Honda Accord (USA) 1997

7. On the passenger side, on the center console of the Honda Shuttle 1996 ...

8. The center console, on a horizontal surface Volvo 850 95-97g.v.

Possible search results:- The connector was found, but it does not look like the one shown in the picture: rectangular / square / round, it does not have 16 contacts, etc. The chances of connecting are small enough, even if you find out that the contacts correspond to the OBD-II wiring and you can solder (buy) the adapter, the probability that the protocols will be fully compatible is small. In this case, it is worthwhile to continue only if you are well prepared enough in terms of the compatibility of the signal and logical protocols and their “dialects”.
- there is a connector and it fully complies with the OBD-II description. Chances of successful connection increase significantly. Additionally, you can ask on the automotive forums, where car owners share similar models of experience.
Adapter
The next item is the choice of the adapter, which may also differ both in the type of connection to the computer / smartphone (USB, Bluetooth, Wi-Fi) and on the circuitry, and, as a result, on the command interface. As such, OBD-II commands are unified, but since OBD-II combines several different signaling protocols, complete consistency does not work.

- First, various physical lines (contacts), K-Line, L-Line can be used to transfer information ...
- Secondly, transmission frequencies may vary significantly from 4.8 to 500 Kbaud.
- Thirdly, the rules for the formation of auxiliary information: headers and endings of packets may differ.
The adapter itself provides the ability to automatically or programmatically control the type and parameters of the connection. A smartphone or computer connects to the adapter via a wired or wireless connection and receives high-level commands. Execution of the corresponding commands involves either changing the settings of the adapter itself, or relaying OBD-II commands to the on-board computer of the vehicle in accordance with the settings of the adapter.
The vast majority of modern adapters are based on the
ELM327 microcontroller , pirated copies of the earlier version of the ELM327, or on the
STN1110 microcontroller (compatible with ELM327 at the command level). As mentioned above, wireless (Bluetooth, Wi-Fi Direct) or wired (USB, RS232) can be used to communicate with a computer or smartphone. In all cases we are talking about a
serial connection on top of the listed interfaces. The choice of a specific type of interface depends on the capabilities of supporting this interface by your computer or smartphone.

Mobile device
(laptop, pc, smartphone, etc.)
Consider the device types in order:Computers In a laptop, as a rule, there are all interfaces and the choice is determined by the price, ease of connection, the possibilities of using the adapter with other devices, as well as support from the software of this type of interface.
iPhone & iPad. The only available connection option (apart from exotics in the form of a specialized cable or certified Bluetooth adapters) is the Wi-Fi Direct connection, since access to the Bluetooth connection using standard API is limited and does not allow you to establish the necessary type of connection to the adapter.
Android The most common option is a Bluetooth adapter. Wi-Fi Direct can be supported either on “rooted” devices, or on Android 4.x versions, or on some devices there may be nuances with Wi-Fi Direct hardware support. If your mobile device supports USB host port, then there is a connection option and a USB adapter.
Windows CE, Windows Mobile, Windows Phone. Windows CE and Windows Mobile devices are quite open in terms of low-level hardware interfaces, respectively, if there is a physical interface in the device, it will be possible to connect to it. The most commonly used Bluetooth adapter.
Windows Phone 7.x devices do not have the necessary access to Bluetooth and Wi-Fi at the level of the standard API. The implementation of interaction with the adapter on these devices is problematic.
Windows Phone 8.x received the necessary level of support for working with Bluetooth adapters.
Blackberry Implementation of interaction with Bluetooth adapters is possible.
Symbian. Implementation of interaction with Bluetooth adapters is possible.
From the above, we can conclude that Bluetooth adapters
are more universal in terms of supported devices, but if you need to connect from Apple devices, then you need to look for Wi-Fi Direct adapters.
With interfaces, you are less sorted out. Now, I think many may be interested in the choice of microcontroller (ELM327, ELM327 clone, STN1110), since prices can vary by more than an order of magnitude from $ 5-7 to $ 100 or more per device.
ELM327 is the original design and product of
ELM Electronics . Current versions 1.3a, 1.4b and brand new 2.0. The cost of solutions based on the original ELM327 is usually around $ 100, since the cost of the microcontrollers themselves is $ 15- $ 25.
ELM327 clones - most often Chinese microcontrollers copying one of the early "unprotected" variants of ELM327. May be referred to as versions of the original controllers 1.3a, 1.4b, and not existing 1.4a, 1.5, 1.5a or v2.1. The cost of such adapters starts from about $ 5 for bluetooth and USB solutions, and from $ 15 for Wi-Fi.
STN1110 is a development company
OBD Solutions . Independent development is command level compatible with ELM327. It has some advanced features, in particular, the presence of great opportunities (compared to ELM327) when working with non-OBD-II teams is declared. Also significantly higher (2-4 times) the speed of reading data compared to ELM327 versions 1.x. Compare with the version of ELM327 2.0 opportunity has not yet presented. The cost of such an adapter (we only know one
OBDLink MX ) $ 150.
Finally, conclusions! From our point of view, in 90% of cases, the capabilities of cheap ELM327 clones are quite sufficient for connecting to a car and solving simple tasks: diagnosing a car, reading and analyzing dynamic parameters and their ratios, resetting errors, etc. The use of more expensive adapters is justified in cases where you have a clear idea of ​​what you need from the adapter and what opportunities you lack in clones.
The question of the acquisition of the selected adapter remains open. Depending on your choice of Bluetooth, Wi-Fi, USB interface, enter one of the phrases “ELM327 Bluetooth”, “ELM327 Wi-Fi” or “ELM327 USB” in the search bar of your favorite search engine and select the delivery option that suits you - local sellers or global internet sites like eBay or AliExpress.
We wish you success in finding the diagnostic connector and choosing the best adapter option! In the meantime, you are busy searching, we are preparing the following article, in which we will acquaint you with the available software solutions and show you how to read data from a car’s on-board computer in practice.
P.S.
Hooray! Continuation is available -
Part 3. How to connect a smartphone to the car - read the data