Hi,
could you provide some logs with error? Also what environment are you using, esp-idf or arduino-ide?
[SOLVED] BLE and Wifi = out of memory ??
-
- Posts: 22
- Joined: Mon Apr 30, 2018 12:14 pm
Re: [SOLVED] BLE and Wifi = out of memory ??
thank you for considering me,
i am using esp-idf,
and the log showing is,
I (204825) wifi: set WIFI AP mode
D (204825) nvs: nvs_set_blob ap.ssid 36
D (204825) nvs: nvs_set_blob ap.passwd 65
D (204835) nvs: nvs_set ap.authmode 1 0
D (204835) nvs: nvs_set ap.chan 1 1
D (204835) nvs: nvs_set ap.hidden 1 0
D (204845) nvs: nvs_set ap.max.conn 1 4
D (204845) nvs: nvs_set bcn.interval 2 100
D (204855) event: SYSTEM_EVENT_STA_STOP
D (204855) tcpip_adapter: check: local, if=0 fn=0x400f133c
D (204865) tcpip_adapter: call api in lwip: ret=0x5001, give sem
D (204865) tcpip_adapter: check: remote, if=0 fn=0x400f133c
D (204875) event: SYSTEM_EVENT_AP_START
D (204875) tcpip_adapter: check: local, if=1 fn=0x400f11d0
D (204885) tcpip_adapter: dhcp server start:(ip: 192.168.4.1, mask: 255.255.255)
D (204895) tcpip_adapter: call api in lwip: ret=0x0, give sem
D (204895) tcpip_adapter: check: remote, if=1 fn=0x400f11d0
D (204905) event: SYSTEM_EVENT_AP_STOP
D (204905) tcpip_adapter: check: local, if=1 fn=0x400f133c
D (204915) tcpip_adapter: call api in lwip: ret=0x0, give sem
D (204915) tcpip_adapter: check: remote, if=1 fn=0x400f133c
D (204925) event: SYSTEM_EVENT_AP_START
D (204925) tcpip_adapter: check: local, if=1 fn=0x400f11d0
D (204935) tcpip_adapter: dhcp server start:(ip: 192.168.4.1, mask: 255.255.255)
D (204945) tcpip_adapter: call api in lwip: ret=0x0, give sem
D (204945) tcpip_adapter: check: remote, if=1 fn=0x400f11d0
D (204955) nvs: nvs_set_blob ap.ssid 36
D (204955) nvs: nvs_set_blob ap.passwd 65
D (204965) nvs: nvs_set ap.authmode 1 0
D (204965) nvs: nvs_set ap.chan 1 1
D (204975) nvs: nvs_set ap.hidden 1 0
D (204975) nvs: nvs_set ap.max.conn 1 4
D (204975) nvs: nvs_set bcn.interval 2 100
D (204985) event: SYSTEM_EVENT_AP_STOP
D (204985) tcpip_adapter: check: local, if=1 fn=0x400f133c
D (204995) tcpip_adapter: call api in lwip: ret=0x0, give sem
D (204995) tcpip_adapter: check: remote, if=1 fn=0x400f133c
D (205005) event: SYSTEM_EVENT_AP_START
D (205005) tcpip_adapter: check: local, if=1 fn=0x400f11d0
D (205015) tcpip_adapter: dhcp server start:(ip: 192.168.4.1, mask: 255.255.255)
D (205025) tcpip_adapter: call api in lwip: ret=0x0, give sem
D (205025) tcpip_adapter: check: remote, if=1 fn=0x400f11d0
E (205035) chime-httpd: start_httpserver: no mem
i am using esp-idf,
and the log showing is,
I (204825) wifi: set WIFI AP mode
D (204825) nvs: nvs_set_blob ap.ssid 36
D (204825) nvs: nvs_set_blob ap.passwd 65
D (204835) nvs: nvs_set ap.authmode 1 0
D (204835) nvs: nvs_set ap.chan 1 1
D (204835) nvs: nvs_set ap.hidden 1 0
D (204845) nvs: nvs_set ap.max.conn 1 4
D (204845) nvs: nvs_set bcn.interval 2 100
D (204855) event: SYSTEM_EVENT_STA_STOP
D (204855) tcpip_adapter: check: local, if=0 fn=0x400f133c
D (204865) tcpip_adapter: call api in lwip: ret=0x5001, give sem
D (204865) tcpip_adapter: check: remote, if=0 fn=0x400f133c
D (204875) event: SYSTEM_EVENT_AP_START
D (204875) tcpip_adapter: check: local, if=1 fn=0x400f11d0
D (204885) tcpip_adapter: dhcp server start:(ip: 192.168.4.1, mask: 255.255.255)
D (204895) tcpip_adapter: call api in lwip: ret=0x0, give sem
D (204895) tcpip_adapter: check: remote, if=1 fn=0x400f11d0
D (204905) event: SYSTEM_EVENT_AP_STOP
D (204905) tcpip_adapter: check: local, if=1 fn=0x400f133c
D (204915) tcpip_adapter: call api in lwip: ret=0x0, give sem
D (204915) tcpip_adapter: check: remote, if=1 fn=0x400f133c
D (204925) event: SYSTEM_EVENT_AP_START
D (204925) tcpip_adapter: check: local, if=1 fn=0x400f11d0
D (204935) tcpip_adapter: dhcp server start:(ip: 192.168.4.1, mask: 255.255.255)
D (204945) tcpip_adapter: call api in lwip: ret=0x0, give sem
D (204945) tcpip_adapter: check: remote, if=1 fn=0x400f11d0
D (204955) nvs: nvs_set_blob ap.ssid 36
D (204955) nvs: nvs_set_blob ap.passwd 65
D (204965) nvs: nvs_set ap.authmode 1 0
D (204965) nvs: nvs_set ap.chan 1 1
D (204975) nvs: nvs_set ap.hidden 1 0
D (204975) nvs: nvs_set ap.max.conn 1 4
D (204975) nvs: nvs_set bcn.interval 2 100
D (204985) event: SYSTEM_EVENT_AP_STOP
D (204985) tcpip_adapter: check: local, if=1 fn=0x400f133c
D (204995) tcpip_adapter: call api in lwip: ret=0x0, give sem
D (204995) tcpip_adapter: check: remote, if=1 fn=0x400f133c
D (205005) event: SYSTEM_EVENT_AP_START
D (205005) tcpip_adapter: check: local, if=1 fn=0x400f11d0
D (205015) tcpip_adapter: dhcp server start:(ip: 192.168.4.1, mask: 255.255.255)
D (205025) tcpip_adapter: call api in lwip: ret=0x0, give sem
D (205025) tcpip_adapter: check: remote, if=1 fn=0x400f11d0
E (205035) chime-httpd: start_httpserver: no mem
-
- Posts: 9708
- Joined: Thu Nov 26, 2015 4:08 am
Re: [SOLVED] BLE and Wifi = out of memory ??
What http server do you actually use, by the way?
-
- Posts: 22
- Joined: Mon Apr 30, 2018 12:14 pm
Re: [SOLVED] BLE and Wifi = out of memory ??
added libesphttpd in to espidf and working on it
-
- Posts: 22
- Joined: Mon Apr 30, 2018 12:14 pm
Re: [SOLVED] BLE and Wifi = out of memory ??
sir,
problem is occurred due to initializing and enabling bluetooth controller and bluedroid. if i command that lines and running the program, the server runs correctly. why so?
some logs are below,
D (34402) nvs: nvs_set_blob ap.ssid 36
D (34402) nvs: nvs_set_blob ap.passwd 65
D (34402) nvs: nvs_set ap.authmode 1 0
D (34412) nvs: nvs_set ap.chan 1 1
D (34412) nvs: nvs_set ap.hidden 1 0
D (34422) nvs: nvs_set ap.max.conn 1 4
D (34422) nvs: nvs_set bcn.interval 2 100
D (34422) event: SYSTEM_EVENT_AP_STOP
D (34432) tcpip_adapter: check: local, if=1 fn=0x400efe8c
D (34432) tcpip_adapter: call api in lwip: ret=0x0, give sem
D (34442) tcpip_adapter: check: remote, if=1 fn=0x400efe8c
D (34442) event: SYSTEM_EVENT_AP_START
D (34452) tcpip_adapter: check: local, if=1 fn=0x400efd30
D (34452) tcpip_adapter: dhcp server start:(ip: 192.168.4.1, mask: 255.255.255.)
D (34462) tcpip_adapter: call api in lwip: ret=0x0, give sem
D (34472) tcpip_adapter: check: remote, if=1 fn=0x400efd30
I (34482) ****-httpd: creating httpd on port 80
I (34482) httpd-freertos: address 192.168.4.1, port 80, maxConnections 32, model
I (34492) httpd-freertos: udpListenfd 4098
I (34502) httpd-freertos: shutdown bound to udp port 8000
I (34502) httpd-freertos: esphttpd: active and listening to connections on 192.1
D (34512) httpd-freertos: Sel add listen 4099
I (34522) httpd-freertos: listening for new connections on '192.168.4.1'
I (71892) wifi: n:1 0, o:1 0, ap:1 1, sta:255 255, prof:1
I (71892) wifi: station: a0:32:99:20:9f:bb join, AID=1, n, 20
D (71892) event: SYSTEM_EVENT_AP_STACONNECTED, mac:a0:32:99:20:9f:bb, aid:1
D (83832) httpd-freertos: select ret
D (83832) httpd-freertos: Sel add listen 4099
D (92072) httpd-freertos: select ret
D (92072) httpd: URL = /favicon.ico
D (92072) httpd: Is url index 17
D (92072) espfs: End of image
D (92082) httpd: /favicon.ico not found. 404
D (92082) httpd: cleaning up
D (92092) httpd-freertos: Sel add listen 4099
D (92092) httpd-freertos: select ret
D (92092) httpd-freertos: Sel add listen 4099
D (92762) httpd-freertos: select ret
D (92762) httpd: Socket closed
D (92762) httpd-freertos: Sel add listen 4099
D (151672) tcpip_adapter: if0 ip lost tmr: enter
D (151672) tcpip_adapter: if0 ip lost tmr: raise ip lost event
problem is occurred due to initializing and enabling bluetooth controller and bluedroid. if i command that lines and running the program, the server runs correctly. why so?
some logs are below,
D (34402) nvs: nvs_set_blob ap.ssid 36
D (34402) nvs: nvs_set_blob ap.passwd 65
D (34402) nvs: nvs_set ap.authmode 1 0
D (34412) nvs: nvs_set ap.chan 1 1
D (34412) nvs: nvs_set ap.hidden 1 0
D (34422) nvs: nvs_set ap.max.conn 1 4
D (34422) nvs: nvs_set bcn.interval 2 100
D (34422) event: SYSTEM_EVENT_AP_STOP
D (34432) tcpip_adapter: check: local, if=1 fn=0x400efe8c
D (34432) tcpip_adapter: call api in lwip: ret=0x0, give sem
D (34442) tcpip_adapter: check: remote, if=1 fn=0x400efe8c
D (34442) event: SYSTEM_EVENT_AP_START
D (34452) tcpip_adapter: check: local, if=1 fn=0x400efd30
D (34452) tcpip_adapter: dhcp server start:(ip: 192.168.4.1, mask: 255.255.255.)
D (34462) tcpip_adapter: call api in lwip: ret=0x0, give sem
D (34472) tcpip_adapter: check: remote, if=1 fn=0x400efd30
I (34482) ****-httpd: creating httpd on port 80
I (34482) httpd-freertos: address 192.168.4.1, port 80, maxConnections 32, model
I (34492) httpd-freertos: udpListenfd 4098
I (34502) httpd-freertos: shutdown bound to udp port 8000
I (34502) httpd-freertos: esphttpd: active and listening to connections on 192.1
D (34512) httpd-freertos: Sel add listen 4099
I (34522) httpd-freertos: listening for new connections on '192.168.4.1'
I (71892) wifi: n:1 0, o:1 0, ap:1 1, sta:255 255, prof:1
I (71892) wifi: station: a0:32:99:20:9f:bb join, AID=1, n, 20
D (71892) event: SYSTEM_EVENT_AP_STACONNECTED, mac:a0:32:99:20:9f:bb, aid:1
D (83832) httpd-freertos: select ret
D (83832) httpd-freertos: Sel add listen 4099
D (92072) httpd-freertos: select ret
D (92072) httpd: URL = /favicon.ico
D (92072) httpd: Is url index 17
D (92072) espfs: End of image
D (92082) httpd: /favicon.ico not found. 404
D (92082) httpd: cleaning up
D (92092) httpd-freertos: Sel add listen 4099
D (92092) httpd-freertos: select ret
D (92092) httpd-freertos: Sel add listen 4099
D (92762) httpd-freertos: select ret
D (92762) httpd: Socket closed
D (92762) httpd-freertos: Sel add listen 4099
D (151672) tcpip_adapter: if0 ip lost tmr: enter
D (151672) tcpip_adapter: if0 ip lost tmr: raise ip lost event
-
- Posts: 9708
- Joined: Thu Nov 26, 2015 4:08 am
Re: [SOLVED] BLE and Wifi = out of memory ??
Well, the BT controller uses up some memory, so enabling ity may just tip you over the edge. Suggest you take a deep look at the memory usage of your app and see if you can save some bytes somewhere. Alternatively, see if you can change over to an ESP-Wrover or something, so you can use the 4MiB PSRAM it has.
-
- Posts: 22
- Joined: Mon Apr 30, 2018 12:14 pm
Re: [SOLVED] BLE and Wifi = out of memory ??
i am using ESP_32 wrover.
-
- Posts: 22
- Joined: Mon Apr 30, 2018 12:14 pm
Re: [SOLVED] BLE and Wifi = out of memory ??
thanks you for your valuable time,
the problem is solved. its because of over consumption of memory while mallocing @ server creation.
the problem is solved. its because of over consumption of memory while mallocing @ server creation.
Who is online
Users browsing this forum: No registered users and 84 guests