Closed supaplextor closed 4 years ago
First post in #3922 looks related, even the OBDII adapter! :D
my dev board is not resetting (#3922)... code may be similar here and there, however root cause differs. Thanks for your help.
[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.
[STALE_DEL] This stale issue has been automatically closed. Thank you for your contributions.
See also: https://github.com/PowerBroker2/ELMduino/issues/37 and https://github.com/supaplextor/arduino-esp-sketches/tree/master/esp32/ESP32_test3
What you are trying to do? Bridge Serial <-> SerialBT "like" SerialToSerialBT from examples, debugging SerialBT.write("a"); (returns 0 instead of 1 byte written).
I'm attempting to send ATZ and similar AT commands to an elm327 serial port over BT. The bluetooth device is an OBD2 adapter for a car. Android apps that are designed for BT+elm327 appear to work fine. (see first url in this comment). I disable BT on phones, tablets, pcs etc that I use from time to time. (only BT on while needing it... one device only)
Describe your system( Hardware, computer, O/S, core version, environment).
Describe what is failing.
Show the shortest possible code that will duplicate the error.
65 lines (find ELM_PORT.write(c); line 44): https://github.com/supaplextor/arduino-esp-sketches/blob/master/esp32/ESP32_test3/ESP32_test3.ino
Show the EXACT error message(it doesn't work is not enough).
This log, line 27 https://github.com/supaplextor/arduino-esp-sketches/blob/master/esp32/ESP32_test3/verbose-serial-consle-log3.txt
11:43:35.397 -> wrote 0 byte(s) (A) to ELM_PORT (SerialBT)
Also of note, it takes 25-30 seconds to pair, connect, etc? Is that normal? Timestamps are in the log.
Hardware:
Board: M5Stick-C (later), now: esp32 devkitv1 clone? Core Installation version: git from about 3 hours before this issue was opened. IDE name: Arduino IDE 1.8.8 (per Visual Studio code-insiders) Flash Frequency: works.... PSRAM enabled: Huh? Upload Speed: 921600 (flash/upload) / 115200 (Serial.println, Serial console)
Only USB connected to Linux laptop. No GPIO/pins connected to anything else.