@@ -46,12 +46,14 @@ void Board320_240::afterSetup() {
|
||||
loadTestData();
|
||||
}
|
||||
|
||||
// Init from parent class
|
||||
syslog->println("BoardInterface::afterSetup");
|
||||
BoardInterface::afterSetup();
|
||||
bool afterSetup = false;
|
||||
|
||||
// Check if bard was sleeping
|
||||
if (bootCount > 1) {
|
||||
// Init comm device
|
||||
afterSetup = true;
|
||||
BoardInterface::afterSetup();
|
||||
// Wake or continue with sleeping
|
||||
afterSleep();
|
||||
}
|
||||
|
||||
@@ -115,6 +117,11 @@ void Board320_240::afterSetup() {
|
||||
if (liveData->settings.gprsHwSerialPort <= 2) {
|
||||
sim800lSetup();
|
||||
}
|
||||
|
||||
// Init comm device
|
||||
if (!afterSetup) {
|
||||
BoardInterface::afterSetup();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1170,16 +1177,16 @@ void Board320_240::menuItemClick() {
|
||||
case 4031: liveData->settings.pressureUnit = 'b'; showParentMenu = true; break;
|
||||
case 4032: liveData->settings.pressureUnit = 'p'; showParentMenu = true; break;
|
||||
// Pair ble device
|
||||
case 2:
|
||||
case 2:
|
||||
if (liveData->settings.commType == COMM_TYPE_OBD2CAN) {
|
||||
displayMessage("Not supported", "in CAN mode");
|
||||
delay(3000);
|
||||
hideMenu();
|
||||
return;
|
||||
displayMessage("Not supported", "in CAN mode");
|
||||
delay(3000);
|
||||
hideMenu();
|
||||
return;
|
||||
}
|
||||
scanDevices = true;
|
||||
liveData->menuCurrent = 9999;
|
||||
commInterface->scanDevices();
|
||||
scanDevices = true;
|
||||
liveData->menuCurrent = 9999;
|
||||
commInterface->scanDevices();
|
||||
return;
|
||||
// Reset settings
|
||||
case 8: resetSettings(); hideMenu(); return;
|
||||
@@ -1543,12 +1550,10 @@ bool Board320_240::sdcardMount() {
|
||||
while (1) {
|
||||
syslog->print("Initializing SD card...");
|
||||
|
||||
#ifdef BOARD_TTGO_T4
|
||||
syslog->print(" TTGO-T4 ");
|
||||
SPIClass * hspi = new SPIClass(HSPI);
|
||||
spiSD.begin(pinSdcardSclk, pinSdcardMiso, pinSdcardMosi, pinSdcardCs); //SCK,MISO,MOSI,ss
|
||||
SdState = SD.begin(pinSdcardCs, *hspi, SPI_FREQUENCY);
|
||||
#endif BOARD_TTGO_T4
|
||||
/* syslog->print(" TTGO-T4 ");
|
||||
SPIClass * hspi = new SPIClass(HSPI);
|
||||
spiSD.begin(pinSdcardSclk, pinSdcardMiso, pinSdcardMosi, pinSdcardCs); //SCK,MISO,MOSI,ss
|
||||
SdState = SD.begin(pinSdcardCs, *hspi, SPI_FREQUENCY);*/
|
||||
|
||||
syslog->print(" M5STACK ");
|
||||
SdState = SD.begin(pinSdcardCs);
|
||||
|
||||
@@ -220,6 +220,8 @@ void BoardInterface::loadSettings() {
|
||||
*/
|
||||
void BoardInterface::afterSetup() {
|
||||
|
||||
syslog->println("BoardInterface::afterSetup");
|
||||
|
||||
// Init Comm iterface
|
||||
syslog->print("Init communication device: ");
|
||||
syslog->println(liveData->settings.commType);
|
||||
|
||||
16
README.md
16
README.md
@@ -50,21 +50,19 @@ See INSTALLATION.md
|
||||
|
||||
Screen list
|
||||
- no0. blank screen, lcd off
|
||||
- no1. auto mode (summary info / speed kmh / charging graph)
|
||||
- no2. summary info (default)
|
||||
- no3. speed kmh + kwh/100km (or kw for discharge)
|
||||
- no1. automatic mode (summary info / speed kmh / charging graph)
|
||||
- no2. summary info
|
||||
- no3. speed kmh + kwh/100km
|
||||
- no4. battery cells + battery module temperatures
|
||||
- no5. charging graph
|
||||
- no6. consumption table. Can be used to measure available battery capacity!
|
||||
- no7. debug screen (default off in the menu)
|
||||
- no6. consumption table. Can be used to measure available battery capacity.
|
||||
|
||||

|
||||
|
||||
[](https://www.youtube.com/watch?v=Jg5VP2P58Yg&)
|
||||

|
||||

|
||||
|
||||
## Supporting me
|
||||
|
||||
- nick.n17@gmail.com (Lubos Petrovic / Slovakia)
|
||||
- Buy Me a Beer via paypal https://www.paypal.me/nickn17
|
||||
- Many thanks to Blas, Jens, Калин, Aleš Dokupil and others for help with first releases.
|
||||
- Many thanks to all evDash contributors.
|
||||
|
||||
|
||||
@@ -1,9 +1,20 @@
|
||||
# RELEASE NOTES
|
||||
|
||||
### Next version
|
||||
- removed debug screen
|
||||
- sdcard working only with m5stack
|
||||
- M5 COMMU (CAN) module support.
|
||||
|
||||
### v2.2.0 2020-12-29
|
||||
- Direct CAN support with m5 COMMU module (instead obd2 BLE4 adapter). RECOMMENDED
|
||||
- EvDash deep sleep & wake up for Hyundai Ioniq/Kona & Kia e-Niro (kolaCZek).
|
||||
- Send data via GPRS to own server (kolaCZek). Simple web api project https://github.com/kolaCZek/evDash_serverapi)
|
||||
- Better support for Hyundai Ioniq (kolaCZek).
|
||||
- Kia e-niro - added support for open doors/hood/trunk.
|
||||
- Serial console off/on and improved logging & debug level setting
|
||||
- Avoid GPS on UART0 collision with serial console.
|
||||
- DEV initial support for Bmw i3 (Janulo)
|
||||
- Command queue refactoring (Janulo)
|
||||
- Sdcard is working only with m5stack
|
||||
- Removed debug screen
|
||||
- M5 mute speaker fix
|
||||
|
||||
### v2.1.1 2020-12-14
|
||||
- tech refactoring: `hexToDecFromResponse`, `decFromResponse`
|
||||
|
||||
4
config.h
4
config.h
@@ -2,8 +2,8 @@
|
||||
|
||||
#include <BLEDevice.h>
|
||||
|
||||
#define APP_VERSION "v2.2.0-dev"
|
||||
#define APP_RELEASE_DATE "2020-12-14"
|
||||
#define APP_VERSION "v2.2.0"
|
||||
#define APP_RELEASE_DATE "2020-12-29"
|
||||
|
||||
// TFT COLORS FOR TTGO
|
||||
#define TFT_BLACK 0x0000 /* 0, 0, 0 */
|
||||
|
||||
BIN
dist/m5stack_core1/evDash.ino.bin
vendored
BIN
dist/m5stack_core1/evDash.ino.bin
vendored
Binary file not shown.
BIN
dist/ttgo_t4_v13/evDash.ino.bin
vendored
BIN
dist/ttgo_t4_v13/evDash.ino.bin
vendored
Binary file not shown.
BIN
screenshots/v2.jpg
Normal file
BIN
screenshots/v2.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 167 KiB |
BIN
screenshots/v2_m5charging2.jpg
Normal file
BIN
screenshots/v2_m5charging2.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 83 KiB |
BIN
screenshots/v2_m5speed.jpg
Normal file
BIN
screenshots/v2_m5speed.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 85 KiB |
Reference in New Issue
Block a user