commit 9c1a991a9a27de8afdc9fd408262a2fe0be7aef4 Author: Michael Balzer Date: Mon Apr 30 22:39:05 2018 +0200 Vehicle: 12V battery monitoring & alert New configs: - vehicle [12v.alert] = 1.6 Voltage drop alert threshold in V vs. reference New metrics: - v.b.12v.voltage.ref 12V reference voltage [V] - v.b.12v.voltage.alert Alert status (bool) commit ff7b267f78f049547a801ffe9ed872c084476465 Author: Michael Balzer Date: Mon Apr 30 15:07:19 2018 +0200 Stack sizes for vehicle and CANopen tasks raised (fix overflow crashes) commit f448e90e955edbcac8bf56e3d09051d2b5651930 Author: Michael Balzer Date: Mon Apr 30 14:54:57 2018 +0200 Twizy: ignore SC fault "unexpected slave state" if requested for cfgmode commit 19aa694dd16b9a6275758acf814f9f56f9be5088 Author: Michael Balzer Date: Mon Apr 30 14:41:45 2018 +0200 Twizy: attempt to fix spurious charge stops (issue #72, needs to be verified) commit 306f757c39146e8eb416ed304086dc1a19bae6b9 Author: Michael Balzer Date: Sun Apr 29 23:30:01 2018 +0200 Web UI: OTA config for auto update & server, version info popup commit 7cac6b50d0de30e424d81dc0f74bd287cf4e0710 Author: Michael Balzer Date: Sun Apr 29 23:22:33 2018 +0200 OTA: compare canonical versions, allow empty server config commit 58fa1b57448d3491889e3d1d3f487e475d036c92 Author: Mark Webb-Johnson Date: Sun Apr 29 22:23:42 2018 +0800 AutoFlash implementation: Config auto[ota]=yes Config ota[auto.hour]=2 commit 1a4301d7ca1c7ed619109dfcb2e832a599af7dda Author: Mark Webb-Johnson Date: Sun Apr 29 21:57:00 2018 +0800 Bring in GNU strverscmp component, and test command commit 87d80c30825b3c5745184c9f4e458fafa1f47c64 Author: Michael Balzer Date: Sat Apr 28 23:25:56 2018 +0200 Mongoose: enable using getaddrinfo() in mg_parse_address() Note: "git submodule update" required commit e6f7556dc102377550da9ffcbc8a3a35b5040258 Author: Mark Webb-Johnson Date: Sat Apr 28 10:58:12 2018 +0800 Issue warnings (and discard future traffic) for unsupported pcap formats commit 9d6bfb3051f02ac3e9c5b174a21f93ec7382452b Author: Michael Balzer Date: Fri Apr 27 20:56:58 2018 +0200 Netmanager/Mongoose: use interface specific DNS servers Note: mongoose update involved, issue "git submodule update". This switches mongoose to use LWIP getaddrinfo() as it is superior to the mongoose resolver. Netmanager then stores DNS servers acquired by connections and restores them accordingly as the default interface changes. Should solve issue #43. commit 1bccb7535cfbd4a68f0a26e3641c22fb464037b4 Author: Mark Webb-Johnson Date: Fri Apr 27 23:12:48 2018 +0800 RE TOOL support PCAP format for can dumps commit e8d090d92162c604acf88be3d6f1c0d373aceed2 Author: Mark Webb-Johnson Date: Fri Apr 27 23:12:36 2018 +0800 CANDUMP PCAP support commit 2e44c82c5f1af41015262c0b10eca97c431105a3 Author: Mark Webb-Johnson Date: Fri Apr 27 21:21:33 2018 +0800 Outgoing header support for candump implementations commit ff2cbd2f5252940cb58935caf81a27e60c54fe4d Author: Mark Webb-Johnson Date: Fri Apr 27 13:55:42 2018 +0800 Show timezone in 'time status' command. commit 5806fd1df45754b1ce5aa0a655b4a0a52c06e911 Author: Mark Webb-Johnson Date: Fri Apr 27 13:46:00 2018 +0800 Display housekeeping period time prettier commit 28672d4b5a01eb46acbd459431e68bd227735075 Author: Michael Balzer Date: Thu Apr 26 23:06:01 2018 +0200 Server.V2: TransmitNotify optimization - limit data notification transmissions to 500 ms per call to prevent long ticker.1 runs on queued notifications - check for retransmissions due to missing ACKs - transmit alerts first commit 97ef6a1eb3a247ccbcf27e0b37d99bf68864579f Author: Mark Webb-Johnson Date: Thu Apr 26 22:09:17 2018 +0800 Re-work candump for efficiency improvements commit 0046e07b675fae381b82caf953053923d0cbb807 Author: Robin O'Leary Date: Sat Apr 21 10:54:20 2018 +0100 Add new metrics for Nissan Leaf (tested on MY2015 24kWh). Added new metrics: * ms_v_door_fl etc. from 0x60d[0] * ms_v_env_cabintemp from 0x54f[0] * ms_v_env_cooling, ms_v_env_heating from 0x54b[1] * ms_v_env_footbrake from 0x292[6] * ms_v_env_gear from 0x421[0] * ms_v_env_handbrake from 0x5c5[0] (previously faked by vehicle_nissanleaf_car_on) * ms_v_env_headlights from 0x60d[0..1] * ms_v_env_locked from 0x60d[2] * ms_v_env_throttle from 0x180[5] * ms_v_inv_temp from 0x510[7] * ms_v_tpms_fl_p etc. from 0x385[2..5] commit cd6d3f64c4be8cbc4e98fec1def67b738889b82e Author: Mark Webb-Johnson Date: Thu Apr 26 10:21:30 2018 +0800 More sophisticated 'test realloc' to try to stress test things more. commit 5357fa2d7f4304522229b388b7f4a9ae55d0a4eb Author: Mark Webb-Johnson Date: Thu Apr 26 10:14:38 2018 +0800 Implement 'test realloc' command. commit 54c34bacc2d67fa783b3fe79c1d705a77bd33d7f Author: Mark Webb-Johnson Date: Thu Apr 26 10:02:30 2018 +0800 RE Tools: Performance improvement for receiption of simulated CAN bus dumps commit a3894cb390b412395aa94aff90223393c658a62f Author: Mark Webb-Johnson Date: Thu Apr 26 09:02:32 2018 +0800 Housekeeping: Just show first 3 characters of timezone commit d8b6403e474c0da955d7e7cd55abced5da2778e0 Author: Mark Webb-Johnson Date: Thu Apr 26 08:28:42 2018 +0800 General todo and knownissues status update commit a27c49fa01f1fccc14ca1c6551545693da8eeb42 Author: Mark Webb-Johnson Date: Thu Apr 26 08:11:33 2018 +0800 Issue#50: Volt/Ampera: v.e.awake via canbus activity commit 0c365d749de51481b6c9156ed705209631d35466 Author: Stephen Casner Date: Wed Apr 25 13:43:29 2018 -0700 Fix issue #47: allow Mongoose to use external RAM First move the ExternalRamMalloc() function from a C++ file into a new C file and add ExternalRamCalloc() and ExternalRamRealloc() so the C library Mongoose can use them to allocate buffers from external RAM. This fixes the problem that SSH must discard output when it is produced faster than the network can transmit it and at a volume greater than can be stored in internal RAM. commit ae8ce807bbb179a88dbe05f6cd784df8a86aaffd Author: Michael Balzer Date: Wed Apr 25 22:33:23 2018 +0200 Twizy v0.15: included tuning parameters for SC80GB45 hybrid (Twizy80 SEVCON with Twizy45 gearbox) commit 083112bd84c3cbd77005c790e1529338f3b1a0b3 Author: Michael Balzer Date: Wed Apr 25 13:10:12 2018 +0200 Twizy: fix battery sensor aggregation commit d9e276e4ca847efa483798b9a26d730a65b5e5f5 Author: Michael Balzer Date: Wed Apr 25 13:06:41 2018 +0200 Websocket: fix memory leak on termination commit 4ff9b5e440237d1b274f2d567ae99368b5ea47a7 Author: Mark Webb-Johnson Date: Wed Apr 25 08:53:06 2018 +0800 Minor changes to housekeeping periodic logging commit 1f885164a1d5556fdfb63ba7bcd093dfb418f353 Author: Mark Webb-Johnson Date: Tue Apr 24 21:36:41 2018 +0800 Issue#46: HTTP downloads >1K via modem/ppp broken commit 6f7ba81e399c2e6feb83d0c67db1f64fc79a6965 Author: Michael Balzer Date: Tue Apr 24 14:32:00 2018 +0200 Module: added character dump to "module memory " output commit f84ca28bad7ed427a3858dc24b09cdbc23a06d89 Author: Michael Balzer Date: Tue Apr 24 13:03:34 2018 +0200 Websocket: fixed memory leak on job queue overflow commit f6073ea6662c07ce0ca1629783d8f15024ad3c68 Author: Michael Balzer Date: Tue Apr 24 12:12:06 2018 +0200 Web UI: fixed auto client SSID renaming in wifi config commit 10459f71a8fd4058985301b4c52199b0e6746d4b Author: Mark Webb-Johnson Date: Tue Apr 24 09:39:57 2018 +0800 VoltAmpera: Vehicle status commit c3d92fbde646a77faeb4b828ad49ff813e16f6e6 Author: Mark Webb-Johnson Date: Tue Apr 24 09:39:41 2018 +0800 New 'vehicle status' command and facility for vehicles to report their status (mostly developer oriented) commit bf4a1abe3c616a4f96a4bb686e6c11caf4d45c46 Author: Mark Webb-Johnson Date: Tue Apr 24 09:08:41 2018 +0800 VoltAmpera: Support for estimated and ideal ranges commit 3ecc4252c95a3537ffd5714f30815763aed1fb21 Author: Mark Webb-Johnson Date: Tue Apr 24 08:44:00 2018 +0800 VoltAmpera: Add support for type V/A and model year in vehicle type metric commit 958267c328821e0d738cdfa14a5e175d0da903e1 Author: Mark Webb-Johnson Date: Tue Apr 24 07:45:00 2018 +0800 Move ovms_extram.h -> ovms.h commit e05d8333064da25d5a84e595d5116b2509b0e9b6 Author: Michael Balzer Date: Tue Apr 24 00:39:09 2018 +0200 Server v2+v3: mutex to fix crashes due to now async disconnect event commit 03704eeedb090464bf712bbc3bcc6140a141e4ab Author: Michael Balzer Date: Tue Apr 24 00:30:31 2018 +0200 CANlog: raised task prio and queue size to reduce drops Note: it's still recommended to stop all unnecessary tasks while recording a CAN log, especially SD logging should be closed as the frequent SD syncs affect overall system performance. commit f4afdab5023303221a08780e28f814fc478b3734 Author: Michael Balzer Date: Tue Apr 24 00:11:18 2018 +0200 Simcom: faster PowerOffOn cycle, added to setstate command commit e05468d0bfab00fa46a9b140a32090a87f36b863 Author: Michael Balzer Date: Mon Apr 23 23:43:48 2018 +0200 Housekeeping: TimeLogger every 5 minutes with internal RAM status commit a344d4bbef066f65fcfe8b2f6a8446aba3303555 Author: Michael Balzer Date: Sun Apr 22 23:51:49 2018 +0200 Events: queue overflow check & msg deallocation commit 6ba88a76ad9520bafb0fa1ad8490f0101ce8ae3d Author: Michael Balzer Date: Sun Apr 22 21:06:30 2018 +0200 simcom: power cycle modem on NetStart timeout (no response) commit 082d42c034e103d4006f646f671ece37ae2c7105 Author: Michael Balzer Date: Sun Apr 22 19:48:05 2018 +0200 Twizy: better detection of 8th cell module commit 64c5b10fa3fa76e72a23c28fcec1f7a9285b5877 Author: Michael Balzer Date: Sun Apr 22 15:56:56 2018 +0200 Moved server, command and notification buffers to external RAM This includes a new C++11 allocator "ExtRamAllocator" that can be used as an allocator for all STL containers. "ovms_extram.h" defines the namespace "extram" for std type redeclarations using the allocator. commit d863acdf303417e85b8481f5d8a5d7192d7ff4ca Author: Michael Balzer Date: Sun Apr 22 15:27:40 2018 +0200 vasprintf() allocation checks commit ba5e15f215f009fa8f1656fc8824b582cbde2c44 Author: Michael Balzer Date: Sun Apr 22 15:17:10 2018 +0200 simcom: modem power cycle on unresolvable NetStart error Should solve situations where AT+CGDATA="PPP" returns "ERROR". commit 2bce27f9f4126401e4ac95fcd604ae6abdd3ee34 Author: Michael Balzer Date: Sun Apr 22 09:18:21 2018 +0200 Twizy: min tick interval in battery charts commit 9d2c924dfbd780f5a9fa0fe191b1a85721306b25 Author: Michael Balzer Date: Sun Apr 22 00:29:39 2018 +0200 StringWriter: handle out of memory in printf commit 45db00677a2588df3d4e0eca3b9b5081ec6c0dbe Author: Michael Balzer Date: Sun Apr 22 00:28:13 2018 +0200 CANopen/Twizy: raise worker stack size to 2048 (solves stack overflow on profile load) commit 08e4ae5f1bde82ea31896238d5a6a946ef6bbf68 Author: Michael Balzer Date: Sat Apr 21 23:36:06 2018 +0200 Boot: add version info to "boot status" (simplify crash reports) commit c86cc73c571a7086432c1cb5d253b7f67a984da9 Author: Michael Balzer Date: Sat Apr 21 23:16:13 2018 +0200 Web UI: ref log dir with trailing slash, shell prompt '#' commit 602f5662a9ac927011f9e1b0740512b7e8721df3 Author: Stephen Casner Date: Sat Apr 21 13:59:46 2018 -0700 Add error strings in log messages for wolfssh errors commit c9e6bf1172edc1c8432cf4095946045159781362 Author: Stephen Casner Date: Sat Apr 21 13:57:03 2018 -0700 Add missing error string "invalid algorithm id" commit ba5b5549ef96ce73997eafa4c3c56cdf47bca36f Author: Stephen Casner Date: Sat Apr 21 13:11:44 2018 -0700 Remove a redundant call to Poll() commit fd8dc67d755ae54365a4c777eced6eea0dc6582a Author: Mark Webb-Johnson Date: Sat Apr 21 22:33:53 2018 +0800 Volt/Ampera simulator commit 1adaecf949a420a1f690ad8095f9a23c9140aae5 Author: Mark Webb-Johnson Date: Sat Apr 21 22:33:43 2018 +0800 Clear errno before strtol (just for safety) commit 49c038efe87f52602c6f8093d51bd153a1deafac Author: Mark Webb-Johnson Date: Sat Apr 21 21:44:54 2018 +0800 RE tools: Reduce logging for incoming served messages commit c6b56597b292c788f77965c2f3930b49b3989a6d Author: Michael Balzer Date: Sat Apr 21 15:22:33 2018 +0200 Buffer/OTA: abort on receive timeout (resolves "ota status" locking up the module over modem/ppp) commit 6b394f38b915f451391f5fd70486c027bcde64ca Author: Michael Balzer Date: Sat Apr 21 15:17:21 2018 +0200 Websocket: avoid log flooding (job queue overflow) commit 32c7ac3045ed1b49c7b2ee5b2f126bf110a51f8f Author: Mark Webb-Johnson Date: Sat Apr 21 21:10:33 2018 +0800 RE support incoming tcp/ip data, and ignore/simulate/transmit modes Credit: My 9 year old son Adam for co-coding with me and getting this to run 100% correct first time. commit 019807ec55b171c8bca21cb031944a8d20265fe5 Author: Mark Webb-Johnson Date: Sat Apr 21 21:09:21 2018 +0800 Support Put() functionality on candump - protocol -> native conversion commit 7cca4c88929b30848b5350a8cc36996ca63a18ad Author: Michael Balzer Date: Sat Apr 21 13:34:16 2018 +0200 Twizy: config change optimization commit 4f837fc66e8fdaf00077ffa87e922cda9995a066 Author: Michael Balzer Date: Sat Apr 21 13:34:00 2018 +0200 Web UI: logging configuration commit 74c71993bcc4e2e1df4652c59af9f69cc2d84c79 Author: Michael Balzer Date: Sat Apr 21 02:01:42 2018 +0200 Logging: persistent file & level configuration, file cycling Config param "log", example instances: file.enable: yes file.maxsize: 1024 [default, kB] file.path: /sd/logs/log level: info level.simcom: debug level.webserver: verbose commit 4497dfc73cd7a2f32e4827f716a625777a931214 Author: Michael Balzer Date: Fri Apr 20 16:18:35 2018 +0200 Web OTA: minor text update commit 4ae1b16514ae99185e3eb076f03c9ca81b40556c Author: Mark Webb-Johnson Date: Fri Apr 20 21:37:06 2018 +0800 Add standard metric for cabin temperature commit ba20320e0d191c03fd2565654f4704c3b34f7037 Author: Michael Balzer Date: Fri Apr 20 13:44:37 2018 +0200 Shell: added command result feedbacks, vfs ls with details commit 951b07617b0b392ed4dd848eb24088728d9f15b7 Author: Stephen Casner Date: Fri Apr 20 00:14:15 2018 -0700 Stop the chargen output loop if write() returns an error The "test chargen" command outputs 1000 lines by default. For an ssh server running on OVMS v3.0 hardware, this will exceed the buffer capacity in mongoose and the socket layer due to limited RAM. When the limit is reached, write() will return an error that we can detect and stop the loop. commit 97e9d8e4f076319c127cd134424ee9daf76e9b42 Author: Stephen Casner Date: Fri Apr 20 00:08:47 2018 -0700 Override wolfssh and wolfssl malloc functions to log failures Use built-in mechanisms in wolfssh and wolfssh (wolfcrypt) to override the malloc, free and realloc functions with our own functions that log an error message if the allocation fails. This is to avoid confusion when wolfssh reports a higher-level error, such as WS_CRYPTO_FAILED, when the problem is really caused by memory allocation failure. commit befec3dbd291274b0cd2b2bea7bdb751e6f47b76 Author: Stephen Casner Date: Thu Apr 19 23:59:04 2018 -0700 Avoid ssh packet corruption due to memory allocation failure This change depends upon the modified mongoose that now returns zero from mg_send() if the data cannot be appended to the buffer due to memory allocation failure. If so, return a WS_CBIO_ERR_WANT_WRITE return code to the wolfssh library, which then returns WS_WANT_WRITE to the wolfSSH_stream_send() call indicating that output is blocked. Since we are not allowed to block the NetManTask, we discard all output from that point until the mongoose send_mbuf becomes empty. A warning message is logged when output becomes blocked, and an error message is logged and sent to the client to tell how many output bytes were discarded. commit d6538dae48818aad1c4f8e3b521071501c33392c Author: Michael Balzer Date: Thu Apr 19 21:50:10 2018 +0200 Twizy: fixed default values in battery web cfg commit b9bcc6e22cc46c7a803ddb8f87703daad5d0c7b3 Author: Michael Balzer Date: Thu Apr 19 21:48:53 2018 +0200 Twizy: decoupled battery SOC & current metrics from cell sensors (fixes charge end below 100% SOC) commit 7497eaebcb966f3ae51270e89cb1d20fa3c1e1d2 Author: Michael Balzer Date: Thu Apr 19 19:27:40 2018 +0200 Web UI: timezone web links added commit a114f61172804f14206c3db80ae61affd1a30af4 Author: Michael Balzer Date: Thu Apr 19 19:27:20 2018 +0200 Metrics remarks added commit ff53b748d9e8d9d14c34534080c004b21d42071a Author: Michael Balzer Date: Thu Apr 19 17:57:55 2018 +0200 Netmanager: apply DNS config change directly commit 2eba60e04b19f13a84ec65eae258981962eeb50d Author: Mark Webb-Johnson Date: Thu Apr 19 22:45:17 2018 +0800 Volt/Ampera: Full implementation (excluding notifications, and otherwise untested) commit 5d2488f76b482c1822e462872b66c9950a3ac206 Author: Michael Balzer Date: Thu Apr 19 13:44:28 2018 +0200 Twizy: fixed config synchronization for commands (async events) commit deb03b79b357e33a939c63c4948d61e7e15219e6 Author: Mark Webb-Johnson Date: Thu Apr 19 10:47:47 2018 +0800 RE TOOLS: Also serve in analyse and discover modes commit ad78164287c1aa4a97d71c3feb2f849473dc95d8 Author: Mark Webb-Johnson Date: Thu Apr 19 10:28:42 2018 +0800 Support candump over tcp/3000 for RE TOOLS commit 07a20a0f34a219e146ed38cf95584cc362525602 Author: Mark Webb-Johnson Date: Thu Apr 19 10:28:26 2018 +0800 Simplify candump interface commit efa7a5105d05727083bff2a8c7a9b417fd05a690 Author: Mark Webb-Johnson Date: Thu Apr 19 08:44:26 2018 +0800 RE Tools: Introduce 'serve', 'analyse', and 'discover' modes commit d386d3a331fd19771da88ef32ec0e8c3f8fa6f72 Author: Mark Webb-Johnson Date: Wed Apr 18 21:54:22 2018 +0800 Volt Ampera: Implement bus initialisation and metrics v.vin, v.type, v.env.on, v.env.awake, v.env.handbrake, and v.env.gear (partial) commit 0a8e60e719fef466c888e9f88bcaf15a023250ec Author: Mark Webb-Johnson Date: Wed Apr 18 20:13:22 2018 +0800 Tesla Model S: Fix for v.bat.temp commit 630fb67831788f027a7155ddee77d6e2a7a0f26c Author: Mark Webb-Johnson Date: Wed Apr 18 20:05:44 2018 +0800 Improve accuracy of Miles/Kilometers conversions (for floats) commit 26acf212260341b0f200b383a2b2cc4d9babe2e6 Author: Mark Webb-Johnson Date: Wed Apr 18 20:05:20 2018 +0800 Volt Ampera: Stub support for this vehicle (non functional at the moment) commit bd233870163b6981e32076304fb03d76f17ab8ea Author: Mark Webb-Johnson Date: Wed Apr 18 19:42:44 2018 +0800 Tesla Model S: Use gear in use value, rather than gear selected commit 92ec561b4866ee3fe7c1e1eb6aca8f5770731361 Author: Mark Webb-Johnson Date: Wed Apr 18 19:30:08 2018 +0800 Tesla Model S: Support v.bat.voltage, v.bat.temp, and v.pos.odometer metrics. commit c3a108d41bc140f5dca77bc9e8e69e3122639c30 Author: Mark Webb-Johnson Date: Wed Apr 18 13:20:53 2018 +0800 Show version during build commit dbaa83b8ccd368161a9352c96a3504f90f188441 Author: Mark Webb-Johnson Date: Wed Apr 18 13:17:24 2018 +0800 RETOOLS: Discover framework tidy-ups commit d03e66315b3de4948faf42db4d3fb4719c07a6f7 Author: Mark Webb-Johnson Date: Tue Apr 17 22:35:00 2018 +0800 RETOOLS: Discover framework