[Ovmsdev] Duktape heap memory management
Craig Leres
leres at xse.com
Mon Sep 6 11:40:42 HKT 2021
Progress!
I was a little worried because I was measuring ~2 ohms between the
antenna pin and ground but I tried it anyway and I have signal now. I
saw crashes the first few times the cell network came up but it
eventually settled down and is working now. Maybe an edge case in the
dhcp code vs. first time network registration?
FYI I'm running 3.2.016-377-g1e6da7e5 (for-v3.3 branch).
Craig
-------------------------------------------------------------
[initial boot/crash]
OVMS>
I (30972) cellular: State: Enter NetWait state
I (30972) gsm-nmea: Startup
OVMS> ena
Password:
I (31422) webserver: HTTP GET /
I (31502) webserver: HTTP GET /assets/script.js
I (31882) webserver: HTTP GET /apple-touch-icon.png
I (32022) webserver: HTTP GET /cfg/cellular
OVMS#
I (35972) cellular: Network Registration status: DeniedRegistration
I (36172) cellular: Signal Quality is: 24 (-65 dBm)
OVMS# simcom
Unrecognised command
I (40322) cellular: Signal Quality is: 20 (-73 dBm)
OVMS# cell
MODEM Status
Model: SIM7600
Network Registration: DeniedRegistration
Provider:
Signal: -73 dBm
Mode:
State: NetWait
Mux: Status up
PPP: Not running
GPS: Connected on channel: #1
I (43042) cellular: Network Registration status: RegisteredRoaming
I (43972) cellular: State: Enter NetStart state
I (45032) cellular: PPP Connection is ready to start
I (45972) cellular: State: Enter NetMode state
I (45972) gsm-ppp: Initialising...
OVMS# log level verbose cellular
Logging level for cellular set to verbose
OVMS# cell
MODEM Status
Model: SIM7600
Network Registration: RegisteredRoaming
Provider:
Signal: -73 dBm
Mode:
State: NetMode
Mux: Status up
PPP: Not connected
GPS: Connected on channel: #1
D (52362) cellular: mux-rx-line #3: NO CARRIER
D (52362) cellular: mux-rx-line #4: NO CARRIER
D (52372) cellular: mux-rx-line #3: +PPPD: DISCONNECTED
I (52372) cellular: PPP Connection disconnected
D (52372) cellular: mux-rx-line #4: +PPPD: DISCONNECTED
I (52372) cellular: PPP Connection disconnected
OVMS# Guru Meditation Error: Core 1 panic'ed (LoadProhibited).
Exception was un handled.
Core 1 register dump:
PC : 0x400fd4b8 PS : 0x00060830 A0 : 0x800fd5c5 A1
: 0x3f fca010
A2 : 0x3ffb5140 A3 : 0xa5a5a5a5 A4 : 0x3f488bd6 A5
: 0x3f fb5148
A6 : 0x00000073 A7 : 0x000000a5 A8 : 0x800fd481 A9
: 0x3f fc9ff0
A10 : 0x3ffca058 A11 : 0x3ffca050 A12 : 0x400f895c A13
: 0x00 000000
A14 : 0x3ffc91ac A15 : 0x00000001 SAR : 0x00000008
EXCCAUSE: 0x00 00001c
EXCVADDR: 0xa5a5a663 LBEG : 0x4000c2e0 LEND : 0x4000c2f6 LCOUNT
: 0xff ffffff
ELF file SHA256: f80a889fca6f51ca
Backtrace: 0x400fd4b8:0x3ffca010 0x400fd5c2:0x3ffca090
0x4022dfa9:0x3ffca0b0
Rebooting...
ets Jul 29 2019 12:21:46
rst:0xc (SW_CPU_RESET),boot:0x1b (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
-------------------------------------------------------------
[decoded backtace]
ice 485 % ./backtrace.sh 0x400fd4b8:0x3ffca010 0x400fd5c2:0x3ffca090
0x4022dfa9:0x3ffca0b0
+ xtensa-esp32-elf-addr2line -e build/ovms3.elf 0x400fd4b8:0x3ffca010
0x400fd5c2:0x3ffca090 0x4022dfa9:0x3ffca0b0
main/ovms_notify.cpp:739
main/ovms_notify.cpp:739
/home/ice/u0/leres/esp/openvehicles-xtensa-esp32-elf/components/lwip/lwip/src/core/ipv4/dhcp.c:916
-------------------------------------------------------------
[later successful boot/network registration]
OVMS# cell
MODEM Status
Model: SIM7600
Network Registration: RegisteredRoaming
Provider: T-Mobile Hologram
Signal: -73 dBm
Mode: LTE,Online
State: NetMode
Mux: Status up
PPP: Connected on channel: #2
GPS: Connected on channel: #1
D (174995) cellular: mux-tx #3: AT+CREG?;+CCLK?;+CSQ;+CPSI?;+COPS?
D (175015) cellular: mux-rx-line #3: +CPSI:
LTE,Online,310-260,0x417B,23125765,176,EUTRAN-BAND12,5035,2,2,-132,-1012,-741,9
D (175015) cellular: mux-rx-line #3: +CREG: 1,5
D (175015) cellular: mux-rx-line #3: +CCLK: "21/09/05,20:29:00-28"
D (175015) cellular: mux-rx-line #3: +CSQ: 20,99
D (175015) cellular: mux-rx-line #3: +COPS: 0,0,"T-Mobile Hologram",7
More information about the OvmsDev
mailing list