Skip to content
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

How to get continuously OBD2 Infos with OBD2Kit #2

Open
inargq opened this issue Apr 22, 2015 · 2 comments
Open

How to get continuously OBD2 Infos with OBD2Kit #2

inargq opened this issue Apr 22, 2015 · 2 comments

Comments

@inargq
Copy link

inargq commented Apr 22, 2015

Hey Guys,

I'm developing an iPhone App which connect to my Wifi OBD2 Adapter an sends me the actual values to my Phone continuously. That means when I drive faster I also want to show this in my App. I'm using the OBD2Kit from Github and programming in Objective C.

My OBD2 Adapter is the vGate iCar2.

I'm using the Sample App from the OBD2Kit to get all my OBD2 Informations.
When I use the Sample App I just get the data one time when I open the App.
That means the values don't change while driving.

For now I try to start a new Connection to the OBD2 by pressing a Button which starts the [_scanTool startScan] method.




When I press the Button

  1. Time it works all perfectly
    but
  2. Time it doesn't walks through the "didReceiveResponse" delegates. And so it doesn't show my actual values.

So can someone help me the get the Data all the Time

@dhalman
Copy link

dhalman commented Aug 10, 2015

In my experience with bluetooth, you have 2 options:

Reconnect as necessary whenever an update is needed (as BLE was intended at low frequencies)
Subscribe to the characteristic's updates to promote continuous connection (and callbacks for value changes)

@steffex
Copy link

steffex commented Nov 30, 2015

I have an wifi dongle and that works perfectly with OBD2Kit, also the delegates keep receiving data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants