Data2Dealer

Connecting vehicle diagnostics with an iPhone and the dealer workflow

About Data2Dealer / MEA Technologies

Data2Dealer was an automotive diagnostic application from Mark Austin and MEA Technologies, connecting an OBD-II vehicle adapter to an iPhone and an existing dealer-data workflow. Smart Pelican’s 2018 engagement addressed a focused engineering problem inside that product: repeated Bluetooth reconnection. The team built a reference prototype, integrated BLE and iBeacon connection code into the existing iOS application, and supported testing with phones and automotive adapters.

Smart Pelican helped Mark Austin and MEA Technologies improve the Bluetooth connection layer in Data2Dealer, an existing iOS application for an automotive diagnostic device. The 2018 engagement focused on a practical requirement: reconnecting the phone to the vehicle's adapter repeatedly, including while the app was in the background.

Working with MEA and its app-development collaborators, our engineers investigated that behavior, built a working prototype and integrated BLE and iBeacon connection code into the existing application. The work connected mobile engineering with the realities of an OBD-II adapter, its Bluetooth module and the software already handling diagnostic information.

Keeping the diagnostic workflow connected

The intended workflow began with a device plugged into a vehicle's OBD-II diagnostic port. The adapter communicated with the iPhone over Bluetooth Low Energy, and the app provided a route for vehicle information to reach the existing dealer system.

Data2Dealer already contained diagnostic functions, including vehicle identification, live readings, diagnostic trouble codes and an upload path for fault and mileage information. Smart Pelican's task addressed the connection on which those functions depended.

The recurring problem was that an initial connection could work while subsequent reconnections failed. The client wanted the phone to reconnect as the driver returned to the vehicle, without having to reopen or restart the app each time. That made background behavior and repeated use central to the investigation.

Establishing a working reference

Our team first developed a small Swift application using Apple's Core Bluetooth framework. A Node.js application on a Mac simulated a BLE peripheral, while the iOS application ran on a physical phone.

This setup let our engineers exercise the connection behavior independently of the automotive adapter. Tests covered Bluetooth being switched off and on, the peripheral becoming unavailable, movement out of range and return, and foreground and background application states.

One overnight test left the prototype in the background while the phone was away from the simulated peripheral. When the engineer returned the next morning, the phone displayed a connection notification on its lock screen without first being unlocked.

That gave the project a concrete reference for background reconnection under the tested conditions. It also provided a way to compare the behavior of the application with the behavior of the actual adapters as testing continued.

Integrating with the existing iOS application

The working product was written in Objective-C. Our engineers integrated the connection work with that application's existing diagnostic workflow.

The source uses LTSupportAutomotive, an existing library for communication with OBD-II adapters, with an ELM327 adapter implementation and a BLE transport that bridges Bluetooth characteristics to input and output streams. The transport layer was a key integration point between Core Bluetooth and the diagnostic code.

The implementation includes Bluetooth state-restoration callbacks, peripheral discovery and connection handling, and a request to reconnect after disconnection. These mechanisms supported the repeated-connection behavior at the center of the task.

iOS places specific conditions on background Bluetooth activity and state restoration, as described in Apple's archived Core Bluetooth guide. Our work included investigating those conditions alongside the behavior observed on real phones and adapters.

Coordinating the app and the device

The engagement extended into discussions with the hardware suppliers. Correspondence covered the Bluetooth module, the ELM327 side of the adapter and the identification required for iBeacon behavior.

Our engineers worked with the client on the beacon configuration requirements and integrated Core Location region-monitoring callbacks into the app. The application source also contains the associated location-permission request and foreground/background lifecycle handling.

This required coordination across the application and device teams. A reference Bluetooth module and the client's automotive adapters did not always behave alike, so tests with the actual hardware remained an essential part of the work.

TestFlight builds supported that exchange, allowing collaborators to try changes on physical iPhones and report what happened during repeated connections and vehicle use.

Delivered connection code and continued testing

By late April 2018, the client's app-development collaborator acknowledged receiving and using the BLE/iBeacon connection code. That correspondence establishes delivery into the wider Data2Dealer development effort.

Testing also raised questions about an adapter remaining active when a nearby phone connected while the vehicle was parked. The client requested further changes to connection timing, and discussions continued around power consumption and the behavior of different adapter versions.

Subsequent vehicle tests still produced intermittent reconnection failures. The engagement delivered connection software and a tested reference implementation, while adapter-specific reliability and power behavior required further investigation.

Engineering at the boundary between mobile and hardware

ComponentTechnologies and role
Connection prototypeSwift, Core Bluetooth and a Node.js BLE peripheral simulator
Existing iOS applicationObjective-C, UIKit and Xcode
Automotive communicationLTSupportAutomotive, ELM327 and OBD-II data handling
Background and proximity behaviorCore Bluetooth state restoration, Core Location and iBeacon
Collaborative testingPhysical iPhones, adapter testing and TestFlight builds

For MEA Technologies, Smart Pelican provided focused engineering support for a connection problem within an existing automotive product. The work combined prototype development, native iOS integration and collaboration with the people developing and testing the device.

Connecting a mobile application to a physical device?