[Ovmsdev] 3.0.991

Michael Balzer dexter at expeedo.de
Tue Mar 6 15:35:16 HKT 2018


Steve,

the IP address is fixed to 192.168.4.1 for the AP.

Zeroconf / mDNS allows to address the module using the name "<moduleid>.local", but is not supported on all systems. It should work on iOS, but I can't test
that. It doesn't work on Android 7, so is not usable as a general solution.

Thanks for the crash report. It's not related to the esp-idf version. It occurs frequently if you're running low on memory (i.e. with many metrics and/or
multiple web clients open in parallel), plus there's currently a race condition between metrics and event transfers. I'm already working on a solution for both.

Regards,
Michael


Am 06.03.2018 um 03:31 schrieb Stephen Casner:
> On Mon, 5 Mar 2018, Michael Balzer wrote:
>
>> I'll use AP mode in my car, let my phone connect to it automatically
>> and start the web UI to have it work as a dashboard and console.
> I decided to try out this AP mode with my iPhone.  After finding the
> IP address using the async console I used Safari on the iPhone to
> connect to OVMS.  I then went to the shell page and logged in.  I
> entered the "help" command and that executed as expected.  I did not
> do anything else with the phone or async console for a minute or two
> when out of the blue the system crashed:
>
> OVMS > wifi status
> WiFi
>   Power: on
>   Mode: Access point mode
>   SSID: OVMS
>   MAC: 30:ae:a4:37:1b:85
>   IP: 192.168.4.1
>   Stations: 1
>     1: MAC: 98:00:c6:b1:90:ca, IP: 192.168.4.2
> W (530733) webserver: HandleLogin: auth failure for username ''
> OVMS > Guru Meditation Error: Core  0 panic'ed (StoreProhibited)
> . Exception was unhandled.
> Core 0 register dump:
> PC      : 0x4000c291  PS      : 0x00060b30  A0      : 0x800f4664  A1      : 0x3ffd1290
> A2      : 0x00000016  A3      : 0x3ffd1321  A4      : 0x00000002  A5      : 0x00000016
> A6      : 0x00000081  A7      : 0x0000002e  A8      : 0x00000000  A9      : 0x3ffd152c
> A10     : 0x00000000  A11     : 0x00000001  A12     : 0x8008b383  A13     : 0x3ffe5180
> A14     : 0x00000003  A15     : 0x00060023  SAR     : 0x00000016  EXCCAUSE: 0x0000001d
> EXCVADDR: 0x00000016  LBEG    : 0x4000c28c  LEND    : 0x4000c296  LCOUNT  : 0x00000001
>
> [snip]
>
> Remote debugging using /dev/cu.SLAB_USBtoUART
> 0x4000c291 in ?? ()
> (gdb)
> (gdb) bt
> #0  0x4000c291 in ?? ()
> #1  0x400f4664 in mbuf_insert (a=0x3fff8d24, off=22, buf=0x3ffd1320, len=2)
>     at /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/mongoose/mongoose/mongoose.c:1511
> #2  0x400f46e1 in mbuf_append (a=0x3fff8d24, buf=0x3ffd1320, len=2)
>     at /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/mongoose/mongoose/mongoose.c:1532
> #3  0x400f46f7 in mg_socket_if_tcp_send (nc=0x3fff8cec, buf=0x3ffd1320, len=2)
>     at /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/mongoose/mongoose/mongoose.c:3525
> #4  0x400f54b8 in mg_send (nc=0x3fff8cec, buf=0x3ffd1320, len=2)
>     at /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/mongoose/mongoose/mongoose.c:2765
> #5  0x400f55d7 in mg_send_ws_header (nc=0x3fff8cec, op=<optimized out>, len=57, ctx=0x3ffd1350)
>     at /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/mongoose/mongoose/mongoose.c:9796
> #6  0x400f66ad in mg_send_websocket_frame (nc=0x3fff8cec, op=1, data=0x3fff808c, len=57)
>     at /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/mongoose/mongoose/mongoose.c:9813
> #7  0x4011dd46 in OvmsWebServer::WebsocketBroadcast (msg=...)
>     at /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/ovms_webserver/src/ovms_webserver.cpp:483
> #8  0x4011ef4c in OvmsWebServer::BroadcastMetrics (this=<optimized out>, update_all=<optimized out>)
>     at /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/ovms_webserver/src/ovms_webserver.cpp:526
> #9  0x4011ef73 in OvmsWebServer::UpdateTicker (timer=<optimized out>)
>     at /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/ovms_webserver/src/ovms_webserver.cpp:536
> #10 0x4008d73d in prvProcessExpiredTimer (xNextExpireTime=67165, xTimeNow=67165)
>     at /Users/casner/src/github/esp-idf/components/freertos/./timers.c:523
> #11 0x4008d770 in prvProcessTimerOrBlockTask (xNextExpireTime=67165, xListWasEmpty=<optimized out>)
>     at /Users/casner/src/github/esp-idf/components/freertos/./timers.c:570
> #12 0x4008d87f in prvTimerTask (pvParameters=0x0) at /Users/casner/src/github/esp-idf/components/freertos/./timers.c:543
> (gdb)
>
> This is with OVMS code updated last night, but then it occurred to me
> that I had not updated esp-idf since 2/23, so this crash may be due to
> some incompatibilty.  I have now updated esp-idf and the crash did not
> repeat in the several minutes that I waited.  Therefore the crash
> above may be invalid, but I record it here for posterity.
>
>                                                         -- Steve
> _______________________________________________
> OvmsDev mailing list
> OvmsDev at lists.teslaclub.hk
> http://lists.teslaclub.hk/mailman/listinfo/ovmsdev

-- 
Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
Fon 02333 / 833 5735 * Handy 0176 / 206 989 26




More information about the OvmsDev mailing list