Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not connected #8

Open
Boak29 opened this issue Sep 30, 2024 · 37 comments
Open

Not connected #8

Boak29 opened this issue Sep 30, 2024 · 37 comments

Comments

@Boak29
Copy link

Boak29 commented Sep 30, 2024

Hello friend, i try the basic code with my wemos d1 mini n transistor BC547 but did't work
This is the result
IMG-20240930-WA0070.jpg

I just modified little code
#include "PIDs.h"
//#include <AltSoftSerial.h>
//AltSoftSerial Alt_Serial;

//#define K_Serial Alt_Serial
/////////////

#include <SPI.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>

// SCL GPIO5
// SDA GPIO4
#define OLED_RESET 0 // GPIO0
Adafruit_SSD1306 display(OLED_RESET);

#define NUMFLAKES 10
#define XPOS 0
#define YPOS 1
#define DELTAY 2
/////////////

#include <SoftwareSerial.h>
SoftwareSerial Alt_Serial;

#define K_Serial Alt_Serial
#define K_line_RX 12
#define K_line_TX 13
#define Led 2

@muki01
Copy link
Owner

muki01 commented Sep 30, 2024

Hello. Thank you for your feedback. First of all, if you are going to use altserial, you should not change the pin numbers, so it should stay that way.

#define K_line_RX 8 #define K_line_TX 9

@muki01
Copy link
Owner

muki01 commented Sep 30, 2024

And you cant use AltSerial with Wemos

@muki01
Copy link
Owner

muki01 commented Sep 30, 2024

If you are using Wemos I think there is no way to see the data in the serial monitor because Wemos only has one UART and you have to use it to take data from your car. The two cannot work simultaneously from one wart, both taking data from the car and printing it out in the serial monitor is not possible.

@muki01
Copy link
Owner

muki01 commented Sep 30, 2024

You need to delete the Serial.print and Serial.ptintln codes everywhere, also everything about AltSerial and declare the pins like this:

#define K_Serial Serial #define K_line_RX 3 #define K_line_TX 1 #define Led 2

@Boak29
Copy link
Author

Boak29 commented Sep 30, 2024

If you are using Wemos I think there is no way to see the data in the serial monitor because Wemos only has one UART and you have to use it to take data from your car. The two cannot work simultaneously from one wart, both taking data from the car and printing it out in the serial monitor is not possible.

Thx for your answer, So how can i monitor the result?

@muki01
Copy link
Owner

muki01 commented Sep 30, 2024

In screen or in webserver

@muki01
Copy link
Owner

muki01 commented Sep 30, 2024

I made a code for ESP8266 you can test this code. but first you need to upload the web page to the file storage (SPİFFS)

@Boak29
Copy link
Author

Boak29 commented Sep 30, 2024

thx for the answer, I have no experience in coding displays and web servers, what about 13 & 15, those are rxd2 and txd2, can I use them?

@Boak29
Copy link
Author

Boak29 commented Sep 30, 2024

I made a code for ESP8266 you can test this code. but first you need to upload the web page to the file storage (SPİFFS)

OK, if you don't mind, I'll try it

@muki01
Copy link
Owner

muki01 commented Sep 30, 2024

İf you dont know how to upload data to SPİFFS you can check this link: https://randomnerdtutorials.com/install-esp8266-filesystem-uploader-arduino-ide/

@Boak29
Copy link
Author

Boak29 commented Sep 30, 2024

OK, it's as easy as the ESP32 I've tried

@Boak29
Copy link
Author

Boak29 commented Sep 30, 2024

Thx a lot friend the webserver goes well
Screenshot_20240930-203748.png

Screenshot_20240930-203804.png

Nice jobs

@Boak29
Copy link
Author

Boak29 commented Sep 30, 2024

tomorrow I'll try to connect to my car

@muki01
Copy link
Owner

muki01 commented Sep 30, 2024

I'm glad everything is going well so far 😊. Write me back after you test it with your car.

@Boak29
Copy link
Author

Boak29 commented Oct 1, 2024

hi friend, i have to connect to my car this not work
Screenshot_20240930-203748.png

Vehicle wont connect

@Boak29
Copy link
Author

Boak29 commented Oct 1, 2024

how do i check it?

@muki01
Copy link
Owner

