From 7297a88f2ea0d1c86568ec3d00b795c10d2536ac Mon Sep 17 00:00:00 2001 From: Carsten Schmiemann Date: Wed, 6 Apr 2022 01:12:45 +0200 Subject: [PATCH] Update readme, default sdkconfig --- OVMS.V3/support/sdkconfig.default.hw31 | 3 +- README.MD | 50 ++++++++++++++++++++------ 2 files changed, 41 insertions(+), 12 deletions(-) diff --git a/OVMS.V3/support/sdkconfig.default.hw31 b/OVMS.V3/support/sdkconfig.default.hw31 index 33df44d..50966ef 100644 --- a/OVMS.V3/support/sdkconfig.default.hw31 +++ b/OVMS.V3/support/sdkconfig.default.hw31 @@ -671,8 +671,8 @@ CONFIG_OVMS_VEHICLE_RENAULTTWIZY=y CONFIG_OVMS_VEHICLE_RENAULTZOE=y CONFIG_OVMS_VEHICLE_MAXED3=y CONFIG_OVMS_VEHICLE_KIASOULEV=y -CONFIG_OVMS_VEHICLE_VOLTAMPERA=y CONFIG_OVMS_VEHICLE_BOLTEV=y +CONFIG_OVMS_VEHICLE_VOLTAMPERA=y CONFIG_OVMS_VEHICLE_THINKCITY=y CONFIG_OVMS_VEHICLE_SMARTED=y CONFIG_OVMS_VEHICLE_SMARTEQ=y @@ -688,6 +688,7 @@ CONFIG_OVMS_VEHICLE_MG_EV=y CONFIG_OVMS_VEHICLE_BMWI3=y CONFIG_OVMS_VEHICLE_HYUNDAI_IONIQVFL=y CONFIG_OVMS_VEHICLE_JAGUARIPACE=y +CONFIG_OVMS_VEHICLE_TOYOTARAV4EV=y CONFIG_OVMS_VEHICLE_RXTASK_STACK=8192 CONFIG_OVMS_VEHICLE_CAN_RX_QUEUE_SIZE=60 diff --git a/README.MD b/README.MD index 7ef7a2f..9d2b918 100644 --- a/README.MD +++ b/README.MD @@ -9,11 +9,12 @@ Orignal project: https://github.com/openvehicles/Open-Vehicle-Monitoring-System- The fork is fixed at Version 3.3.002 with their provided modified ESP-IDF ## To-Do List -* Integrate PIDs for reading values like odometer, battery cell voltage and so on, via OBD connector (because of gateway read-only) -* Accessing CAN bus after gateway to get full access to controllers use all available CAN bus interfaces OVMS hardware has -* Get more useful PIDs with direct access of CAN busses -* Try to control things like wake-up, charge control -* Implement own control routines like stopping charge after certain soc, try to control Cabine heaters to heat while charging (use debug commands to enable them) +- [ ] Integrate my server to assistant and server recommendation and add CA as well +- [ ] Integrate PIDs for reading values like odometer, battery cell voltage and so on, via OBD connector (because of gateway read-only) +- [ ] Accessing CAN bus after gateway to get full access to controllers use all available CAN bus interfaces OVMS hardware has +- [ ] Get more useful PIDs with direct access of CAN busses +- [ ] Try to control things like wake-up, charge control +- [ ] Implement own control routines like stopping charge after certain soc, try to control Cabine heaters to heat while charging (use debug commands to enable them) ## Releases @@ -21,9 +22,12 @@ Successful build will be uploaded to my own ovms-server at https://ovms.bit-clou ## Build -Clone my repository +Clone my repository and init submodules ``` -git clone https://git.bit-cloud.de/carsten.schmiemann/OVMS3.git --recurse-submodules +git clone https://git.bit-cloud.de/carsten.schmiemann/OVMS3.git +cd OVMS3/ +git submodule init +git submodule update ``` Install provided ESP IoT Development Framework @@ -33,22 +37,32 @@ cd OVMS.V3-idf/ ./install.sh ``` -Enable IDF +If you have trouble to install because another version of the IDF installed, delete the entire folder and try step above again + +``` +rm -rf ~/.espressif +``` + +Enable IDF (everytime you open a shell and want to compile project) ``` cd OVMS.V3-idf/ source export.sh ``` -Go to OVMS Folder and build firmware +Go to OVMS Folder copy sdkconfig for your hardware and build firmware +In this example for hardware 3.1 and above. You can customize it via make menuconfig ``` cd OVMS.V3/ +cp support/sdkconfig.default.hw31 sdkconfig make -jX ``` X = number of cpu cores to speed up build process -Then upload built firmware to your webserver and flash it via OTA function in OVMS webinterface +Then upload built firmware to your webserver and flash it via OTA function in OVMS webinterface. + +> Hint: If you build your first time, you need to execute make multiple times, because of downloading dependencies. ## Security concerns @@ -58,4 +72,18 @@ Many of used libraries are outdated too. For example mongoose webserver has a lo I cannot fix these issues because I am not an experienced C programmer, I will focus on my vehicle integration. -I hope original project maintainers will fix them in the future, I know it is not an easy task because there a lot of changes in the IDF and dependencies. \ No newline at end of file +I hope original project maintainers will fix them in the future, I know it is not an easy task because there a lot of changes in the IDF and dependencies. + +## OVMS Server + +I use my own OVMS server, because I love privacy. So there are no push available only E-Mail for notifications. + +You can use it too if you want, just register a account and vehicle at https://ovms.bit-cloud.de and point your OVMS module at https://ovms-server.bit-cloud.de Port 6870 with TLS enabled. +You need to insert my CA into your OVMS3, because I cannot proxy it with nginx and letsencrypt certificates so I used self signed certs. + +Create a file called ovms-ca at /store/trustedca with bult in editor in the webinterface. (Create folder if not exist) +Paste content of ovms-ca.crt file to it and save it. +The go to the web shell or ssh and typ in +``` +tls trust reload +``` \ No newline at end of file