Closed jokke009 closed 4 years ago
Your sketch looks good to me. For debugging purposes, you can use the following to manually figure out what bytes have been received by the ESP32:
for (int i=0; i<myELM327.recBytes; i++)
Serial.print(myELM327.payload[i]);
Serial.println();
@jokke009 Any updates?
Hi , Sorry haven't been able to test it yet . Tuesday afternoon I'll be able to my laptop in a car and test it. I've even got another car for testing and comparing.
I'll keep you updated in any case .
On Sat, Jun 27, 2020, 7:01 AM PB2 notifications@github.com wrote:
Any updates?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/PowerBroker2/ELMduino/issues/36#issuecomment-650492752, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFJ7NYX6JDMNM3GDMVGTPVTRYV4KVANCNFSM4OFVS5IQ .
Hi,
Been able to test that: but no data in the payload.
I've tried the esp8266_wifi example directly, but get the following:
Connecting to WiFi_OBDII
..
Connected to Wifi
IP address:
192.168.0.11
connected
Received:
ERROR: ELM_TIMEOUT
Received:
ERROR: ELM_TIMEOUT
Received:
ERROR: ELM_TIMEOUT
Received:
ERROR: ELM_TIMEOUT
...
Anything in the library I need to fool around with settings, timeouts or such?
Once again any help appreciated.
AT Z
AT E0
AT S0
AT SP0
010C
Report back on what the responses are for each of the above commands.
` Connected to Wifi IP address: 192.168.0.11 connected Connected to ELM327 Ensure your serial monitor line ending is set to 'Carriage Return' Type and send commands/queries to your ELM327 through the serial monitor
AT Z ?
ATZ ELM327 v1.5 AATTEE00 OK ATS0 OK ATSP0 OK 010C STOPPEDNG...
`
Looks like your ELM327 is at least responding to AT commands.
I do see that you're test sketch was able to get a connection using 192.168.0.11, but your sketch uses 192.168.1.1 - that might be the issue.
Hi, Yeah the AT commands seem to work using the sketch you provided last. Note: Ignore the ip1 in the first sketch I posted.. it isn't used. It gets .11 from the wifi dongle.
Any explanation about the 010C , command? For a brief period of time I'll get 'SEARCHING' then 'STOPPEDNG..' not quite sure what all that means.
Any other useful AT commands I can go through for testing?
In the mean time I'll try some different protocols than '0' in the constructor. See if that yields and change.
010C
is the query for RPM data. If you don't get a valid response it either means you car isn't running or the ELM327 is bad - or worse.
What car make/model/year are you testing on?
Also, can you ensure you're connecting to the ELM327 in your live sketch exactly the same as you did in the test sketch?
Hi, So far been only testing on a ford focus st (2019). I've got a mazda mx5 2016 I'll try later this week.
I always turn on the engine. The elm327 wifi dongle shouldn't be the problem. I tried the torque app on android and its gets all the information.
I'm using your Esp8266_wifi sketch, in the hope of just getting the RPM for now.
A bit off topic:: something I noticed with a obd2-HUD is that the mx5 shows data at a much higher refresh rate than the focus.
Any updates?
Hi,
No RPM data received yet. My plan is to wireshark it. Get a program on the laptop to send/receive data to debug it. Hopefully there's a .net library out there.
Describe the bug Using the wifi sketch in the example, I've attempted to connect an esp8266 (which I also read about in the closed issues). The ESP connects fine and the connect to server proceeds. I'm then trying some simple as a RPM read, however this always produces an ELM_NO _DATA. I thought of doing some debugging work in with a ,net program on a laptop over the wifi direct, but I though I'd ask first to see if anybody could point out the obvious.
To Reproduce Using a Iegeek OBD2 wifi adapter and the simple wifi sketch provided running on an esp8266. I haven't hooked up a serial monitor laptop, but rather used a simple ws2812 led matrix which lights different leds according to the error.
Expected behavior Getting an ELM_SUCCESS: float tempRPM = myELM327.rpm();
if (myELM327.status == ELM_SUCCESS) { rpm = (uint32_t)tempRPM; Serial.print("RPM: "); Serial.println(rpm); }
Equipment Iegeek wifi: https://www.bol.com/nl/p/obd2-wifi-interface-adapter-mini-elm327/9200000055136781/?country=BE&Referrer=ADVNLGOO002060-G-88680672361-S-795237665226-9200000055136781&gclid=Cj0KCQjw0Mb3BRCaARIsAPSNGpU3xTYW7FFMST7e_kB1dhrsSr1uZfIS692eeg2aOtnFi13dVnzg0-AaAkMBEALw_wcB
Nodemcu
Code
Wiring Using wifi.
Thanks in advance.