muki01 commented Oct 1, 2024

  1. Which pins are you using in Wemos.
  2. Are you sure you have 7th pin in the OBD2 socket.
  3. What car are you testing with, model, engine, horse power.

@Boak29
Copy link
Author

Boak29 commented Oct 1, 2024

  1. Io1 io3
  2. Sure connect to pin7 on obd2 pin4&5 Gnd pin 16 +12v
  3. Cheryqq 800cc

@Boak29
Copy link
Author

Boak29 commented Oct 1, 2024

On obd2 i have pin 4, 5, 7, 9, 16

@muki01
Copy link
Owner

muki01 commented Oct 1, 2024

İO3 and İO1 are the RX and TX pins, are you using them because people sometimes confuse and use D3 and D1. If everything is correct, try changing the protocol from the settings page first to İSO14230 Fast and then to İSO9141.

@muki01
Copy link
Owner

muki01 commented Oct 1, 2024

The bad thing is that without a serial monitor it is very difficult to understand the problem. I had tried a WebSerial but it wasn't very good. if you still have problem i will make a WebSerial code and you will try it for debuging.

@Boak29
Copy link
Author

Boak29 commented Oct 1, 2024

IMG_20241001_204157_673.jpg

Yes sure i have connected it.

@Boak29
Copy link
Author

Boak29 commented Oct 1, 2024

I'll try change the protocol setting tommorow, thx for your help

@Boak29
Copy link
Author

Boak29 commented Oct 1, 2024

The bad thing is that without a serial monitor it is very difficult to understand the problem. I had tried a WebSerial but it wasn't very good. if you still have problem i will make a WebSerial code and you will try it for debuging.

That's why I asked you the first time because I wanted to check this car with a serial monitor, whether my car could be detected or not

@muki01
Copy link
Owner

muki01 commented Oct 1, 2024

No problem i will help you until it works. Do you have an Arduino Uno or Nano or ESP32 with them you will be able to find out what the problem is more easily because you will also have a serial monitor.

@Boak29
Copy link
Author

Boak29 commented Oct 1, 2024

Thx friend, i have ttgo tdisplay & arduino promini

@toprakb66
Copy link

Did you manage to read the data?

@Boak29
Copy link
Author

Boak29 commented Oct 5, 2024

Hi friend i have already connected to my car this is the resultIMG-20241005-WA0009.jpg

I turn on the engine but still 0

@Boak29
Copy link
Author

Boak29 commented Oct 5, 2024

I use arduino pro mini

@muki01
Copy link
Owner

muki01 commented Oct 5, 2024

I tried it and I had the same problem. Change the protocol from Automatic to İSO14230_Fast and it will work. The problem is when the protocol is on Automatic. I'll fix it today.

@muki01
Copy link
Owner

muki01 commented Oct 5, 2024

Just use this code and everything should work for you.
Basic_Code.zip

@Boak29
Copy link
Author

Boak29 commented Oct 5, 2024

Ok my friend thx, i'll try tomorrow

@Boak29
Copy link
Author

Boak29 commented Oct 6, 2024

Just use this code and everything should work for you.
Basic_Code.zip

Hi friend, i use your code & this is the result
IMG-20241006-WA0002.jpg

@Boak29
Copy link
Author

Boak29 commented Oct 6, 2024

still 0

@muki01
Copy link
Owner

muki01 commented Oct 6, 2024

Hmm, now your car is responding but with an error. Could you please try the same code with İSO9141 protocol and send me a screenshot again. To find out if the protocol is correct.

@Boak29
Copy link
Author

Boak29 commented Oct 6, 2024

FYI i have try elm327 bluetooth to scan my car but just DTC working, the live data not working, the protocol detect iso14230-4

Ok i'll try iso9141 tommorow
Just uncomment this code right?
String protocol = "ISO9141";

@muki01
Copy link
Owner

muki01 commented Oct 6, 2024

FYI i have try elm327 bluetooth to scan my car but just DTC working, the live data not working, the protocol detect iso14230-4

Ok i'll try iso9141 tommorow
Just uncomment this code right?
String protocol = "ISO9141";

It is strange that it shows only DTCs. If it says the protocol is ISO14230 and shows DTCs, then the protocol should be ISO14230, but you can still try ISO9141 in my code. And yes uncomment line String protocol = "ISO9141"; and comment other protocols.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants