maximkulkin / esp32-homekit-camera

Firmware for esp32-camera module to act as Apple Homekit IP camera
MIT License
394 stars 78 forks source link

No Streaming #20

Closed mcpat-it closed 5 years ago

mcpat-it commented 5 years ago

After successful configuration (e.g. use partition.csv, ...) I can connect to cam with passcode "11111111". Used Mingw32 but with warnings :

WARNING: Toolchain version is not supported: crosstool-ng-1.22.0-80-g6c4433a5
Expected to see version: esp32-2019r1
Please check ESP-IDF setup instructions and update the toolchain, or proceed at your own risk.
WARNING: Compiler version is not supported: 5.2.0
Expected to see version(s): 8.2.0
Please check ESP-IDF setup instructions and update the toolchain, or proceed at your own risk.

I can see the image, but no stream:

>>> HomeKit: [Client 55] Get Characteristics
>>> HomeKit: [Client 55] Update Characteristics
>>> HomeKit: [Client 55] Get Characteristics
I (36574) esp32_camera: Creating setup endpoints response
>>> HomeKit: [Client 55] Update Characteristics
Guru Meditation Error: Core  1 panic'ed (StoreProhibited). Exception was unhandled.
Core 1 register dump:
PC      : 0x40091e1e  PS      : 0x00060633  A0      : 0x8008ee85  A1      : 0x3ffeb9e0  
A2      : 0xae000000  A3      : 0x0000abab  A4      : 0xb33fffff  A5      : 0x00000001  
A6      : 0x00060620  A7      : 0x0000cdcd  A8      : 0x0000abab  A9      : 0x3ffeb9d0  
A10     : 0x3ffe1150  A11     : 0x00000000  A12     : 0x00000000  A13     : 0x00000000  
A14     : 0x0ccccccc  A15     : 0x00000057  SAR     : 0x00000001  EXCCAUSE: 0x0000001d  
EXCVADDR: 0xae000000  LBEG    : 0x4008fce4  LEND    : 0x4008fcef  LCOUNT  : 0x00000000  

ELF file SHA256: 72220c74427bced1167afde84c2e1c1f714251865ec72db1176668e78b55651f

Backtrace: 0x40091e1e:0x3ffeb9e0 0x4008ee82:0x3ffeba10 0x40084d2d:0x3ffeba30 0x40084d7f:0x3ffeba50 0x4008a98d:0x3ffeba70 0x400d7af5:0x3ffeba90 0x40093101:0x3ffec2e0

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:6500
load:0x40078000,len:11356
load:0x40080400,len:6664
entry 0x40080764
I (29) boot: ESP-IDF v4.0-dev-804-g70b2c86ff 2nd stage bootloader
I (29) boot: compile time 20:35:17
I (29) boot: Enabling RNG early entropy source...
I (35) boot: SPI Speed      : 40MHz
I (39) boot: SPI Mode       : DIO
I (43) boot: SPI Flash Size : 4MB
I (47) boot: Partition Table:
I (51) boot: ## Label            Usage          Type ST Offset   Length
I (58) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (66) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (73) boot:  2 factory          factory app      00 00 00010000 001f0000
I (81) boot: End of partition table
I (85) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0xb0180 (721280) map
I (346) esp_image: segment 1: paddr=0x000c01a8 vaddr=0x3ffb0000 size=0x03ba4 ( 15268) load
I (352) esp_image: segment 2: paddr=0x000c3d54 vaddr=0x40080000 size=0x00400 (  1024) load
I (353) esp_image: segment 3: paddr=0x000c415c vaddr=0x40080400 size=0x0beb4 ( 48820) load
I (382) esp_image: segment 4: paddr=0x000d0018 vaddr=0x400d0018 size=0x11de38 (1171000) map
I (792) esp_image: segment 5: paddr=0x001ede58 vaddr=0x4008c2b4 size=0x0a1e4 ( 41444) load
I (823) boot: Loaded app from partition at offset 0x10000
I (823) boot: Disabling RNG early entropy source...
I (824) psram: This chip is ESP32-D0WD
I (829) spiram: Found 64MBit SPI RAM device
I (833) spiram: SPI RAM mode: flash 40m sram 40m
I (838) spiram: PSRAM initialized, cache is in low/high (2-core) mode.
I (845) cpu_start: Pro cpu up.
I (849) cpu_start: Application information:
I (854) cpu_start: Project name:     esp32-homekit-camera
I (860) cpu_start: App version:      ab7d9e5
I (865) cpu_start: Compile time:     Jun 25 2019 20:35:48
I (871) cpu_start: ELF file SHA256:  72220c74427bced1...
I (877) cpu_start: ESP-IDF:          v4.0-dev-804-g70b2c86ff
I (883) cpu_start: Starting app cpu, entry point is 0x40081400
I (875) cpu_start: App cpu up.
I (1774) spiram: SPI SRAM memory test OK
I (1775) heap_init: Initializing. RAM available for dynamic allocation:
I (1775) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (1781) heap_init: At 3FFBB9C8 len 00024638 (145 KiB): DRAM
I (1787) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (1794) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (1800) heap_init: At 40096498 len 00009B68 (38 KiB): IRAM
I (1806) cpu_start: Pro cpu start user code
I (1811) spiram: Adding pool of 4096K of external SPI memory to heap allocator
I (1833) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (1834) spiram: Reserving pool of 32K of internal memory for DMA/internal allocations
I (1894) wifi: wifi driver task: 3ffcb464, prio:23, stack:3584, core=0
I (1894) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (1894) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (1924) wifi: wifi firmware version: ec61a20
I (1924) wifi: config NVS flash: enabled
I (1924) wifi: config nano formating: disabled
I (1924) wifi: Init dynamic tx buffer num: 32
I (1934) wifi: Init data frame dynamic rx buffer num: 32
I (1934) wifi: Init management frame dynamic rx buffer num: 32
I (1944) wifi: Init management short buffer num: 32
I (1944) wifi: Init static tx buffer num: 16
I (1954) wifi: Init static rx buffer size: 1600
I (1954) wifi: Init static rx buffer num: 10
I (1954) wifi: Init dynamic rx buffer num: 32
I (2054) phy: phy_version: 4100, 2a5dd04, Jan 23 2019, 21:00:07, 0, 0
I (2054) wifi: mode : sta (80:7d:3a:b6:e7:08)
STA start
I (2184) wifi: new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:6
I (3314) wifi: state: init -> auth (b0)
I (3334) wifi: state: auth -> assoc (0)
I (3944) wifi: state: assoc -> run (10)
I (4254) wifi: connected with mcpatric, channel 1, bssid = ac:9e:17:7e:06:d8
I (4254) wifi: pm start, type: 1

