Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rebooting caused by missing hardwares? #53

Open
Gfast2 opened this issue Jan 6, 2018 · 0 comments
Open

Rebooting caused by missing hardwares? #53

Gfast2 opened this issue Jan 6, 2018 · 0 comments

Comments

@Gfast2
Copy link

Gfast2 commented Jan 6, 2018

Hi openairproject,

During the search for bmp280 driver I landed here. 😃
But what I'm working on is somehow very similar to this project.
Besides the issue about socket. I've experienced permanent rebooting issue as the console log here:

Rebooting...
ets Jun  8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x13 (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:4456
load:0x40078000,len:0
ho 12 tail 0 room 4
load:0x40078000,len:12988
entry 0x40078d14
I (192) cpu_start: Pro cpu up.
I (192) cpu_start: Single core mode
I (192) heap_init: Initializing. RAM available for dynamic allocation:
D (196) heap_init: New heap initialised at 0x3ffae6e0
I (201) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
D (207) heap_init: New heap initialised at 0x3ffb8dd8
I (212) heap_init: At 3FFB8DD8 len 00027228 (156 KiB): DRAM
I (218) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM
I (225) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
D (231) heap_init: New heap initialised at 0x40091ab0
I (236) heap_init: At 40091AB0 len 0000E550 (57 KiB): IRAM
I (243) cpu_start: Pro cpu start user code
D (255) clk: RTC_SLOW_CLK calibration value: 3420723
D (40) intr_alloc: Connected src 46 to int 2 (cpu 0)
D (41) intr_alloc: Connected src 57 to int 3 (cpu 0)
D (41) intr_alloc: Connected src 24 to int 9 (cpu 0)
I (47) cpu_start: Starting scheduler on PRO CPU.
D (51) heap_init: New heap initialised at 0x3ffe0440
D (55) heap_init: New heap initialised at 0x3ffe4350
D (60) intr_alloc: Connected src 16 to int 12 (cpu 0)
I (1066) app: starting app... firmware 1.2.0
D (1103) storage: get config
D (1104) storage: reading 475 bytes
D (1104) storage: read config.0: 0-475
I (1105) storage: config
{
	"wifi":	{
		"ssid":	"",
		"password":	"",
		"ip":	"",
		"gw":	"",
		"netmask":	""
	},
	"thingspeak":	{
		"enabled":	0,
		"apikey":	""
	},
	"awsiot":	{
		"enabled":	0,
		"endpoint":	"a32on3oilq3poc.iot.eu-west-1.amazonaws.com",
		"port":	8443
	},
	"ota":	{
		"interval":	3600
	},
	"sensor":	{
		"config":	{
			"indoor":	0,
			"led":	1,
			"fan":	1,
			"heater":	1,
			"measTime":	60,
			"warmUpTime":	30,
			"measInterval":	300,
			"test":	0,
			"measStrategy":	0
		}
	}
}
D (1150) intr_alloc: Connected src 22 to int 13 (cpu 0)
D (1155) wifi: wifi_boot start
D (1159) btn: click gpio[39] [1 in sequence]
I (1164) wifi: wifi firmware version: 275023b
I (1167) wifi: config NVS flash: enabled
I (1170) wifi: config nano formating: disabled
I (1175) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (1184) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (1199) wifi: Init dynamic tx buffer num: 32
I (1199) wifi: Init data frame dynamic rx buffer num: 64
I (1203) wifi: Init management frame dynamic rx buffer num: 64
I (1209) wifi: wifi driver task: 3ffc2344, prio:23, stack:4096
I (1214) wifi: Init static rx buffer num: 10
I (1218) wifi: Init dynamic rx buffer num: 0
I (1222) wifi: wifi power manager task: 0x3ffc6f94 prio: 21 stack: 2560
D (1229) wifi: - Starting being an access point ...
D (1894) btn: click gpio[39] [2 in sequence]
D (1895) btn: click gpio[39] [3 in sequence]
D (1895) btn: click gpio[39] [4 in sequence]
D (1897) btn: click gpio[39] [5 in sequence]
D (1901) btn: click gpio[39] [6 in sequence]
D (1905) btn: click gpio[39] [7 in sequence]
D (1910) btn: click gpio[39] [8 in sequence]
D (1914) btn: click gpio[39] [9 in sequence]
D (1918) btn: click gpio[39] [10 in sequence]
W (1923) app: about to perform factory reset!
/home/gfast2/esp/esp-idf/components/freertos/./queue.c:718 (xQueueGenericSend)- assert failed!
abort() was called at PC 0x40084eb7 on core 0
0x40084eb7: xQueueGenericSend at /home/gfast2/esp/esp-idf/components/freertos/./queue.c:2037


Backtrace: 0x40088904:0x3ffbe6e0 0x40088a03:0x3ffbe700 0x40084eb7:0x3ffbe720 0x4010d3d7:0x3ffbe760 0x4010d407:0x3ffbe780 0x40120d73:0x3ffbe7a0
0x40088904: invoke_abort at /home/gfast2/esp/esp-idf/components/esp32/./panic.c:572

0x40088a03: abort at /home/gfast2/esp/esp-idf/components/esp32/./panic.c:572

0x40084eb7: xQueueGenericSend at /home/gfast2/esp/esp-idf/components/freertos/./queue.c:2037

0x4010d3d7: ledc_update at /home/gfast2/workspace/OAP_openAirProject/main/./main.c:75

0x4010d407: btn_handler at /home/gfast2/workspace/OAP_openAirProject/main/./main.c:355 (discriminator 1)

0x40120d73: gpio_watchdog_task at /home/gfast2/workspace/OAP_openAirProject/components/oap-hw-ext/./ctrl_btn.c:82

ESP-IDF: 1837a034dd642e2843d62d8e6e8f784071d01ebe
Board: NodeMCU esp-32s
Sensor & Co. : Right now only a BOSH bmp280 (0x76 with default I2C pin on ESP32)
Changes I made:

  1. rename "socket" -> "sock" in sensor-esp32/components/oap-http/esp_request.c
  2. change target device from "opt/...can_not_remember_anymore.../ttyOAP" -> "/dev/ttyUSB0"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant