Comments (6)
It's updated, try it again
Perfect! Now it works how I expect.
Thank you so much!
from elmduino.
I have a successful connection to my OBD dongle
What do you mean by that? How do you know?
but could not get a response on my 'AT Z' command using a terminal program. I use ESP8266_WiFi.ino.
Are you using an ESP8266? What response does it give when you type in AT Z
? How are you sending AT commands when ESP8266_WiFi.ino doesn't support this?
Also, are you doing this testing with your car on and running?
from elmduino.
I have a successful connection to my OBD dongle
What do you mean by that? How do you know?
I just powered up my OBD scanner at home. It creates a WiFi network and I got IP address using your ESP8266_WiFi.ino example (see log above).
but could not get a response on my 'AT Z' command using a terminal program. I use ESP8266_WiFi.ino.
Are you using an ESP8266?
Yes, I am. ESP8266 01.
What response does it give when you type in
AT Z
?
Nothing. Expecting FW version in the response.
How are you sending AT commands when ESP8266_WiFi.ino doesn't support this?
That why I'm asking about it. I see that guys did it successful using your BT example.
Used Arduino's Serial monitor and another terminal software.
Also, are you doing this testing with your car on and running?
My experiments are going without a car. I want to work with the configuration of elm327 chip. On my understanding it should respond to me without a car connection. In my mind, It should work as "any PC (W10) terminal program -> COM port -> USB to RS232 TTL UART adapter -> ESP8266 -> WiFi network -> ELM327 chip".
from elmduino.
Ok, I think I understand what you're trying to do now. The code that was being referred to was for an ESP32 connected to an ELM327 over standard bluetooth. Instead, you'll need to use a sketch similar to this:
#include <ESP8266WiFi.h>
#include "ELMduino.h"
const char* ssid = "WiFi_OBDII";
const char* password = "your-password";
//IP Adress of your ELM327 Dongle
IPAddress server(192, 168, 0, 10);
WiFiClient client;
ELM327 myELM327;
uint32_t rpm = 0;
void setup()
{
Serial.begin(115200);
// Connecting to ELM327 WiFi
Serial.print("Connecting to ");
Serial.println(ssid);
WiFi.mode(WIFI_STA);
WiFi.begin(ssid);
// WiFi.begin(ssid, password); //Use this line if your ELM327 has a password protected WiFi
while (WiFi.status() != WL_CONNECTED)
{
delay(500);
Serial.print(".");
}
Serial.println("");
Serial.println("Connected to Wifi");
Serial.println("IP address: ");
Serial.println(WiFi.localIP());
if (client.connect(server, 35000))
Serial.println("connected");
else
{
Serial.println("connection failed");
ESP.reset();
}
myELM327.begin(client);
Serial.println("Connected to ELM327");
Serial.println("Ensure your serial monitor line ending is set to 'Carriage Return'");
Serial.println("Type and send commands/queries to your ELM327 through the serial monitor");
Serial.println();
}
void loop()
{
if(Serial.available())
{
char c = Serial.read();
Serial.write(c);
client.write(c);
}
if(client.available())
{
char c = client.read();
if(c == '>')
Serial.println();
Serial.write(c);
}
}
Let me know if you can get AT responses using the above code. If it works, I'll add it to the examples in the library.
from elmduino.
You lost the declaration:
ESP8266_WiFi:65:5: error: 'ELM_PORT' was not declared in this scope
from elmduino.
It's updated, try it again
from elmduino.
Related Issues (20)
- ELM327::isPidSupported Error
- Custom PID, how it works HOT 9
- PID 70: Boost pressure control (Service 01) HOT 1
- Problem with flashing RPM value on OLED when using latest version of ELMduino HOT 8
- ESP32 not connecting to ELM327 HOT 5
- Protocol Data Point HOT 4
- Couldn't connect to OBD scanner (stucked) HOT 18
- First time Bluetooth pairing between ESP32 and ELM327 HOT 1
- custom pid for DPF HOT 17
- BT Pairing problem between ESP-32 and ELM327 HOT 6
- How to change OBD protocol HOT 5
- Response not detected HOT 28
- Error in getting Multiple PID's HOT 9
- ESP32 s3 BLE compatibility? HOT 3
- Attempting to read non-standard PID HOT 1
- When does `queryPid` return `true`? HOT 4
- ESP32_CheckPIDs_1_20.ino HOT 1
- How to read data if I know TXD RXF RXD and MTH HOT 2
- ERROR: ELM_BUFFER_OVERFLOW on Honda Vezel 2023 HOT 4
- Problems in phase 1, can't connect with ELM327 HOT 3
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 elmduino.