Comments (11)
Hi Kalvin126,
I tried it on iPhone 7 iOS 10 and it works. I have two Wi-Fi adapters (ELM327 v1.5 and STN1170) and it is compatible with both of them. You should try to increase timeout interval, because by default it sets to 0.1 sec:
let connection = OBDConnection(requestTimeout: 2) // Timeout in seconds
from obd2connect.
I tried 1 second, but it timed out as well. I'll increasing it further. Would you be open to contributions?
from obd2connect.
Yeap, you are welcome to contribute.
Try to check your adapter with any free OBD app from AppStore (for example https://itunes.apple.com/app/obd-car-doctor/id652142348). Is it work?
Also, It would be great to check is there any data received from adapter in one of the methods of OBDConnection class:
private func handleReceived(data: Data)
from obd2connect.
Alright awesome. I actually just confirmed my obd wifi adapter is dead. Time to get another one :p
from obd2connect.
Might I ask what specific ELM327 adapter you are using? I have a Veepeak mini ELM327 v1.5 adapter. I tried it with obd car doctor and it work just fine actually. I guess I need to further debug.
from obd2connect.
I have the cheapest Noname adapter you can buy on aliexpress, but it actually works fine for me. I should notice, that my framework has responsibility to transfer data between adapter and a phone.
So, inside demo project I sent only ATZ command to reset the adapter to default settings. Usually, ATSP0 command follows next.
And as I mentioned earlier func handleReceived(data: Data)
would be the best place to start to debug the adapter response. Good luck!
from obd2connect.
Ok so, I put a breakpoint in handleReceived(data:
. Ocaissionally I would get a response of ?\r\r>
when sending ATZ
command. The response seems like garbage though... This is through my iPad Air 2 with iOS 10.2, iPhone 6s 10.2.1, MacOS Sim 9.3/10.2
from obd2connect.
Sorry for a late response. All commands must follow with a close line character \r
and the response with ?
character means that your adapter doesn't understand provided command.
from obd2connect.
No problems. I am just trying to get to the bottom of this. Apps like OBD Car Doctor from the app store work. Its able to send AT Z
then the AT SP 0
commands.
from obd2connect.
It's incorrect to compare this framework to app from app store. OBD2Connect just a "data-tube". It connects your API above it and OBD2 adapter only, all commands syntax and response handling are up to you.
from obd2connect.
Right, I understand that. I am just saying that they are able to send the same ATZ
command and get a valid response back. Will be closing this issue indefinately.
from obd2connect.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from obd2connect.