OBD2 display in ashtray location
Continue with a list:
- remove the ESP32 from the device and flash it from there
- the ESP32 is defective ( a different computer should verify this)
- surface pro ... that's tablet right? maybe that's the problem.
- remove the ESP32 from the device and flash it from there
- the ESP32 is defective ( a different computer should verify this)
- surface pro ... that's tablet right? maybe that's the problem.
Last edited by Cabrio Bob; Sep 24, 2020 at 10:52 AM. Reason: tableT
surface pro is Microsoft's laptop/tablet running windows 10 (PC)
at the back of the device where the display is sticking out, just above that push the black bar with a small screwdriver, the lid can be taken off,
then remove the electronics (not fully - the USB cable prevents this) , flip it over and you can take off the ESP32 by pulling it away from the electronics pcb (mind the orientation when putting it back again)
But first try the other laptop...
then remove the electronics (not fully - the USB cable prevents this) , flip it over and you can take off the ESP32 by pulling it away from the electronics pcb (mind the orientation when putting it back again)
But first try the other laptop...
Last edited by Cabrio Bob; Sep 24, 2020 at 11:12 AM.
at the back of the device where the display is sticking out, just above that push the black bar with a small screwdriver, the lid can be taken off,
then remove the electronics (not fully - the USB cable prevents this) , flip it over and you can take off the ESP32 by pulling it away from the electronics pcb (mind the orientation when putting it back again)
But first try the other laptop...
then remove the electronics (not fully - the USB cable prevents this) , flip it over and you can take off the ESP32 by pulling it away from the electronics pcb (mind the orientation when putting it back again)
But first try the other laptop...
Because the "firmware.bat" file was vanished, I think your sufrace pro treats it like a virus, thus not working properly.
In Windows Defender you could allow the bat file from doing it's thing.
But let's see what the other laptop does.
In Windows Defender you could allow the bat file from doing it's thing.
But let's see what the other laptop does.
or, copy and paste the below code into notepad, save it as a BAT file in the same folder next to the firmware bat file and try to run that.
it's the same as the firmware.bat file but will cause a slower upload to the ESP32 (maybe speed is a problem)
it's the same as the firmware.bat file but will cause a slower upload to the ESP32 (maybe speed is a problem)
Code:
@echo off
setlocal enabledelayedexpansion
Echo.
REM Echo Files extracted
PING localhost -n 2 >NUL
Echo.
Echo This version will flash the device for 5.0 models
Echo.
Echo List of COM ports available:
Echo.
wmic path win32_pnpentity get caption /format:table| find "COM"
Echo.
PING localhost -n 3 >NUL
set "HardwareID=VID_10C4&PID_EA60"
set "RegistryPath=HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB"
set "ProductName=Silicon Labs CP210x USB to UART Bridge"
set "DeviceFound=0"
Echo.
for /F "delims=" %%I in ('%SystemRoot%\System32\reg.exe QUERY "%RegistryPath%\%HardwareID%" 2^>nul') do call :GetPort "%%I"
if "%DeviceFound%" == "0" echo WARNING: Could not find any connected %ProductName%.
Echo.
endlocal
pause
goto :EOF
:GetPort
set "RegistryKey=%~1"
if /I not "%RegistryKey:~0,71%" == "%RegistryPath%\%HardwareID%\" goto :EOF
for /F "skip=2 tokens=1,3" %%A in ('%SystemRoot%\System32\reg.exe QUERY "%~1\Device Parameters" /v PortName 2^>nul') do (
if /I "%%A" == "PortName" set "SerialPort=%%B" && goto OutputPort
)
goto :EOF
:OutputPort
%SystemRoot%\System32\reg.exe query HKLM\HARDWARE\DEVICEMAP\SERIALCOMM | %SystemRoot%\System32\findstr.exe /E /I /L /C:%SerialPort% >nul
if errorlevel 1 goto :EOF
set "DeviceFound=1"
set "DeviceNumber=%RegistryKey:~-1%"
Echo Programmed device will be: %ProductName% on %SerialPort%.
Echo.
pause
CLS
:MENU
Echo.
Echo Version 2.1.0.5
Echo.
Echo ------------------------------------------------------
Echo PRESS 1, 2, 3 or 4 to select your units, or 5 to EXIT.
Echo ------------------------------------------------------
Echo.
Echo 1 - Celsius + Kilometers
Echo 2 - Celsius + Miles
Echo 3 - Fahrenheit + Kilometers
Echo 4 - Fahrenheit + Miles
Echo 5 - Exit
Echo.
SET /P M=Type 1, 2, 3, 4 or 5 then press ENTER:
IF %M%==1 GOTO C_K
IF %M%==2 GOTO C_M
IF %M%==3 GOTO F_K
IF %M%==4 GOTO F_M
IF %M%==5 GOTO EOF
:C_K
CLS
Echo.
Echo.
Echo you have chosen Celsius + Kilometers
Echo.
PING localhost -n 3 >NUL
bin\esptool.exe --chip esp32 --port %SerialPort% --baud 115200 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0xe000 bin\boot_app0.bin 0x1000 bin\bootloader_dio_80m.bin 0x10000 bin\CK.ino.bin 0x8000 bin\CK.ino.partitions.bin
Echo.
Echo Cleanup temporary files ....
Echo.
Echo Finished ^^!
Echo.
GOTO MENU2
:C_M
CLS
Echo.
Echo.
Echo you have chosen Celsius + Miles
Echo.
PING localhost -n 3 >NUL
bin\esptool.exe --chip esp32 --port %SerialPort% --baud 115200 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0xe000 bin\boot_app0.bin 0x1000 bin\bootloader_dio_80m.bin 0x10000 bin\CM.ino.bin 0x8000 bin\CM.ino.partitions.bin
Echo.
Echo Cleanup temporary files ....
Echo.
Echo Finished ^^!
Echo.
GOTO MENU2
:F_K
CLS
Echo.
Echo.
Echo you have chosen Fahrenheit + Kilometers
Echo.
PING localhost -n 3 >NUL
bin\esptool.exe --chip esp32 --port %SerialPort% --baud 115200 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0xe000 bin\boot_app0.bin 0x1000 bin\bootloader_dio_80m.bin 0x10000 bin\FK.ino.bin 0x8000 bin\FK.ino.partitions.bin
Echo.
Echo Cleanup temporary files ....
Echo.
Echo Finished ^^!
Echo.
GOTO MENU2
:F_M
CLS
Echo.
Echo.
Echo you have chosen Fahrenheit + Miles
Echo.
PING localhost -n 3 >NUL
bin\esptool.exe --chip esp32 --port %SerialPort% --baud 115200 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0xe000 bin\boot_app0.bin 0x1000 bin\bootloader_dio_80m.bin 0x10000 bin\FM.ino.bin 0x8000 bin\FM.ino.partitions.bin
Echo.
Echo Cleanup temporary files ....
Echo.
Echo Finished ^^!
Echo.
GOTO MENU2
:MENU2
pause
GOTO EOF
:EOF
EXIT
Last edited by Cabrio Bob; Sep 24, 2020 at 11:35 AM.
Also, are you running the firmware,bat file from inside the ZIP? Bob said this was a no-no and the ZIP should be unzipped to a folder and the batch file run from there. Just random thoughts. Apologies if you have tried these things already.
The error message means you have invalid paths in the path environment - for example, folders which no longer exist. So the batch file is attempting to use a directory it cannot find. Check the full paths for logic and see if that yields a clue. Have you tried moving the ZIP file to the desktop, creating a new folder and then unzipping Bob's file into it? Then swap to that new folder and run the batch file directly from there. Again, apologies if you have already done all this.
Glad you got it done in the end, regardless of how. So, have you installed the ADU in your car yet?
(Or at least on his user manual cover etc, with your permission of course).






