3.2.005-155-g3133466f OTA build Thu Oct 31 22:31:05 CET 2019 See ovms3.log for details 3e937a9e MCP2515 CAN: ISR in IRAM, yield if higher priority task woken f7aecc2d ESP32CAN: SJA1000 hardware bug workaround (trashed FIFO frames) 87ca9758 CANopen: raise task priorities to 15 (service protocol level) 9076518a CANopen: raise task priorities to 15 (service protocol level) 434ce8db SIMCOM: reduce FIFO overflows by allocating the IRQ to core #0 level 2 and running the task on core #0 53a35089 docs: Try a requirements.txt to resolve m2r issue c9657360 docs: Try adding a readthedocs.yml file to resolve the issue with m2r c9916bdf docs: Try adding a readthedocs.yml file to resolve the issue with m2r 3f7fe6af Docs: include project readme as introduction page, update server link 00ab9db0 sdkconfig: enable mongoose SSL, mbedTLS PSK keys & pushover by default 5ea7fd28 Stub support for Tesla Model 3 - for experimental development 54b8d815 Docs update: module factory reset -noconfirm 75adce76 History update e8bf76d7 Add option "-noconfirm" to "module factory reset" command 0706ff03 SIMCOM: all parts in internal RAM, higher ISR & task priority, larger queue, faster mux frame recovery, counters & logs for overflow errors 627652e5 cppcheck fixes 528f4e0e Documentation for OvmsConfig scripting 9ec55f5b Documentation for OvmsConfig scripting 50086c0d Javascript (duktape) support for OvmsConfig 50031125 Readme: added undocumented vehicles 6cf485e0 Readme rework 17bd0a41 PowerMgMt: Fix powering on previously powered down SIMCOM and WiFi modules - Update changes.txt - Default 12v shutdown grace period 10->30min - Fix Web UI text 5d2abcf7 New Power management module - Switch off SIMCOM and WiFi after certain (configurable) time period of idling/non-charging of 12V battery has lapsed. - Turn on previously switched off modules if 12V charging is initiated - If 12V battery alert is received, shut down all the modules and OVMS after certain configurable grace period (e.g. 30 minutes) 5d2cdae1 Turn off all SWCAN leds when powered off de7884dd Pushover client is not PCP inherited 24670abc Fix 12V battery alert not canceled if 12V battery charging is started 38548a8a CAN: minimize RX callback delay c5403a40 Pushover: fix keeping discarded notifications 63f6bb8c Enable building for unicore mode (CONFIG_FREERTOS_UNICORE) 69ec063e History fix 2ec5dbaa Twizy: send custom OBD2 requests, output response as hex dump e83659b9 Vehicle poller: fix race condition between control & processing, restart poller on PID list change 53f5d3d3 Vehicle poller: fix race condition between control & processing, restart poller on PID list change 21eaf6f9 NissanLeaf: Reduce fluctuations in estimated charge time 19590d86 Metrics: Show metric age and staleness only with -s option 0efe3612 Move all MG_CONFIG_SSL dependencies and combine them to new config entry ("Mongoose SSL/TLS support" / CONFIG_MG_ENABLE_SSL) - Mongoose SSL support explicitly requires "Enable PSK based ciphersuite modes" - Pushover explicitly requires Mongoose SSL support 7b4ef268 Revert CONFIG_OVMS_SYS_COMMAND_STACK_SIZE change 494dee48 CAN & MCP2515: Add standard text output to "viewregisters" command. 1a3cbbac CAN/SWCAN: Rename "swcan" bus to "can4" 085dffd9 SWCAN: Rename and move swcan/swcan_led class to more general main/ovms_led 0d30f476 Zoe: add more metrics 7414f30b Scripting: add OvmsNotify.Raise(), polish docs 88f91f6b Scripting: new Javascript API: OvmsEvents.Raise() 8436e0df Events: add option to schedule (delay) events a8833a7e Twizy: immediate tuning metrics updates (was delegated to ticker before), remember profile key loaded into working set, remember tuning applied state c2a90b44 Script: lib/JSON: fix null case, add compact option, add JSON.format() 6fd54a5b Fix for Kia e-Niro 8d7575bf Zoe: add more metrics cb11ff5a Docs: added foglight module & web plugin example 07c15103 Vehicle: reset minsoc trigger on setting minsoc=0 e19d24e1 "standard" OBD2ECU cable is now available 7f86e9c1 Correct 700MB -> 7MB for module/debug.tasks 5b24c45d Add changes for 3.2.005 b281949f Default module/debug.tasks to FALSE 58b60cf7 Docs: added missing events, fixed some headlines, Twizy docs restructuring, Twizy custom events & metrics added 9bedb295 Volt/Ampera: Few bug fixes - Fix preheating stopping logic - Fix build error when SWCAN board is not configured - Disable unused CAN2 bus ea4afe4b Preparing for pull request - Add changes - Revert README.md (remove SWCAN fork info) 8f06a3cc Vehicle: Fix occasional stack overflow when receiving CAN msg causes notification to be sent 05851c15 MCP2515: Fix configuration registers for SWCAN. - Obey recommendations of GMLAN standards for 33.3kbs configuration (Sync Jump Width >=2 tQ, Later sample point position) - Disable one-shot mode (repeat tx if tx error) - Verbose error logging for tx/rx errors bdee0f3b SWCAN: Fix status led default state 52d2f8c0 Volt/Ampera: Better preheating logic and bugfixes - Relinquish control of preheating to BCM when it is invoked with key fob - Add warning text to va_web: 14V auxiliary module not enabled when BCM overriding is used! - Verbose CAN msg debugging - Extended SWCAN wakeup for all modules (whereas standard wakeup uses only BCM CAN address, but seems to wake up all the modules anyway and is faster, so it's recommended) - Increase delay after SendTesterPresentMessage (BCM may not react sooner) - TxCallback: Let MCP2515 handle the errors and re-transmitting 6d85307b Metrics: Show metric Age and Staleness with 'metric list' cmd. - Age is in seconds, or 99 if older. - new InitVector and GetSize functions for OvmsMetricVector 9724d1de Volt/Ampera: Read and set current and available charging limits - Read the current and available charging limits/levels via CAN. - Allow charging current to be set. From the available current levels, select the highest one that is equal or lower than the wanted. (for example, if we want 9 amps, and available are 6, 8 and 10 amps, we will select the 8 amp limit). 12f62dec Volt/Ampera: Preheating improvements - Update v.e.hvac metrics so that server and mobile apps receive the HVAC status - If preheat is initiated via fob while preheating is already done by overriding BCM, relinquish the control to the BCM a26a880e Fix occasional crash when disconnecting WiFi client (OVMS Netmanager was using non-SSL enabled "struct mg_connection" whereas Mongoose was operating on larger SSL-enabled struct. When Netmanager was modifying connection flags, it ended up overwriting pointer to iface struct..) e169d4d7 Volt/Ampera: Major update to Remote Start / Preheating functionality - Move all preheating/AC functionality over to separate va_ac_preheat.cpp - In addition to controlling preheating by emulating Onstar, it's now possible to override Body Control Module by forcing the AC module to turn on AirCon. This is used for those models (such as my Opel Ampera 2014) that won't respond to Onstar commands. However this requires the OVMS to take care of everything (starting, stopping, timeouts, controlling lights to indicate AC on/off etc..) and is very alpha at this stage Volt/Ampera: Dedicated web page for configuring Volt/Ampera module - Allow selecting either Onstar emulation or BCM overriding for Preheating - Maximum preheating time (only when using BCM overriding) - Allow selecting faster car wakeup sequence (which might be less reliable, needs more testing) - Send bogus (ambient temperature) tire temperature settings, since iOS app won't show tire pressure without temperature.. - Fix gear values - Use diagnostic messages to control car lights. Also send "tester present" message as long as we control at least one light. Relinquish control when car is not parked anymore (gear selection != -2) - Interior lamp is flashed when car is woken up - Fix to use updated CAN tx macros d626b73d CAN & MCP2515: Fix receiving frames 22217ccf SWCAN: Use the status LED of add-on board and dongle for showing network connectivity - Blink 500ms on and off: Initializing (no modem/WiFi yet active) - 1 short blink: Modem powered - 2 short blinks: Modem MUX started - 3 short blinks: Modem NetWait - 4 short blink: Modem NetStart - LED on: Server V2 connection established - Blink 250ms on and off: Server V2 disconnected SWCAN leds: New feature: Bursts of short blinks 2b308f21 SIMCOM & WebConfig: Allow user to set custom SIM card PIN code 705868b3 CAN, MCP2515, SWCAN: Repeatedly call MCP2515 interrupt handler until all interrupts are handled - Change the name of RxCallback to AsyncInterruptHandler (and CAN_rxcallback to CAN_asyncinterrupthandler) because it handles not only "frame received interrupt" but also tx and error related interrupts - MCP2515 could change the CANINTF during AsyncInterruptHandler (but no new IRQ is created when the interrupt pin is already low!), so we might miss this new interrupt, which never gets handled. AsyncInterruptHandler won't be called again and interrupt pin stays low, so no more action from MCP2515 until watchdog resets the bus. This is fixed by reading interrupt pin in the end of AsyncInterruptHandler to make sure all interrupts are handled, and if not, force a new iteration of interrupt handling - Add "writeregister" command for debugging purposes - Increase CAN task stack size temporarily to 4096 since at least one stack overflow was detected - 292a9cf1 Canutils: Fix SEND_STD_FRAME / SEND_EXT_FRAME macros - Now works with 0 byte payload - Removed the payload length calculation macro, since I couldn't get it to expand inside other macros (always returned 1). As isolated macro it did work though.. Now payload length has to be given in a separate argument. adec5d15 Vehicle Volt/Ampera: More robust Preheat/Remote start and metrics handling - More exact timing and content of Onstar messages (mimicking the MyVoltStar app) - Alternative for Onstar emulation for those models that don't respond to Onstar: Mimic BCM by sending Remote Start messages and override BCM every time it tries to turn off Remote Start. Handle also turning off the AC after fixed time (now 20 mintues). For overriding BCM the "preheat.override_bcm" config is used. - Recognize when Preheting/Remote start is initialied via key fob and just follow passively (let BCM take care of starting/stopping in this case) - New metrics: AC blower fan speed, coolant temperature, coolant heater power, cabin temperature - Modified the wakeup script by also waking up HVAC (for updating cabin temperature every time car is woken up) - Get outside temperature passively (no need for polling) - Fix metrics: engine on, speed, throttle, gear - Fix alarm recognition and handling - Assume 12V battery is charging if >12.7V, since it can be recharged from HV battery when car is on, or via external 12V charger. - Reset tx_retry_counter every 10 seconds. NOTE: This counter functionality is just temporarily in place just so we won't flood CAN bus unnecessarily. To be removed later (besides CAN controller should disconnect the bus after too many errors) - Use easier-to-read SEND_EXT_FRAME / SEND_STD_FRAME macros 1c321066 Canutils: New helper preprocessor functions for setting CAN msg structure and getting payload bytes 58e74922 Improved Pushover support - Show server reply on Web configure interface when sending test msg - No need to first save settings when sending test msg - Fix Mutexes - Receive server reply via non-blocking/blocking calls 0c1f186e Pushover notification system support - Add support for Pushover notification system (+ web based configuration on a new "Notification" tab). - Enable SSL/TSL for all components that use Mongoose (This is a must, since a shared mg_connect_opts is created by client, and the structure will be too small if MG_ENABLE_SSL is not defined! However no actual SSL connection will be used, unless explicitely defined by setting ssl_ca_cert option). Also remember to enable "Component config" -> mbedTLS" -> TLS Key Exchange Methods" -> Enable pre-shared-key ciphersuites" -> "Enable PSK based ciphersuite modes". - Web server: Increase stack size temporarilly by 100% (need to check how much more is actually needed) 3cd45641 Update README.md 295ea3d1 Add SWCAN support to Volt/Ampera module. Handle several additional SWCAN / High-Speed CAN messages 6f95e65f Support for SWCAN add-on board (for hardware details, see https://github.com/mjuhanne/OVMS-SWCAN). fec9e426 CAN & MCP2515: Add functionality to view MCP2515 registers on console c9fc014b CAN: Fix crash with no supplied callback function when sending CAN msg manually from cmd line f94ae5a1 CAN & MCP2515: Move copy of transmitted frame from MCP2515 to base class ESP32CAN: Add Tx Callback functionality ce656afd SPI: Fix receiving insufficient number of data 3b8dfa80 CAN: Preliminary SWCAN support (add new "swcan" bus) CAN: Add tx callback functionality (success/fail). There is possibility to hook a bus-wise callback as well as individual frame-specific callback. CAN: Log tx failures MCP2515: SPI software CS support MCP2515: Disable interrupts during configuration MCP2515: Better error handling. Verify MCP2515 configuration MCP2515: Refactoring: ChangeMode, WriteReg and WriteRegAndVerify functions. Use constant declerations for MCP215 register addresses a67f2056 SPI: Check if device uses software CS and select/deselect it if needed c8b91eae Fix crash: Housekeeping Ticker may be called before MyPeripherals is ready 530d7f4b Twizy: do charge ETR calculation based on actual charge current (takes higher currents from additional chargers and reduced currents due to temperature conditions into account) 3acc5567 Twizy: added tuning option for SEVCON_T45 + Gearbox_T80 hybrid 51e0cc10 Docs: added link & info on Hologram activation 6d3795ef Docs/WebUI: added dashboard plugin info & screenshot 9e41a634 Build config for toolchain 1.22.0-93-gf6c4cdf-5.2.0-psramfix-20190612 c290df73 Added new toolchain build flags, reverted workaround changes