Giter Site home page Giter Site logo

Comments (6)

PowerBroker2 avatar PowerBroker2 commented on July 22, 2024 1

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.

supaplextor avatar supaplextor commented on July 22, 2024

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.

supaplextor avatar supaplextor commented on July 22, 2024

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.

supaplextor avatar supaplextor commented on July 22, 2024

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.

PowerBroker2 avatar PowerBroker2 commented on July 22, 2024

I have no clue what you're trying to do or what your question/problem is...

from elmduino.

supaplextor avatar supaplextor commented on July 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.