I (5384) tcpip_adapter: sta ip: 192.168.0.108, mask: 255.255.255.0, gw: 192.168.0.241
WiFI ready
I (5384) esp32_camera: Free heap: 4365116
I (5384) gpio: GPIO[13]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (5394) gpio: GPIO[14]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (5404) gpio: GPIO[32]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (5504) gpio: GPIO[35]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (5504) gpio: GPIO[34]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (5514) gpio: GPIO[39]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (5524) gpio: GPIO[36]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (5534) gpio: GPIO[21]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (5544) gpio: GPIO[19]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (5554) gpio: GPIO[18]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (5564) gpio: GPIO[5]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (5574) gpio: GPIO[25]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (5584) gpio: GPIO[23]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (5594) gpio: GPIO[22]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (5604) camera: Allocating 2 frame buffers (18 KB total)
I (5604) camera: Allocating 9 KB frame buffer in OnBoard RAM
I (5614) camera: Allocating 9 KB frame buffer in OnBoard RAM
>>> HomeKit: Starting server
>>> HomeKit: Using existing accessory ID: 6C:D6:45:DE:B0:3B
>>> HomeKit: Found admin pairing with ECFC5DBD-6E0F-46DF-AA31-792C78DDA628, disabling pair setup
>>> HomeKit: Configuring mDNS
>>> HomeKit: Got new client connection: 55
>>> HomeKit: [Client 55] Pair Verify Step 1/2
>>> HomeKit: [Client 55] Pair Verify Step 2/2
>>> HomeKit: [Client 55] Found pairing with ECFC5DBD-6E0F-46DF-AA31-792C78DDA628
>>> HomeKit: [Client 55] Verification successful, secure session established
>>> HomeKit: [Client 55] Get Accessories
I (15654) esp32_camera: Creating setup endpoints response
>>> HomeKit: [Client 55] Update Characteristics
>>> HomeKit: [Client 55] Update Characteristics
>>> HomeKit: [Client 55] Update Characteristics
>>> HomeKit: [Client 55] Resource
I (23204) esp32_camera: Resource payload: {"image-width":640,"image-height":480,"resource-type":"image"}
maximkulkin commented 5 years ago

Thank you, I'm aware of that