Comments (6)
With the car up and running plus using this sketch, enter the following commands and see what the responses are:
AT Z
AT E0
AT S0
AT SP0
010C
The "SerialBT.write()" issue doesn't have anything to do with this lib, though.
from elmduino.
similar sketch, syslog snippet, and serial monitor screenshot: https://github.com/supaplextor/arduino-esp-sketches/tree/master/esp32/SerialBT-to-Serial-bridge
Jul 3 10:47:13 esp32 ttyUSB0-io foo = DEBUG_PORT.available(); = (4) Jul 3 10:47:13 esp32 ttyUSB0-io char c = DEBUG_PORT.read(); = (a) Jul 3 10:47:13 esp32 bt-serial-io int b = ELM_PORT.write(a) = (0) !!!
write("a") is returning 0 bytes written.
from elmduino.
Regarding https://github.com/PowerBroker2/ELMduino/blob/master/examples/ESP32_test/ESP32_test.ino line 42, I'll reuse this sketch and check for bytes written. I'm holding off including this lib until the above AT commands respond over BT.
My OBD2 units do not do WiFi. Only Bluetooth. The above sketch is for TCP/IP. Please keep this open until I get my hands on a WiFi unit. I hope it's WPA2 or better that allow reconfiguration of ap mode,ssid,phrase etc.
I do have two esp32 and 5+ esp8266 for testing misc sketches (just dev boards w/o external hardware). I looked around, however an esp32 advertising a serial service is more involved too. :-/
On a sad note / tangent, my fuel pump is on the way out; "eyeroll" at least I know why my RPM acceleration "dips" under mild to moderate acceleration. (chasing this ghost in my car for the last few months - was ready to replace fuel filter any day now then this lol). Yesterday (manual transmission) it kept acting like it was dropping to a limp mode (1-10 seconds of poor fuel pressure etc), made it home and left it to idle, ran inside while my friend sat in the car, came outside and it was dead. It would not restart. A few hours later I tried again and it fired up fine.
from elmduino.
Using https://github.com/supaplextor/arduino-esp-sketches/tree/master/esp32/ESP32_test3 has the same write issue. Serial output log included there.
from elmduino.
I have no clue what you're trying to do or what your question/problem is...
from elmduino.
In light of the following within ELM32_test.ino,
#include "BluetoothSerial.h" BluetoothSerial SerialBT; // ... SerialBT.write(c);
I created espressif/arduino-esp32#4135 instead.
from elmduino.
Related Issues (20)
- 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
- couldn't connect to OBD scanner HOT 5
- ERROR: ELM_TIMEOUT . Value received for a while and then error happens. HOT 4
- setPIN error when using ESP32 HOT 3
- Help me understand Manifold pressure readings HOT 6
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.