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

|

|
||||||
|

|
||||||
[](https://www.youtube.com/watch?v=Jg5VP2P58Yg&)
|
|
||||||
|
|
||||||
## Supporting me
|
## Supporting me
|
||||||
|
|
||||||
- nick.n17@gmail.com (Lubos Petrovic / Slovakia)
|
- nick.n17@gmail.com (Lubos Petrovic / Slovakia)
|
||||||
- Buy Me a Beer via paypal https://www.paypal.me/nickn17
|
- 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
|
# RELEASE NOTES
|
||||||
|
|
||||||
### Next version
|
### Next version
|
||||||
- removed debug screen
|
|
||||||
- sdcard working only with m5stack
|
### v2.2.0 2020-12-29
|
||||||
- M5 COMMU (CAN) module support.
|
- 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
|
### v2.1.1 2020-12-14
|
||||||
- tech refactoring: `hexToDecFromResponse`, `decFromResponse`
|
- tech refactoring: `hexToDecFromResponse`, `decFromResponse`
|
||||||
|
|||||||
4
config.h
4
config.h
@@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
#include <BLEDevice.h>
|
#include <BLEDevice.h>
|
||||||
|
|
||||||
#define APP_VERSION "v2.2.0-dev"
|
#define APP_VERSION "v2.2.0"
|
||||||
#define APP_RELEASE_DATE "2020-12-14"
|
#define APP_RELEASE_DATE "2020-12-29"
|
||||||
|
|
||||||
// TFT COLORS FOR TTGO
|
// TFT COLORS FOR TTGO
|
||||||
#define TFT_BLACK 0x0000 /* 0, 0, 0 */
|
#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