./davegax-v5-installer
davegax-v5-installer v1.2
This will install the firmware version 5.01 on your DAVEGA X.
Before you proceed, it's recommended that you create an online backup:
Menu > Update & Backup > Backup > backup config & data
Make sure you have the CP2102 drivers installed and connect your DAVEGA to the USB port.
You will also need internet connection.
Ready? [y/n]: y
Auto-detecting DAVEGA X port...
3 serial ports found.
Trying /dev/cu.usbserial-01B57D67 ...
Connecting....
Success!
Port detected successfully!
Getting the device ID...
Connecting....
Device ID: 7f82xxxxxxxxxxxx
Getting the license key for your device...
Verifying the license key...
Looks good!
Exporting data to /Users/romanp/Downloads/backup.dfs...
Failed to enter raw REPL mode.
Retrying...
Getting the list of files...
Exporting file: /data/canidcache
Exporting file: /data/config.json
Exporting file: /data/last_backup_km
Exporting file: /data/mishaps
Exporting file: /data/odometer1.json
Exporting file: /data/odometer2.json
Export successful!
Fetching the firmware file...
Downloaded successfully.
Erasing flash memory....
esptool.py v3.0
Serial port /dev/cu.usbserial-01B57D67
Connecting....
Chip is ESP32-D0WDQ6 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 80:7d:3a:b7:72:cc
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Erasing flash (this may take a while)...
Chip erase completed successfully in 10.8s
Hard resetting via RTS pin...
Upgrading to v5....
esptool.py v3.0
Serial port /dev/cu.usbserial-01B57D67
Connecting....
Chip is ESP32-D0WDQ6 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 80:7d:3a:b7:72:cc
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Compressed 1612832 bytes to 1020071...
Wrote 1612832 bytes (1020071 compressed) at 0x00001000 in 24.7 seconds (effective 522.0 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
Upgrade successful!
Installing the license key...
Failed to enter raw REPL mode.
Retrying...
Creating file: /license
License key installed!
Restoring backup...
Creating directory: /data
Creating file: /data/canidcache
Creating file: /data/config.json
Creating file: /data/last_backup_km
Creating file: /data/mishaps
Creating file: /data/odometer1.json
Creating file: /data/odometer2.json
Backup restored!
All done successfully! Yay!
Press enter to continue...
This baud rate is used when DAVEGAX is connected over USB to computer just for update process. This is not the same baud rate as DAVEGAX uses for connecting to VESC.
@Dunkan, could you please check whether it’s any better with the latest firmware (v5.04rc2)? Once you install that one, DAVEGA will only look at the motor 1 data for energy discharged/recharged and will interpolate for the total number of motors. That should give you better consumption/range estimates. If it doesn’t get better you can return to the original behavior by setting Misc > interpolate energy = disabled.
@janpom it’s better! Much more accurate range estimates. The only thing is the refresh rate is pretty slow, I don’t know if it’s my set-up, but i will accelerate and the screen stays stuck on 5kph even though im at like 30, and it takes a good 4-5 seconds to update
Great that the range projection improved. Regarding the refresh rate issue, are you sure that’s actually related to the firmware update? Have you tried if it goes away if you downgrade to the previous version?
That sounds more like a VESC communication issue. DAVEGA is having hard time getting responses from the VESC and thus it takes long to get a screen update. That could be a hardware problem – cable connector coming loose, or cable being pinched somewhere.