OvmsDev
Threads by month
- ----- 2026 -----
- April
- March
- February
- January
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
August 2018
- 12 participants
- 33 discussions
Hi.
I ordered my OVMS v3 module in march 2018, and excited when I received it months later.
The module has been connected in my Kia Soul EV from around version 3.1.004, with OTA updates enabled, until July 12. It was connected to dexters-web.de V2 server. It usually reported data to the app, sometimes with long delays, at other times not at all.
From July 8th to July 10th, I drove the car 1450 km from Copenhagen to Paris, then parked it.
When I tried to unlock the car 5 days later, the 12 Volt battery was completely drained, and since then, the OVMS has neither connected, nor sent beacons for the WIFI AP after a factory reset. I have no idea what happened. To my knowledge the module was functioning normally when I parked the car. On dexters-web, I can see that the last update was received at 22:07 12.07.2018.
I have now (today) installed the development tools and OVMS software, built, and captured the output from the continuing crashes, when booting on the current master:
Henriks-MBP:OVMS.V3 henrik$ make simple_monitor
--- forcing DTR inactive
--- forcing RTS inactive
--- Miniterm on /dev/tty.SLAB_USBtoUART 115200,8,N,1 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
make: *** [simple_monitor] Terminated: 15
Terminated: 15
Henriks-MBP:OVMS.V3 henrik$ make monitor
MONITOR
--- WARNING: Serial ports accessed as /dev/tty.* will hang gdb if launched.
--- Using /dev/cu.SLAB_USBtoUART instead...
--- idf_monitor on /dev/cu.SLAB_USBtoUART 115200 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x3f (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:4796
load:0x40078000,len:0
load:0x40078000,len:14896
entry 0x400785) spiram: SPI RAM mode: flash 40m sram 40m
I (655) spiram: PSRAM initialized, cache is in low/high (2-core) mode.2mI (656) cpu_start: Pro cpu up.
I (660) cpu_start: Starting app cpu,t is 0x40081574
0x40081574: start_cpu0_default at /Users/henrik/esp/esp-idf/components/esp32/cpu_start.c:322
I (0) cpu_start: App cpu up.I (1521) spiram: SPI SRAM memory test OK
I (1521) heap_init: Initializing. RAM available for dynamic allocation:
I (1521) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (1528) heap_init: At 3FFBC5C0 len 00023A40 (142 KiB): DRAM
I (1534) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM
I (1540) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (1548) heap_init: At 40098ED8 len 00007128 (28 KiB): IRAM
I (1553) cpu_start: Pro cpu start user code
I (1558) spiram: Adding pool of 4096K of external SPI memory to heap allocator
I (127) ovms_main: Set default logging level for * to INFO
I (128) command: Initialising COMMAND (1000)
I (129) boot: Initialising BOOT (1100)
I (132) boot: Power cycle reset detected
I (137) events: Initialising EVENTS (1200)
I (142) config: Initialising CONFIG (1400)
I (147) time: Initialising TIME (1500)
I (152) script: Initialising SCRIPTS (1600)
I (156) script: Using DUKTAPE javascript engine
I (161) metrics: Initialising METRICS (1810)
I (166) metrics: Expandjavascript engine
I (176) notify: Initialising NOTIFICATIONS (1820)
I (178) notify: Registered notification type info
I (182) notify: Registered notification type error
I (188) notify: Registered notification type alert
I (193) notify: Registered notie data
I (198) location: Initialising LOCATIONS (1900)
I (205) location: Expanding DUKTAPE javascript engine
I (210) vehicle: Initialising VEHICLE Factory (2000)
I (216) pcp: Initialising POWER (4000)
I (220) max7317: Initialising MAX7317 EGPIO (4200)
I (225) sdcard: Initialising SD CARD (4400)
I (230) ota: Initialising OTA (4400)
I (235) can: Initialising CAN (4500)
I (240) simcom: Initialising SIMCOM (4600)
I (244) test: Initialising TEST (5000)
I (248) ovms-module: Initialising MODULE (5100)
I (253) vfs: Initialising VFS (5200)
I (257) oInitialising OVMS Server (6000)
I (263) ovms-server-v2: Initialising OVMS V2 Server (6100)
I (269) ovms-server-v3: Initialising OVMS V3 Server (6200)
I (275) obd2ecu: Initialising OBD2ECU (7000)
I (280) canopen: Initialising CANopen (7000)
I (286) esp32wifi: Initialising ESP32WIFI (8000)
I (290) ovms-mdns: Initialising MDNS (8100)
I (296) webserver: Initialising WEBSERVER (8200)
I (302) ssh: Initialising SSH (8300)
I (305) re: Initialising RE Tools (8800)
I (310) netmanager: Initialising NETMANAGER (8999)
I (317) v-voltampera: Registering Vehicle: Volt/Ampera (9000)
I (321) v-track: Registering Vehicle: TRACK (9000)
I (327) v-teslaroadster: Registering Vehicle: Tesla Roadster (9000)
I (333) v-teslamodels: Registering Vehicle: Tesla 00)
I (340) v-twizy: Registering Vehicle: Renault Twizy (9000)
v-obdii: Registering Vehicle: OBDII (9000)
I (352) v-none: Registering Vehicle: NONE (9000)
I (357) v-nissanleaf: Registering Vehicle: Nissan Leaf (9000)
I (364) v-kiasoulev: Registering Vehicle: Kia Soul EV (9000)
I (370) v-demo: Registering Vehicle: DEMO (90;32mI (375) version: Initialising Versioning (9900)
I (383) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (451) ovms_main: Executing on CPU core 0
I (451) ovms_main: Mounting CONFIG...
Initialising OVMS CONFIG within STORE
E (461) config: Error: Cannot open config store directory
I (461) ovms_main: Configure logging...
I (461) ovms_main: Registering default configs...
I (471) ovms_main: Starting HOUSEKEEPING...
I (471) housekeeping: Initialising HOUSEKEEPING Framework...
I (481) housekeeping: Executing on CPU core 1
I (481) housekeeping: reset_reason: cpu0=1, cpu1=14
I (491) housekeeping: Initialising WATCHDOG...
I (491) housekeeping: Starting PERIPHERALS...
I (501) peripherals: Initialising OVMS Peripherals...
I (511) peripherals: TCP/IP Adaptor
I (511) peripherals: ESP32 system
I (511) peripherals: SPI bus
I (521) peripherals: MAX7317 I/O Expander
I (521) peripherals: ESP32 CAN
I (531) peripherals: ESP32 WIFI
I (531) peripherals: ESP32 ADC
I (541) peripherals: MCP2515 CAN 1/2
I (551) peripherals: MCP2515 CAN 2/2
I (561) peripherals: SD CARD
I (561) peripherals: SIMCOM MODEM
I (561) gpio: GPIO[13]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (571) gpio: GPIO[4]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (581) uart: queue free spaces: 10
I (581) ext12v: Powering off external 12V devices
I (591) housekeeping: Auto init ext12v (free: 216052 bytes)
I (591) housekeeping: Auto init wifi (free: 216052 bytes)
W (601) esp32wifi: AutoInit: factory reset detected, starting public AP net 'OVMS' with password 'OVMSinit'
I (611) esp32wifi: Powering up WIFI driver
I (611) wifi: wifi firmware version: c25fd80
I (621) wifi: config NVS flash: enabled
I (621) wifi: config nano formating: disabled
I (621) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
E (631) system_api: Base MAC address from BLK0 of EFUSE CRC error, efuse_crc = 0xb2; calc_crc = 0x3d
abort() was called at PC 0x400dc76b on core 1
0x400dc76b: __gnu_cxx::new_allocator<char>::deallocate(char*, unsigned int) at /Users/henrik/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/ext/new_allocator.h:110
(inlined by) std::allocator_traits<std::allocator<char> >::deallocate(std::allocator<char>&, char*, unsigned int) at /Users/henrik/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/bits/alloc_traits.h:386
(inlined by) std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_destroy(unsigned int) at /Users/henrik/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/bits/basic_string.h:185
(inlined by) std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_dispose() at /Users/henrik/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/bits/basic_string.h:180
(inlined by) std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string() at /Users/henrik/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/bits/basic_string.h:544
(inlined by) OvmsSSH::Authenticate(unsigned char, WS_UserAuthData const*, void*) at /Users/henrik/dev/ovms/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/components/console_ssh/src/console_ssh.cpp:232
Backtrace: 0x40091e73:0x3ffbfee0 0x40091fcb:0x3ffbff00 0x400dc76b:0x3ffbff20 0x400dc7b5:0x3ffbff50 0x401a6c23:0x3ffbff80 0x401a6fa8:0x3ffbffa0 0x4019da97:0x3ffbffd0 0x4019d161:0x3ffbfff0 0x400ddc2b:0x3ffc0010 0x400dddd3:0x3ffc0040 0x400de1a9:0x3ffc0060 0x400df7c9:0x3ffc0090 0x400e65f0:0x3ffc0190 0x400e62d2:0x3ffc0200 0x400e5da5:0x3ffc0240 0x400e5ef9:0x3ffc0270 0x400e5fad:0x3ffc02c0 0x400e5fbd:0x3ffc02f0
0x40091e73: xTaskCreatePinnedToCore at /Users/henrik/esp/esp-idf/components/freertos/tasks.c:3564
0x40091fcb: vTaskDelete at /Users/henrik/esp/esp-idf/components/freertos/tasks.c:3564
0x400dc76b: __gnu_cxx::new_allocator<char>::deallocate(char*, unsigned int) at /Users/henrik/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/ext/new_allocator.h:110
(inlined by) std::allocator_traits<std::allocator<char> >::deallocate(std::allocator<char>&, char*, unsigned int) at /Users/henrik/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/bits/alloc_traits.h:386
(inlined by) std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_destroy(unsigned int) at /Users/henrik/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/bits/basic_string.h:185
(inlined by) std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_dispose() at /Users/henrik/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/bits/basic_string.h:180
(inlined by) std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string() at /Users/henrik/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/bits/basic_string.h:544
(inlined by) OvmsSSH::Authenticate(unsigned char, WS_UserAuthData const*, void*) at /Users/henrik/dev/ovms/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/components/console_ssh/src/console_ssh.cpp:232
0x400dc7b5: __gnu_cxx::new_allocator<char>::deallocate(char*, unsigned int) at /Users/henrik/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/ext/new_allocator.h:110
(inlined by) std::allocator_traits<std::allocator<char> >::deallocate(std::allocator<char>&, char*, unsigned int) at /Users/henrik/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/bits/alloc_traits.h:386
(inlined by) std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_destroy(unsigned int) at /Users/henrik/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/bits/basic_string.h:185
(inlined by) std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_dispose() at /Users/henrik/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/bits/basic_string.h:180
(inlined by) OvmsSSH::Authenticate(unsigned char, WS_UserAuthData const*, void*) at /Users/henrik/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/bits/basic_string.h:544
0x401a6c23: std::time_get<char, std::istreambuf_iterator<char, std::char_traits<char> > >::_M_extract_via_format(std::istreambuf_iterator<char, std::char_traits<char> >, std::istreambuf_iterator<char, std::char_traits<char> >, std::ios_base&, std::_Ios_Iostate&, tm*, char const*) const at /Volumes/build/idf/crosstool-NG/.build/xtensa-esp32-elf/build/build-cc-gcc-final/xtensa-esp32-elf/libstdc++-v3/include/bits/locale_classes.tcc:114 (discriminator 6)
0x401a6fa8: std::num_get<char, std::istreambuf_iterator<char, std::char_traits<char> > >::_M_extract_float(std::istreambuf_iterator<char, std::char_traits<char> >, std::istreambuf_iterator<char, std::char_traits<char> >, std::ios_base&, std::_Ios_Iostate&, std::string&) const at /Volumes/build/idf/crosstool-NG/.build/xtensa-esp32-elf/build/build-cc-gcc-final/xtensa-esp32-elf/libstdc++-v3/include/bits/locale_classes.tcc:114 (discriminator 6)
0x4019da97: std::ostreambuf_iterator<char, std::char_traits<char> > std::__cxx11::money_put<char, std::ostreambuf_iterator<char, std::char_traits<char> > >::_M_insert<true>(std::ostreambuf_iterator<char, std::char_traits<char> >, std::ios_base&, char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const at /Volumes/build/idf/crosstool-NG/.build/xtensa-esp32-elf/build/build-cc-gcc-final/xtensa-esp32-elf/libstdc++-v3/include/bits/locale_classes.h:675
0x4019d161: void std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_construct<char const*>(char const*, char const*, std::forward_iterator_tag) at /Volumes/build/idf/crosstool-NG/.build/xtensa-esp32-elf/build/build-cc-gcc-final/xtensa-esp32-elf/libstdc++-v3/include/bits/locale_classes.h:675
0x400ddc2b: dbc::dbc() at /Users/henrik/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/bits/char_traits.h:243
0x400dddd3: std::__cxx11::_List_base<dbcNode*, std::allocator<dbcNode*> >::_M_init() at /Users/henrik/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/bits/char_traits.h:243
(inlined by) std::__cxx11::list<dbcNode*, std::allocator<dbcNode*> >::clear() at /Users/henrik/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/bits/stl_list.h:1369
(inlined by) dbcNodeTable::EmptyContent() at /Users/henrik/dev/ovms/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/components/dbc/src/dbc.cpp:194
0x400de1a9: unsigned int const& std::min<unsigned int>(unsigned int const&, unsigned int const&) at /Users/henrik/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/bits/char_traits.h:243
(inlined by) std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::compare(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const at /Users/henrik/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/bits/basic_string.h:2315
(inlined by) bool std::operator< <char, std::char_traits<char>, std::allocator<char> >(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) at /Users/henrik/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/bits/basic_string.h:4987
(inlined by) std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::operator()(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const at /Users/henrik/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/bits/stl_function.h:387
(inlined by) std::_Rb_tree<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, dbcValueTable*>, std::_Select1st<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, dbcValueTable*> >, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, dbcValueTable*> > >::_M_lower_bound(std::_Rb_tree_node<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, dbcValueTable*> >*, std::_Rb_tree_node<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, dbcValueTable*> >*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) at /Users/henrik/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/bits/stl_tree.h:1628
0x400df7c9: std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::size() const at /Users/henrik/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/bits/char_traits.h:243
(inlined by) dbcfile::LoadParseOneLine(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) at /Users/henrik/dev/ovms/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/components/dbc/src/dbc.cpp:649
0x400e65f0: esp32wifi::StartAccessPointClientMode(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) at /Users/henrik/dev/ovms/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/components/esp32wifi/src/esp32wifi.cpp:580 (discriminator 1)
0x400e62d2: esp32wifi::StartClientMode(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned char*) at /Users/henrik/dev/ovms/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/components/esp32wifi/src/esp32wifi.cpp:461
0x400e5da5: esp32wifi::EventWifiStaDisconnected(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*) at /Users/henrik/dev/ovms/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/components/esp32wifi/src/esp32wifi.cpp:761
0x400e5ef9: void std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_construct_aux<char const*>(char const*, char const*, std::__false_type) at /Users/henrik/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/bits/basic_string.h:195
(inlined by) void std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_construct<char const*>(char const*, char const*) at /Users/henrik/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/bits/basic_string.h:214
(inlined by) std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&) at /Users/henrik/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/bits/basic_string.h:457
(inlined by) esp32wifi::EventWifiScanDone(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*) at /Users/henrik/dev/ovms/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/components/esp32wifi/src/esp32wifi.cpp:882
0x400e5fad: esp32wifi::EventWifiScanDone(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*) at /Users/henrik/dev/ovms/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/components/esp32wifi/src/esp32wifi.cpp:891 (discriminator 1)
0x400e5fbd: esp32wifi::EventWifiScanDone(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*) at /Users/henrik/dev/ovms/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/components/esp32wifi/src/esp32wifi.cpp:892 (discriminator 1)
Rebooting...
ets Jun 8 2016 00:22:57
rst:0xc (SW_CPU_RESET),boot:0x3f (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:4796
load:0x40078000,len:0
load:0x40078000,len:14896
entry 0x40078d74
I (655) spiram: SPI RAM mode: flash 40m sram 40m
I (655) spiramialized, cache is in low/high (2-core) mode.
I (657) cpu_start: Pro cpu up.
I (660) cpu_start: Starting app cpu, entry point is 0x40081574
0x40081574: start_cpu0_default at /Users/henrik/esp/esp-idf/components/esp32/cpu_start.c:322
u_start: App cpu up.
I (1521) spiram: SPI SRAM memory test OK
I (1522) heap_init: Initializing. RAM available for dynamic allocation:
I (1522) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (1529) heap_init: At 3FFBC5C0 len 00023A40 (142 KiB): DRAM
I (1534) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM
Is the OVMS module hardware broken? Or can I somehow fix the module (if so; how)?
Is it possible that the OVMS malfunctioned, and the repeated re-booting caused extensive power drain, either directly from the OBD-II, or by somehow keeping some systems in the car “awake”, via CAN-bus activity?
Best regards,
Henrik
--
Venlig hilsen,
Henrik R. Scheel
Kia Soul EV 2015
2
1
Hi, In order to help understand the current status of the Nissan Leaf support a Vehicle Feature List wiki page has been created. As I don't have access to an OVMS the Leaf entries are only what could be gleened from the code. Please feel free to contribute/correct as you see fit. Enjoy Regards, Robert Sharpe Electric Vehicle Consultant 07711 252971 Your Plugged-in Partner Evergreen Consulting is the trading name of Sharpe Consultants Ltd
4
4
Hi, I am working on the Think City EV code and have some questions.- what is the best way to signal that the charging connector is plugged? ms_v_charge_pilot?previously it was cardoorbits1.
- what is the best way to compare OvmsMetricStrings? Or should I dublicate the state in an enum and use that?
- what is the best way to compare the OvmsMetricFloat to a literal float?
- what is the current way of doing net_req_notification
Thanks in advance,Nikolay On Tuesday, July 17, 2018, 3:37:49 AM GMT+2, Mark Webb-Johnson <mark(a)webb-johnson.net> wrote:
Jacob,
> Is there a reason why OVMS bundles three different SSL libraries?
I think wolfSSL is there (but WOLFCRYPT_ONLY) because wolfSSH needs it.
The ESP-IDF offers mbedtls and openssl libraries, but we don’t currently use either.
> Also why is there a custom HTTP implementation when mongoose already has one?
Primarily because we wrote those before we included mongoose into the project. But also because the mongoose http_client code sucks. It reads the entire message body into RAM, before passing it on to the client; that just won’t work for something like a firmware image.
To complicate the choice further, ESP now includes a esp_http_client in their latest 3.x IDF (which wasn’t there before).
I did try to convert our TCP and HTTP client libraries to mongoose a while ago, but failed. Those libraries are blocking (with i/o done in the context of the thread calling them), but the mongoose library is event-based non-blocking (with i/o output in the context of the calling thread, and i/o input in the context of the mongoose thread). Mongoose didn’t use to be thread safe, and that caused us all sorts of issues (now solved, by the work Michael and others did to make it thread safe).
> IMO the best way would be to rewrite ovms_net and
> ovms_http to use mongoose and configure mongoose to compile with SSL
> support (probably mbedtls as the other two don't work).
I agree. In general, I prefer the mongoose approach, and we are trying to standardise on that (for good or bad).
Probably the best would be to fix the http client in mongoose to work properly (or at least have an option to deliver the body block by block as they arrive), then convert our stuff that uses ovms tcp/http libraries, then drop the tcp and http libraries. Not trivial given the different models (blocking vs non-blocking events).
Between openssl vs mbedtls, I don’t really care. I think we’re going to have to manage certificate loading ourselves anyway (as we need to load from a combination of statically defined (in flash using COMPONENT_EMBED_TXTFILES and asm(“_binary_* start/end) and dynamic (in /store/tls/trustedca/* or somewhere like that).
Regards, Mark.
> On 17 Jul 2018, at 1:02 AM, Jakob Löw <ovms(a)m4gnus.de> wrote:
>
> Hey,
>
> I've been playing around a bit with implementing SSL/TLS support. For
> starters I wanted to implement an OvmsNetTlsConnection class which
> could then be used for https requests. At first I tried using wolfSSL
> but it turns out wolfSSL is compiled with WOLFCRYPT_ONLY. OpenSSL also
> didn't work as SSL_CTX_load_verify_locations is missing in ESP-IDF's
> OpenSSL. I didn't try mbedtls yet. Is there a reason why OVMS bundles
> three different SSL libraries? Also why is there a custom HTTP
> implementation when mongoose already has one? Speaking of mongoose, it
> seems to have an abstraction layer which allows to use one of the three
> SSL/TLS libraries. IMO the best way would be to rewrite ovms_net and
> ovms_http to use mongoose and configure mongoose to compile with SSL
> support (probably mbedtls as the other two don't work).
>
> - Jakob
>
> On Mon, 2018-07-16 at 12:47 +0800, Mark Webb-Johnson wrote:
>> Drupal authentication is done, and working against mosquitto now on
>> the live api.openvehicles.com site. Plain text MQTT only at the
>> moment (I still need to get mosquitto and OVMS module firmware
>> supporting SSL).
>>
>> To configure OVMS v3 to use Server V3 protocol:
>>
>> config set:
>> vehicle id <vehicleid>
>> server.v3 server api.openvehicles.com
>> server.v3 port 1883
>> server.v3 user <openvehicles.com username>
>> password server.v3 <openvehicles.com password>
>>
>> server v3 start
>>
>> Can also 'config set auto server.v3 yes’ to auto-start at boot
>>
>> If you have an MQTT client, you can connect to the same server to
>> query the metrics, issue commands, etc. The default topic hierarchy
>> is ovms/<username>/<vehicleid>.
>>
>> I think we are close now. Just need SSL support. And then Apps…
>>
>> Feedback appreciated.
>>
>> Regards, Mark.
>>
>>> On 10 Jul 2018, at 2:42 PM, Mark Webb-Johnson <mark(a)webb-johnson.ne
>>> t> wrote:
>>>
>>> I’ve just pushed the support for notifications in OVMS Server v3.
>>>
>>> With that, the server v3 is functionally complete (at least on the
>>> car side). We can:
>>>
>>> Connect/disconnect
>>> Handle lists of apps connecting/disconnecting
>>> Send metrics
>>> Send events
>>> Send notifications (including info, error, alert, and historical
>>> data)
>>> Receive commands, run them, and return the results
>>>
>>> I’m still struggling against drupal authentication at the server
>>> side; once that is done we can open this up to wider testing.
>>>
>>> Overall, I’m pretty happy with it. We need SSL/TLS support, but at
>>> least functionally now it works and is complete.
>>>
>>> Regards, Mark
>>>
>>>> On 6 Jul 2018, at 4:16 PM, Mark Webb-Johnson <mark(a)webb-johnson.n
>>>> et> wrote:
>>>>
>>>>>>> I suppose the following topic names:
>>>>>>> metrics: <prefix>/metric/#
>>>>>>> events: <prefix>/event/#
>>>>>>> notifications: <prefix>/notify/#
>>>>>>> config: <prefix>/config/#
>>>>>>> logs: <prefix>/log/<tag>
>>>>>>> active: <prefix>/client/<clientid>/active
>>>>>>> requests: <prefix>/client/<clientid>/request/#
>>>>>>> commands: <prefix>/client/<clientid>/command/<command
>>>>>>> id>
>>>>>>> cmd responses: <prefix>/client/<clientid>/response/<command
>>>>>>> id>
>>>>>>
>>>>>> All ok. I am fine with this, and looks clean. I will make the
>>>>>> changes today, as I want to get this into some cars asap so
>>>>>> we can get a feel for how it behaves.
>>>>
>>>> Ok. Now implemented, and tested:
>>>>
>>>> <prefix>/metric/#
>>>> <prefix>/client/<clientid>/active
>>>> <prefix>/client/<clientid>/command/<command id>
>>>> <prefix>/client/<clientid>/response/<command id>
>>>>
>>>> I don’t think config, logs, and requests are critical or urgent.
>>>> So, I will try to finish events tonight (as that is relatively
>>>> simple). Notifications over the weekend (more tricky, especially
>>>> for historical data). It can go in my car with tonight’s nightly
>>>> ota, for real world testing.
>>>>
>>>> I’m still trying to get the authentication working for drupal vs
>>>> mosquitto. Once that is done, I can open up
>>>> api.openvehicles.com MQTT for public use. If I can’t get it done
>>>> within the next couple of days, I’ll try another broker (lua
>>>> scripting, anyone?).
>>>>
>>>> P.S. Commands over MQTT are pretty cool:
>>>>
>>>> <PastedGraphic-2.tiff>
>>>> <PastedGraphic-3.tiff>
>>>>
>>>> Regards, Mark.
>>>> _______________________________________________
>>>> OvmsDev mailing list
>>>> OvmsDev(a)lists.openvehicles.com
>>>> http://lists.openvehicles.com/mailman/listinfo/ovmsdev
>>>
>>> _______________________________________________
>>> OvmsDev mailing list
>>> OvmsDev(a)lists.openvehicles.com
>>> http://lists.openvehicles.com/mailman/listinfo/ovmsdev
>>
>> _______________________________________________
>> OvmsDev mailing list
>> OvmsDev(a)lists.openvehicles.com
>> http://lists.openvehicles.com/mailman/listinfo/ovmsdev
> _______________________________________________
> OvmsDev mailing list
> OvmsDev(a)lists.openvehicles.com
> http://lists.openvehicles.com/mailman/listinfo/ovmsdev
_______________________________________________
OvmsDev mailing list
OvmsDev(a)lists.openvehicles.com
http://lists.openvehicles.com/mailman/listinfo/ovmsdev
3
18