VaAndCob / ESP32-OBD2-Gauge

DIY bluetooth obd2 gauge with ESP32
https://www.facebook.com/vaandcob
Other
166 stars 37 forks source link

Please elaborate on "New device must flash "gauge_factory_init.ino" first to get it work by checking 'serialno' in pref." #5

Open rlagerweij opened 2 months ago

rlagerweij commented 2 months ago

I'm trying to flash your project to my new device. It is identical to the one you linked to. After building and flashing i just get a black screen and the text "Touch screen calibration..." on the serial monitor.

You mention in the notes: "New device must flash "gauge_factory_init.ino" first to get it work by checking 'serialno' in pref."

Is this related to the issue I am having?

I do not see this particular file in the source tree and google cant find it either. Could you explain where I can find this file and what it does to the board to prepare it for you firmware?

Many thanks

VaAndCob commented 2 months ago

you can skip this part in vaandcobobd2gauge.ino

remove guine check line. to skip checking.

ในวันที่ ศ. 12 ก.ค. 2024 เวลา 22:30 rlagerweij @.***> เขียนว่า:

I'm trying to flash your project to my new device. It is identical to the one you linked to. After building and flashing i just get a black screen and the text "Touch screen calibration..." on the serial monitor.

You mention in the notes: "New device must flash "gauge_factory_init.ino" first to get it work by checking 'serialno' in pref."

Is this related to the issue I am having?

I do not see this particular file in the source tree and google cant find it either. Could you explain what there i can find this file and what it does to the board to prepare it for you firmware?

Many thanks

— Reply to this email directly, view it on GitHub https://github.com/VaAndCob/ESP32-OBD2-Gauge/issues/5, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGGQHCT2PVDMX53W4FIU7BLZL7ZCLAVCNFSM6AAAAABKZEOUROVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQYDKOBWGYZTSMA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

--

:•°ღ ♡♥♡♥♡♥♡♥♡ ღ:•°:•°ღ ♡♥♡♥♡♥♡♥♡ ღ:•°

ks00x commented 2 months ago

I'm trying to flash your project to my new device. It is identical to the one you linked to. After building and flashing i just get a black screen and the text "Touch screen calibration..." on the serial monitor.

What you are seeing is the touchscreen calibration screen which only comes up the first time after the flash was erased. You need to click the 4 corners following the arrows and then the cal data is saved to flash. I have the thing running now but it is not connecting to my ODB adapters. I guess it needs the mac addr or id string first to work and maybe this is what the gauge_factory_init.ino is supposed to do...

rlagerweij commented 2 months ago

The problem was that the screen remained off during the calibration stage.

I got it working by first applying the user_config.h to the eSPI_TFT library and then loading the device with an example from the library. After that i removed the calibration step from Setup() and then the logo showed up.

Can't really say what exactly fixed it.

VaAndCob commented 2 months ago

The problem was that the screen remained off during the calibration stage.

I got it working by first applying the user_config.h to the eSPI_TFT library and then loading the device with an example from the library. After that i removed the calibration step from Setup() and then the logo showed up.

Can't really say what exactly fixed it.

example from TFT_espi might not work with this board. that's why I build 'touch.h' to use with this board.
Can u try compile sketch and run. or if you could flash binary file to your board. (I have provided binary file)