完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
问题描述:
我的测试流程是: 1,给1号esp32上电 然后正常工作获取路由分配的IP 打印了路由表 2,给2号esp32上电 然后1号显示了一个uknow id(如图) 然后 路由表显示2号加入进来了 3,但是2号esp32上电之后无法获取 1号父节点分配的IP 还一直提示 mesh_main: Error in receiving raw mesh data: Unexpected size[0m 感觉MAC链路层是没有问题 应该是NAT出问题了 2号没有办法 获取1号的DHCP 1号正常工作时 2号加入mesh的log 打印如下: Code: Select all [0;32mI (438502) mesh_mqtt: sent publish returned msg_id=13132[0m [0;32mI (438502) mesh_main: Sending routing table to [0] f4:12:fa:43:59:1c: sent with err code: 0[0m [0;32mI (438502) mesh_main: Received Routing table [0] f4:12:fa:43:59:1c[0m [0;32mI (438762) mesh_mqtt: MQTT_EVENT_PUBLISHED, msg_id=13132[0m [0;32mI (440512) mesh_main: Tried to publish layer:1 IP:192.168.137.29[0m [0;32mI (440512) mesh_mqtt: sent publish returned msg_id=12336[0m [0;32mI (440512) mesh_main: Sending routing table to [0] f4:12:fa:43:59:1c: sent with err code: 0[0m [0;32mI (440512) mesh_main: Received Routing table [0] f4:12:fa:43:59:1c[0m [0;32mI (440772) mesh_mqtt: MQTT_EVENT_PUBLISHED, msg_id=12336[0m I (442092) wifi:new:<11,2>, old:<11,0>, ap:<11,2>, sta:<11,0>, prof:1 I (442092) wifi:station: f4:12:fa:cd:26:60 join, AID=1, bgn, 40D [0;32mI (442102) mesh_main: unknown id:25[0m [0;33mW (442122) mesh_main: I (442132) mesh: [0;32mI (442132) mesh_main: [0;32mI (442522) mesh_main: Tried to publish layer:1 IP:192.168.137.29[0m [0;32mI (442522) mesh_mqtt: sent publish returned msg_id=7443[0m [0;32mI (442522) mesh_main: Sending routing table to [0] f4:12:fa:43:59:1c: sent with err code: 0[0m [0;32mI (442522) mesh_main: Received Routing table [0] f4:12:fa:43:59:1c[0m [0;32mI (442532) mesh_main: Sending routing table to [1] f4:12:fa:cd:26:60: sent with err code: 0[0m [0;32mI (442542) mesh_main: Received Routing table [1] f4:12:fa:cd:26:60[0m [0;32mI (442772) mesh_mqtt: MQTT_EVENT_PUBLISHED, msg_id=7443[0m [0;32mI (444542) mesh_main: Tried to publish layer:1 IP:192.168.137.29[0mSSa 2号 上电log如下: Code: Select all [09:34:06.152]收←◆ESP-ROM:esp32s3-20210327 Build:Mar 27 2021 rst:0x1 (POWERON),boot:0x2b (SPI_FAST_FLASH_BOOT) SPIWP:0xee mode:DIO, clock div:1 load:0x3fce3810,len:0x164c load:0x403c9700,len:0xbe0 load:0x403cc700,len:0x2d34 entry 0x403c9904 [0;32mI (25) boot: ESP-IDF v5.0-dev-3654-gc2ccc383da-dirty 2nd stage bootloader[0m [0;32mI (25) boot: compile time 09:20:17[0m [0;32mI (25) boot: chip revision: 0[0m [0;32mI (29) boot.esp32s3: Boot SPI Speed : 80MHz[0m [0;32mI (33) boot.esp32s3: SPI Mode : DIO[0m [0;32mI (38) boot.esp32s3: SPI Flash Size : 2MB[0m [0;32mI (43) boot: Enabling RNG early entropy source...[0m [0;32mI (48) boot: Partition Table:[0m [0;32mI (52) boot: ## Label Usage Type ST Offset Length[0m [0;32mI (59) boot: 0 nvs WiFi data 01 02 00009000 00006000[0m [0;32mI (67) boot: 1 phy_init RF data 01 01 0000f000 00001000[0m [0;32mI (74) boot: 2 factory factory app 00 00 00010000 00124f80[0m [0;32mI (82) boot: End of partition table[0m [0;32mI (86) esp_image: segment 0: paddr=00010020 vaddr=3c0c0020 size=2d6d8h (186072) map[0m [0;32mI (128) esp_image: segment 1: paddr=0003d700 vaddr=3fc95700 size=02918h ( 10520) load[0m [0;32mI (130) esp_image: segment 2: paddr=00040020 vaddr=42000020 size=b3b8ch (736140) map[0m [09:34:06.415]收←◆[0;32mI (265) esp_image: segment 3: paddr=000f3bb4 vaddr=3fc98018 size=01d50h ( 7504) load[0m [0;32mI (267) esp_image: segment 4: paddr=000f590c vaddr=40374000 size=116fch ( 71420) load[0m [0;32mI (287) esp_image: segment 5: paddr=00107010 vaddr=50000000 size=00010h ( 16) load[0m [0;32mI (295) boot: Loaded app from partition at offset 0x10000[0m [0;32mI (295) boot: Disabling RNG early entropy source...[0m [0;32mI (307) cpu_start: Pro cpu up.[0m [0;32mI (307) cpu_start: Starting app cpu, entry point is 0x4037532c[0m [0;32mI (0) cpu_start: App cpu up.[0m [0;32mI (321) cpu_start: Pro cpu start user code[0m [0;32mI (321) cpu_start: cpu freq: 160000000 Hz[0m [0;32mI (321) cpu_start: Application information:[0m [0;32mI (324) cpu_start: Project name: ip_internal_network[0m [0;32mI (330) cpu_start: App version: 1[0m [0;32mI (335) cpu_start: Compile time: Sep 16 2022 09:20:10[0m [0;32mI (341) cpu_start: ELF file SHA256: a0fb961559de2520...[0m [0;32mI (347) cpu_start: ESP-IDF: v5.0-dev-3654-gc2ccc383da-dirty[0m [0;32mI (354) heap_init: Initializing. RAM available for dynamic allocation:[0m [0;32mI (361) heap_init: At 3FC9F470 len 00040B90 (258 KiB): D/IRAM[0m [0;32mI (367) heap_init: At 3FCE0000 len 0000EE34 (59 KiB): STACK/DRAM[0m [0;32mI (374) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM[0m [0;32mI (380) heap_init: At 600FE000 len 00002000 (8 KiB): RTCRAM[0m [0;32mI (387) spi_flash: detected chip: gd[0m [0;32mI (391) spi_flash: flash io: dio[0m [0;33mW (395) spi_flash: Detected size(16384k) larger than the size in the binary image header(2048k). Using the size in the binary image header.[0m [0;32mI (408) sleep: Configure to isolate all GPIO pins in sleep state[0m [0;32mI (415) sleep: Enable automatic switching of GPIO sleep configuration[0m [0;32mI (422) cpu_start: Starting scheduler on PRO CPU.[0m [0;32mI (0) cpu_start: Starting scheduler on APP CPU.[0m [0;32mI (502) pp: pp rom version: e7ae62f[0m [0;32mI (502) net80211: net80211 rom version: e7ae62f[0m I (512) wifi:wifi driver task: 3fce5b08, prio:23, stack:6656, core=0 [0;32mI (512) system_api: Base MAC address is not set[0m [0;32mI (512) system_api: read default base MAC address from EFUSE[0m I (532) wifi:wifi firmware version: 3aa4137 I (532) wifi:wifi certification version: v7.0 I (532) wifi:config NVS flash: enabled I (532) wifi:config nano formating: disabled I (532) wifi:Init data frame dynamic rx buffer num: 32 I (542) wifi:Init management frame dynamic rx buffer num: 32 I (542) wifi:Init management short buffer num: 32 I (552) wifi:Init dynamic tx buffer num: 32 I (552) wifi:Init static tx FG buffer num: 2 I (562) wifi:Init static rx buffer size: 1600 I (562) wifi:Init static rx buffer num: 10 I (562) wifi:Init dynamic rx buffer num: 32 [0;32mI (572) wifi_init: rx ba win: 6[0m [0;32mI (572) wifi_init: tcpip mbox: 32[0m [0;32mI (582) wifi_init: udp mbox: 6[0m [0;32mI (582) wifi_init: tcp mbox: 6[0m [0;32mI (582) wifi_init: tcp tx win: 5744[0m [0;32mI (592) wifi_init: tcp rx win: 5744[0m [0;32mI (592) wifi_init: tcp mss: 624[0m [0;32mI (602) wifi_init: WiFi IRAM OP enabled[0m [0;32mI (602) wifi_init: WiFi RX IRAM OP enabled[0m I (602) wifi:Set ps type: 0 [0;32mI (612) phy_init: phy_version 503,13653eb,Jun 1 2022,17:47:08[0m I (662) wifi:mode : sta (f4:12:fa:cd:26:60) + softAP (f4:12:fa:cd:26:61) I (662) wifi:enable tsf I (662) wifi:Total power save buffer number: 16 I (662) wifi:Init max length of beacon: 752/752 I (662) wifi:Init max length of beacon: 752/752 I (682) mesh: I (682) mesh: I (692) wifi:Total power save buffer number: 16 [09:34:07.802]收←◆I (1682) wifi:mode : sta (f4:12:fa:cd:26:60) I (1702) mesh: [0;32mI (1702) mesh_main: [0;32mI (1702) mesh_main: mesh starts successfully, heap:252212, root not fixed [0m [09:34:12.021]收←◆I (5902) mesh: [S16]m1, 66:79:f0:03:84:69, channel:11, rssi:-45 I (5902) mesh: find router:[ssid_len:2]m1, rssi:-45, 66:79:f0:03:84:69(encrypted), new channel:11, old channel:0 I (5912) mesh: find root:ESPM_43591C, root_cap:1(max:300), new channel:11, old channel:0 I (5922) mesh: [FIND][ch:0]AP:18, otherID:0, MAP:1, idle:0, candidate:0, root:1[66:79:f0:03:84:69]router found I (5932) mesh: [FIND:1]find a network, channel:11, cfg I (5942) wifi:mode : sta (f4:12:fa:cd:26:60) + softAP (f4:12:fa:cd:26:61) W (5942) wifi: I (5952) wifi:Total power save buffer number: 16 [0;32mI (5942) mesh_main: W (5962) wifi: I (5972) wifi:Total power save buffer number: 16 [09:34:12.391]收←◆I (6272) mesh: [SCAN][ch:11]AP:5, other(ID:0, RD:0), MAP:1, idle:0, candidate:1, root:1, topMAP:0[c:1,i:0][66:79:f0:03:84:69]router found<> I (6282) mesh: 7369[selection]try rssi_threshold:-78, backoff times:0, max:5<-78,-82,-85> I (6302) mesh: I (6302) mesh: [DONE]connect to parent:ESPM_43591C, channel:11, rssi:-26, f4:12:fa:43:59:1d[layer:1, assoc:0], my_vote_num:0/voter_num:0, rc[00:00:00:00:00:00/-120/0] I (6302) mesh: set router bssid:66:79:f0:03:84:69 [09:34:12.517]收←◆I (6402) wifi:new:<11,2>, old:<11,2>, ap:<11,2>, sta:<11,2>, prof:11 [09:34:13.557]收←◆I (7442) wifi:state: init -> auth (b0) I (7452) wifi:state: auth -> assoc (0) I (7462) wifi:state: assoc -> run (10) I (7472) mesh: I (7472) mesh: I (7472) mesh: I (7482) wifi:connected with ESPM_43591C, aid = 1, channel 11, 40D, bssid = f4:12:fa:43:59:1d I (7492) wifi:security: WPA2-PSK, phy: bgn, rssi: -27 [0;32mI (7482) mesh_main: I (7502) wifi:pm start, type: 0 I (7502) wifi:set rx beacon pti, rx_bcn_pti: 0, bcn_timeout: 0, mt_pti: 25000, mt_time: 10000 I (7512) mesh: [scan]new scanning time:600ms, beacon interval:300ms I (7532) mesh: 2004 [0;32mI (7532) mesh_main: [0;32mI (7542) mesh_netif: It was a wifi station removing stuff[0m [0;32mI (7552) mesh_main: [09:34:13.744]收←◆I (7632) wifi:BcnInt:307200, DTIM:1 [09:34:14.011]收←◆[0;31mE (7892) mesh_main: Error in receiving raw mesh data: Unexpected size[0m [09:34:16.028]收←◆[0;31mE (9912) mesh_main: Error in receiving raw mesh data: Unexpected size[0m [09:34:18.061]收←◆[0;31mE (11942) mesh_main: Error in receiving raw mesh data: Unexpected size[0m [09:34:20.077]收←◆[0;31mE (13962) mesh_main: Error in receiving raw mesh data: Unexpected size[0m [09:34:20.201]收←◆I (14082) mesh: 5156 [09:34:21.703]收←◆I (15592) mesh: 5947 I (15592) mesh: [SCAN][ch:11]AP:1, other(ID:0, RD:0), MAP:1, idle:0, candidate:1, root:1, topMAP:0[c:2,i:2][66:79:f0:03:84:69] I (15592) mesh: 7369[weak]try rssi_threshold:-120, backoff times:0, max:5<-78,-82,-85> I (15602) mesh: 716[monitor]no change, parent:f4:12:fa:43:59:1d, rssi:-28 I (15612) mesh: 2004 [09:34:22.110]收←◆[0;31mE (15992) mesh_main: Error in receiving raw mesh data: Unexpected size[0m [09:34:24.127]收←◆[0;31mE (18012) mesh_main: Error in receiving raw mesh data: Unexpected size[0m [09:34:26.161]收←◆[0;31mE (20042) mesh_main: Error in receiving raw mesh data: Unexpected size[0m [09:34:28.184]收←◆[0;31mE (22072) mesh_main: Error in receiving raw mesh data: Unexpected size[0m |
|
相关推荐
|
|
只有小组成员才能发言,加入小组>>
1153 浏览 1 评论
584浏览 6评论
480浏览 5评论
有没有办法在不使用混杂模式的情况下实现Wifi驱动程序接收缓冲区访问中断呢?
465浏览 5评论
466浏览 4评论
441浏览 4评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-24 13:22 , Processed in 0.828839 second(s), Total 75, Slave 59 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号