Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

My ESP-Cam doesnt get assisgned an IP most of the time #2758

Closed
ghost opened this issue Dec 23, 2023 · 0 comments
Closed

My ESP-Cam doesnt get assisgned an IP most of the time #2758

ghost opened this issue Dec 23, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@ghost
Copy link

ghost commented Dec 23, 2023

The Problem

Hi, I just installed my ESP-Cam with AI on the Edge and sometimes when I have it powered by my laptops USB port it gets assigned an IP and I can start configuring it on the Website but most times when I plug it into my Laptop or the other power supply (which its supposed to use in day to day life) it doesnt get assigned an IP and I can't acces the GUI. I added a couple of logfiles so if anyone could help me I would very much appriciate it

logs (2).txt
logs (1).txt
logs.txt

Version

v15.3.0

Logfile

ets Jul 29 2019 12:21:46

rst:0x1 (POWERON_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:0x3fff0030,len:7664
load:0x40078000,len:15360
load:0x40080400,len:3744
entry 0x4008067c
I (27) boot: ESP-IDF 4.3.2 2nd stage bootloader
I (27) boot: compile time 20:02:47
I (27) boot: chip revision: 3
I (30) boot_comm: chip revision: 3, min. bootloader chip revision: 0
I (37) boot.esp32: SPI Speed      : 40MHz
I (42) boot.esp32: SPI Mode       : DIO
I (46) boot.esp32: SPI Flash Size : 4MB
I (51) boot: Enabling RNG early entropy source...
I (56) boot: Partition Table:
I (60) boot: ## Label            Usage          Type ST Offset   Length
I (67) boot:  0 nvs              WiFi data        01 02 00009000 00004000
I (75) boot:  1 otadata          OTA data         01 00 0000d000 00002000
I (82) boot:  2 phy_init         RF data          01 01 0000f000 00001000
I (89) boot:  3 ota_0            OTA app          00 10 00010000 001db000
I (97) boot:  4 ota_1            OTA app          00 11 001f0000 001db000
I (104) boot: End of partition table
I (109) boot_comm: chip revision: 3, min. application chip revision: 0
I (116) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=46fbch (290748) map
I (236) esp_image: segment 1: paddr=00056fe4 vaddr=3ffb0000 size=03ce0h ( 15584) load
I (242) esp_image: segment 2: paddr=0005accc vaddr=40080000 size=0534ch ( 21324) load
I (252) esp_image: segment 3: paddr=00060020 vaddr=400d0020 size=1575fch (1406460) map
I (790) esp_image: segment 4: paddr=001b7624 vaddr=4008534c size=15208h ( 86536) load
I (841) boot: Loaded app from partition at offset 0x10000
I (841) boot: Disabling RNG early entropy source...
I (853) quad_psram: This chip is ESP32-D0WD
I (853) esp_psram: Found 8MB PSRAM device
I (853) esp_psram: Speed: 40MHz
I (853) esp_psram: PSRAM initialized, cache is in low/high (2-core) mode.
W (860) esp_psram: Virtual address not enough for PSRAM, map as much as we can. 4MB is mapped
I (869) cpu_start: Pro cpu up.
I (871) cpu_start: Starting app cpu, entry point is 0x40082e48
I (0) cpu_start: App cpu up.
I (1765) esp_psram: SPI SRAM memory test OK
I (1774) cpu_start: Pro cpu start user code
I (1774) cpu_start: cpu freq: 160000000 Hz
I (1774) cpu_start: Application information:
I (1775) cpu_start: Project name:     AI-on-the-edge
I (1779) cpu_start: App version:      v15.3.0
I (1784) cpu_start: Compile time:     Jul 22 2023 09:43:02
I (1789) cpu_start: ELF file SHA256:  29d38f3fa1a9857c...
I (1794) cpu_start: ESP-IDF:          5.0.2
I (1798) cpu_start: Min chip rev:     v0.0
I (1802) cpu_start: Max chip rev:     v3.99 
I (1806) cpu_start: Chip rev:         v3.1
I (1810) heap_init: Initializing. RAM available for dynamic allocation:
I (1816) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (1821) heap_init: At 3FFBD890 len 00022770 (137 KiB): DRAM
I (1826) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (1832) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (1837) heap_init: At 4009A554 len 00005AAC (22 KiB): IRAM
I (1843) esp_psram: Adding pool of 4083K of PSRAM memory to heap allocator
I (1851) spi_flash: detected chip: generic
I (1853) spi_flash: flash io: dio
I (1868) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (1869) esp_psram: Reserving pool of 40K of internal memory for DMA/internal allocations
I (1869) MAIN: 



================ Start app_main =================
I (1999) MAIN: =================================================
I (2009) MAIN: ==================== Start ======================
I (2019) MAIN: =================================================
I (2029) MAIN: PSRAM size: 8388608 byte (8MB / 64MBit)
I (2039) MAIN: Total heap: 4376759 byte
I (2049) gpio: GPIO[32]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (4049) gpio: GPIO[25]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:2 
I (4049) cam_hal: cam init ok
I (4049) sccb: pin_sda 26 pin_scl 27
I (4049) sccb: sccb_i2c_port=1

I (4049) gpio: GPIO[32]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (4089) camera: Detected camera at address=0x30
I (4089) camera: Detected OV2640 camera
I (4089) camera: Camera PID=0x26 VER=0x42 MIDL=0x7f MIDH=0xa2
I (4179) cam_hal: buffer_size: 32768, half_buffer_size: 4096, node_buffer_size: 2048, node_cnt: 16, total_cnt: 15
I (4179) cam_hal: Allocating 61440 Byte frame buffer in PSRAM
I (4179) cam_hal: cam config ok
I (4179) ov2640: Set PLL: clk_2x: 0, clk_div: 0, pclk_auto: 0, pclk_div: 8
I (6259) MAIN: Camera info: PID: 0x26, VER: 0x42, MIDL: 0x7f, MIDH: 0xa2
I (6269) SDCARD: Basic R/W check started...
I (6309) SDCARD: Basic R/W check successful
I (6359) SNTP: TimeServer not defined, using default: pool.ntp.org
I (6369) SNTP: Configuring NTP Client...
I (6389) SNTP: Time zone set to CET-1CEST,M3.5.0,M10.5.0/3
I (6389) SNTP: The local time is unknown, starting with 1970-01-01 01:00:04
I (6399) SNTP: Once the NTP server provides a time, we will switch to that one
I (6429) MAIN: CPU frequency: 160 MHz
I (6439) OTA: Start CheckOTAUpdateCheck...
I (6449) OTA: SHA-256 for the partition table: : 9d4a2809ae90fb20709a8ca3dd3ac3462e1e73286bcd31b689060c91de06fa3a
I (6469) OTA: SHA-256 for bootloader: : 4a9573dafac5d5c79c43e5a356568332da3a99dd2e220da6ceeadc96d32708a2
I (6949) OTA: SHA-256 for current firmware: : b64a22854eb1e33763bde88abf63d86bb137038b818f619734b7e59e5fc8e6b6
I (6989) SDCARD: Folder/file presence check started...
I (7019) SDCARD: Folder/file presence check successful
I (7039) MAIN: Tag: 'v15.3.0', Release: v15.3.0 (Commit: 3fbff0a), Date/Time: 2023-07-22 09:42, Web UI: Release: v15.3.0 (Commit: 3fbff0a)
I (7069) MAIN: Reset reason: Power-on event (or reset button)
I (7079) WLANINI: SSID: NSA-Unit 2k4GHz
I (7089) WLANINI: Password: XXXXXXXX
I (7099) WLANINI: Hostname: Wasserzähler
I (7109) WLANINI: RSSIThreshold: -75
I (7119) MAIN: WLAN config loaded, init WIFI...
I (7129) WIFI: Automatic interface config --> Use DHCP service
I (7149) wifi:wifi driver task: 3ffd111c, prio:23, stack:6144, core=0
I (7149) system_api: Base MAC address is not set
I (7149) system_api: read default base MAC address from EFUSE
I (7159) wifi:wifi firmware version: 57982fe
I (7169) wifi:wifi certification version: v7.0
I (7169) wifi:config NVS flash: enabled
I (7169) wifi:config nano formating: enabled
I (7169) wifi:Init data frame dynamic rx buffer num: 16
I (7169) wifi:Init management frame dynamic rx buffer num: 16
I (7179) wifi:Init management short buffer num: 32
I (7179) wifi:Init static tx buffer num: 16
I (7189) wifi:Init tx cache buffer num: 16
I (7189) wifi:Init static rx buffer size: 1600
I (7199) wifi:Init static rx buffer num: 16
I (7199) wifi:Init dynamic rx buffer num: 16
I (7209) wifi_init: rx ba win: 16
I (7209) wifi_init: tcpip mbox: 32
I (7209) wifi_init: udp mbox: 6
I (7209) wifi_init: tcp mbox: 6
I (7219) wifi_init: tcp tx win: 5744
I (7219) wifi_init: tcp rx win: 5744
I (7219) wifi_init: tcp mss: 1440
I (7229) wifi_init: WiFi/LWIP prefer SPIRAM
I (7229) wifi_init: WiFi IRAM OP enabled
I (7229) wifi_init: WiFi RX IRAM OP enabled
I (7259) phy_init: phy_version 4670,719f9f6,Feb 18 2021,17:07:07
I (7359) wifi:mode : sta (08:d1:f9:99:54:d8)
I (7359) wifi:enable tsf
I (7369) WIFI: Set hostname to: Wasserzähler
I (7379) WIFI: Init successful
I (9779) wifi:new:<11,0>, old:<1,0>, ap:<255,255>, sta:<11,0>, prof:1
I (10499) wifi:state: init -> auth (b0)
I (10509) wifi:state: auth -> assoc (0)
I (10509) wifi:state: assoc -> run (10)
I (10539) wifi:connected with NSA-Unit 2k4GHz, aid = 7, channel 11, BW20, bssid = 7c:ff:4d:7a:3c:3f
I (10539) wifi:security: WPA2-PSK, phy: bgn, rssi: -91
I (10569) wifi:pm start, type: 1

I (10569) WIFI: Connected to: NSA-Unit 2k4GHz, RSSI: -91
I (10589) wifi:<ba-add>idx:0 (ifx:0, 7c:ff:4d:7a:3c:3f), tid:0, ssn:0, winSize:64
I (24079) wifi:bcn_timeout,ap_probe_send_start
I (27389) MAIN: Device info: CPU cores: 2, Chip revision: 301
I (27399) MAIN: SD card info: Name: SS16G, Capacity: 15193MB, Free: 15174MB
I (29409) MAIN SERVER: Starting server on port: '80'
I (29409) MAIN SERVER: Registering URI handlers
I (29409) MAINCTRL: server_main_flow_task - Registering URI handlers
I (29409) OTA: Registering URI handlers
I (29409) GPIO: start GpioHandler
I (29419) GPIO: register GPIO Uri
I (29419) GPIO: server_GPIO - Registering URI handlers
I (29419) MAIN: Initialization completed successfully
I (29459) ov2640: Set PLL: clk_2x: 0, clk_div: 0, pclk_auto: 0, pclk_div: 8
I (31599) LOGFILE: Set log level to ERROR
I (31609) GPIO: read GPIO config and init GPIO
I (31629) GPIO: GPIO init completed, handler is disabled
I (31629) MAINCTRL: We are in Setup Mode -> Not starting Auto Flow!
I (41159) MAINCTRL: Autostart is not enabled -> Not starting Flow

Expected Behavior

I expect it to get an IP every time so I can access it.

Screenshots

No response

Additional Context

No response

@ghost ghost added the bug Something isn't working label Dec 23, 2023
Repository owner locked and limited conversation to collaborators Dec 23, 2023
@caco3 caco3 converted this issue into discussion #2760 Dec 23, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

0 participants