# ip_internal_network **Repository Path**: luocanqi/ip_internal_network ## Basic Information - **Project Name**: ip_internal_network - **Description**: esp32 mesh测试 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-05-11 - **Last Updated**: 2023-07-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 修改说明: 代码拷贝自 esp_idf/examples/mesh/ip_internal_network 主要修改是添加了ethernet的支持,手工指定root/node节点 测试说明: 1、采用esp32模块,idf 4.4.4 2、运行idf.py menuconfig,选择 "Mesh Support Ethernet" 根据自己的情况,设置以太网的其它选项(重要)。编译后生成支持以太网的root,烧到板子上 3、运行idf.py menuconfig,选择 "Mesh Support Wifi" 注意:不要再选 "Mesh Support Ethernet" 并且设置 路由器的ssid, password 编译后生成支持WIFI的root,烧到板子上 4、运行idf.py menuconfig,上面两项,都不要选择,编译后生成是node,烧到板子上 三块板子启动后,node可能会连任意一个root,此时轮流断开、重连正在连接的root,node不会自动连到另外的root 如果node节点重启,会自动连到另外的root。 node连不上时的报错信息 ```` I (36552) mesh: 2004parent monitor, my layer:2(cap:6)(node), interval:347092ms, retries:3<> I (38662) [mesh_main, 89]: Received Routing table [0] 58:bf:25:38:d2:c8 I (38662) [mesh_main, 89]: Received Routing table [1] 94:b5:55:f8:fa:fc W (39732) wifi:(->sleep)busy, waked:1, dream:0, sleep:0 W (40002) wifi:(->sleep)busy, waked:1, dream:0, sleep:0 W (40272) wifi:(->sleep)busy, waked:1, dream:0, sleep:0 W (40552) wifi:(->sleep)busy, waked:1, dream:0, sleep:0 W (40822) wifi:(->sleep)busy, waked:1, dream:0, sleep:0 W (41092) wifi:(->sleep)busy, waked:1, dream:0, sleep:0 ~W (43012) wifi:(->sleep)busy, waked:1, dream:0, sleep:0 W (43282) wifi:(->sleep)busy, waked:1, dream:0, sleep:0 W (43552) wifi:(->sleep)busy, waked:1, dream:0, sleep:0 W (43832) wifi:(->sleep)busy, waked:1, dream:0, sleep:0 W (44102) wifi:(->sleep)busy, waked:1, dream:0, sleep:0 W (44372) wifi:(->sleep)busy, waked:1, dream:0, sleep:0 W (44652) wifi:(->sleep)busy, waked:1, dream:0, sleep:0 N$HeW (46562) wifi:(->sleep)busy, waked:1, dream:0, sleep:0 W (46832) wifi:(->sleep)busy, waked:1, dream:0, sleep:0 W (47112) wifi:(->sleep)busy, waked:1, dream:0, sleep:0 W (47382) wifi:(->sleep)busy, waked:1, dream:0, sleep:0 W (47652) wifi:(->sleep)busy, waked:1, dream:0, sleep:0 W (47932) wifi:(->sleep)busy, waked:1, dream:0, sleep:0 W (48202) wifi:(->sleep)busy, waked:1, dream:0, sleep:0 W (48472) wifi:(->sleep)busy, waked:1, dream:0, sleep:0 I (48662) wifi:bcn_timeout,ap_probe_send_start I (48662) wifi:pm stop, total sleep time: 24412722 us / 40069489 us I (48662) wifi:(mesh)pm stop, sleep:23 secs, total:38 secs, current active set:10, running:0.61 I (51172) wifi:ap_probe_send over, resett wifi status to disassoc I (51172) wifi:state: run -> init (c800) I (51182) wifi:idx I (51182) wifi:new:<1,0>, old:<1,1>, ap:<1,1>, sta:<1,1>, prof:1 I (51182) mesh: [wifi]disconnected reason:200(beacon timeout), continuous:1/max:12, non-root, vote(,)<><> I (51182) mesh_main: reason:200 I (51192) wifi:new:<1,1>, old:<1,0>, ap:<1,1>, sta:<1,1>, prof:1 E (51202) mesh_netif: Send with err code 16395 ESP_ERR_MESH_DISCONNECTED I (51202) wifi:state: init -> auth (b0) I (52712) wifi:state: auth -> init (200) I (52722) wifi:new:<1,0>, old:<1,1>, ap:<1,1>, sta:<1,1>, prof:1 I (52722) mesh_main: reason:2 I (52722) mesh: [wifi]disconnected reason:2(auth expire), continuous:2/max:12, non-root, vote(,)<><> I (52732) wifi:new:<1,1>, old:<1,0>, ap:<1,1>, sta:<1,1>, prof:1 I (52742) wifi:state: init -> auth (b0) I (54242) wifi:state: auth -> init (200) I (54242) wifi:new:<1,0>, old:<1,1>, ap:<1,1>, sta:<1,1>, prof:1 I (54242) mesh: [wifi]disconnected reason:2(auth expire), continuous:3/max:12, non-root, vote(,)<><> I (54242) mesh_main: reason:2 I (54252) wifi:new:<1,1>, old:<1,0>, ap:<1,1>, sta:<1,1>, prof:1 I (54262) wifi:state: init -> auth (b0) I (55762) wifi:state: auth -> init (200) I (55762) wifi:new:<1,0>, old:<1,1>, ap:<1,1>, sta:<1,1>, prof:1 I (55772) mesh: [wifi]disconnected reason:2(auth expire), continuous:4/max:12, non-root, vote(,)<><> I (55772) mesh_main: reason:2 I (55772) wifi:new:<1,1>, old:<1,0>, ap:<1,1>, sta:<1,1>, prof:1 I (55782) wifi:state: init -> auth (b0) I (57292) wifi:state: auth -> init (200) I (57292) wifi:new:<1,0>, old:<1,1>, ap:<1,1>, sta:<1,1>, prof:1 I (57292) mesh: [wifi]disconnected reason:2(auth expire), continuous:5/max:12, non-root, vote(,)<><> I (57292) mesh_main: reason:2 I (57302) wifi:new:<1,1>, old:<1,0>, ap:<1,1>, sta:<1,1>, prof:1 I (57312) wifi:state: init -> auth (b0) I (58812) wifi:state: auth -> init (200) I (58812) wifi:new:<1,0>, old:<1,1>, ap:<1,1>, sta:<1,1>, prof:1 I (58812) mesh: [wifi]disconnected reason:2(auth expire), continuous:6/max:12, non-root, vote(,)<><> I (58822) mesh_main: reason:2 I (58822) wifi:new:<1,1>, old:<1,0>, ap:<1,1>, sta:<1,1>, prof:1 I (58832) wifi:state: init -> auth (b0) I (60342) wifi:state: auth -> init (200) I (60342) wifi:new:<1,0>, old:<1,1>, ap:<1,1>, sta:<1,1>, prof:1 I (60342) mesh: [wifi]disconnected reason:2(auth expire), continuous:0/max:12, non-root, vote(,)<><> I (60342) mesh_main: reason:2 I (60342) mesh: [auth expire]looking for a new parent, [L:2]try layer:1 I (60442) [mesh_main, 346]: is_rootless:1 I (61042) mesh: [SCAN][ch:1]AP:8, other(ID:0, RD:0), MAP:0, idle:0, candidate:0, root:0, topMAP:0[c:2,i:1][00:00:00:00:00:00][FIXED-ROOT]<> I (61042) mesh: [FAIL][1]root:0, fail:1, normal:0 I (61652) mesh: [SCAN][ch:1]AP:8, other(ID:0, RD:0), MAP:0, idle:0, candidate:0, root:0, topMAP:0[c:2,i:1][00:00:00:00:00:00][FIXED-ROOT]<> I (61652) mesh: [FAIL][2]root:0, fail:2, normal:0 I (62262) mesh: [SCAN][ch:1]AP:6, other(ID:0, RD:0), MAP:0, idle:0, candidate:0, root:0, topMAP:0[c:2,i:1][00:00:00:00:00:00][FIXED-ROOT]<> I (62262) mesh: [FAIL][3]root:0, fail:3, normal:0 ```` 后面就是一直SCAN,计数到一定程度,出现PARENT_NOT_FOUND, PARENT_DISCONNECTED消息