ESP8266 Developer Zone The Official ESP8266 Forum 2016-12-05T10:40:44+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=2985 2016-12-05T10:40:44+08:00 2016-12-05T10:40:44+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2985&p=10775#p10775 <![CDATA[Re: ESP8266 mesh的移植]]>
angeliacfq wrote:
你好:
目前我需要在设备开启mesh功能之后,根节点能够发出广播包。我尝试在mesh_demo的wait_esptouch_over()里注册了WiFi处理时间函数,
wifi_set_event_handler_cb(wifi_handle_event_cb), 当EVENT_STAMODE_GOT_IP 时间触发之后就开始发广播包。在espconn_mesh_enable开启STA+AP模式前,设备可以发出几个广播包。STA+AP模式开启之后就收不到广播包了。如果设备连接router失败了,重新连接上router,又可以继续发出广播包。
请问要怎么才能使根节点能够稳定的发出广播包???


Hi, 你好,
event_callback已经被mesh用掉了,而系统只支持一个event_callback, 所以你不可以再使用event_callback了,抱歉。
那你可以先不要开启mesh,发完broadcast之后再开启mesh.

Statistics: Posted by Guest — Mon Dec 05, 2016 10:40 am


]]>
2016-11-03T10:29:45+08:00 2016-11-03T10:29:45+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2985&p=10390#p10390 <![CDATA[Re: ESP8266 mesh的移植]]> 目前我需要在设备开启mesh功能之后,根节点能够发出广播包。我尝试在mesh_demo的wait_esptouch_over()里注册了WiFi处理时间函数,
wifi_set_event_handler_cb(wifi_handle_event_cb), 当EVENT_STAMODE_GOT_IP 时间触发之后就开始发广播包。在espconn_mesh_enable开启STA+AP模式前,设备可以发出几个广播包。STA+AP模式开启之后就收不到广播包了。如果设备连接router失败了,重新连接上router,又可以继续发出广播包。
请问要怎么才能使根节点能够稳定的发出广播包???

Statistics: Posted by angeliacfq — Thu Nov 03, 2016 10:29 am


]]>
2016-11-02T22:06:50+08:00 2016-11-02T22:06:50+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2985&p=10382#p10382 <![CDATA[Re: ESP8266 mesh的移植]]>
angeliacfq wrote:
已解决,把mesh V1.3.2的库都移植到2.0 SDK上


Great work

Statistics: Posted by Guest — Wed Nov 02, 2016 10:06 pm


]]>
2016-11-01T10:37:15+08:00 2016-11-01T10:37:15+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2985&p=10369#p10369 <![CDATA[Re: ESP8266 mesh的移植]]> Statistics: Posted by angeliacfq — Tue Nov 01, 2016 10:37 am


]]>
2016-11-01T09:40:35+08:00 2016-11-01T09:40:35+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2985&p=10368#p10368 <![CDATA[ESP8266 mesh的移植]]> ESP8266 2.0SDK 里的mesh库是mesh version: v0.2.3,现在我想把v1.3.2的移植到2.0SDK上,仅仅把mesh.a替换调,不能编译通过。应该怎么做才能移植过去呢?

xtensa-lx106-elf-gcc -L../lib -nostdlib -T../ld/eagle.app.v6.new.1024.app1.ld -Wl,--no-check-sections -Wl,--gc-sections -u call_user_start -Wl,-static -Wl,--start-group -lc -lgcc -lhal -lphy -lpp -lnet80211 -llwip -lwpa -lcrypto -lmain -ljson -lupgrade -lssl -lmesh -lpwm -lsmartconfig user/.output/eagle/debug/lib/libuser.a driver/.output/eagle/debug/lib/libdriver.a -Wl,--end-group -o .output/eagle/debug/image/eagle.app.v6.out
../lib/libmesh.a(espconn_mesh.o): In function `espconn_mesh_print_ver':
(.irom0.text+0x1350): undefined reference to `wifi_station_connect_dest_chan'
../lib/libmesh.a(espconn_mesh.o): In function `espconn_mesh_print_ver':
(.irom0.text+0x1396): undefined reference to `wifi_station_connect_dest_chan'
../lib/libmesh.a(espconn_mesh.o): In function `espconn_mesh_print_ver':
(.irom0.text+0x2014): undefined reference to `wifi_station_connect_dest_chan'
../lib/libmesh.a(espconn_mesh.o): In function `espconn_mesh_enable_request':
(.irom0.text+0x2424): undefined reference to `wifi_set_bc_rate_mode'
../lib/libmesh.a(espconn_mesh.o): In function `espconn_mesh_enable_request':
(.irom0.text+0x2428): undefined reference to `wifi_set_budget_rate_limit'
../lib/libmesh.a(espconn_mesh.o): In function `espconn_mesh_enable_request':
(.irom0.text+0x242c): undefined reference to `wifi_set_budget_rate_limit_enable'
../lib/libmesh.a(espconn_mesh.o): In function `espconn_mesh_enable_request':
(.irom0.text+0x2430): undefined reference to `ieee80211_mesh_quick_set_mgmt_send_map'
../lib/libmesh.a(espconn_mesh.o): In function `espconn_mesh_enable_request':
(.irom0.text+0x2434): undefined reference to `ieee80211_set_beacon_interval'
../lib/libmesh.a(espconn_mesh.o): In function `espconn_mesh_enable_request':
(.irom0.text+0x2438): undefined reference to `tcp_pbuf_set_alloc_ondemand'
../lib/libmesh.a(espconn_mesh.o): In function `espconn_mesh_enable_request':
(.irom0.text+0x243c): undefined reference to `rcSetRetryLimitCnt'
../lib/libmesh.a(espconn_mesh.o): In function `espconn_mesh_enable_request':
(.irom0.text+0x2737): undefined reference to `wifi_set_bc_rate_mode'
../lib/libmesh.a(espconn_mesh.o): In function `espconn_mesh_enable_request':
(.irom0.text+0x2743): undefined reference to `wifi_set_bc_rate_mode'
../lib/libmesh.a(espconn_mesh.o): In function `espconn_mesh_enable_request':
(.irom0.text+0x274f): undefined reference to `wifi_set_budget_rate_limit'
../lib/libmesh.a(espconn_mesh.o): In function `espconn_mesh_enable_request':
(.irom0.text+0x275b): undefined reference to `wifi_set_budget_rate_limit'
../lib/libmesh.a(espconn_mesh.o): In function `espconn_mesh_enable_request':
(.irom0.text+0x2763): undefined reference to `wifi_set_budget_rate_limit_enable'
../lib/libmesh.a(espconn_mesh.o): In function `espconn_mesh_enable_request':
(.irom0.text+0x2777): undefined reference to `ieee80211_mesh_quick_set_mgmt_send_map'
../lib/libmesh.a(espconn_mesh.o): In function `espconn_mesh_enable_request':
(.irom0.text+0x2780): undefined reference to `ieee80211_set_beacon_interval'
../lib/libmesh.a(espconn_mesh.o): In function `espconn_mesh_enable_request':
(.irom0.text+0x2789): undefined reference to `tcp_pbuf_set_alloc_ondemand'
../lib/libmesh.a(espconn_mesh.o): In function `espconn_mesh_enable_request':
(.irom0.text+0x2792): undefined reference to `rcSetRetryLimitCnt'
../lib/libmesh.a(espconn_mesh.o): In function `espconn_mesh_get_router':
(.irom0.text+0x28cc): undefined reference to `ieee80211_mesh_quick_set_mgmt_send_map'
../lib/libmesh.a(espconn_mesh.o): In function `espconn_mesh_set_router':
(.irom0.text+0x2abb): undefined reference to `ieee80211_mesh_quick_set_mgmt_send_map'
../lib/libmesh.a(espconn_mesh.o): In function `espconn_mesh_set_router':
(.irom0.text+0x2ac4): undefined reference to `ieee80211_set_beacon_interval'
../lib/libmesh.a(espconn_mesh.o): In function `espconn_mesh_set_router':
(.irom0.text+0x2acc): undefined reference to `tcp_pbuf_set_alloc_ondemand'
../lib/libmesh.a(espconn_mesh.o): In function `espconn_mesh_connect':
(.irom0.text+0x5907): undefined reference to `ieee80211_mesh_quick_set_mgmt_send_map'
../lib/libmesh.a(espconn_mesh.o): In function `espconn_mesh_connect':
(.irom0.text+0x59f8): undefined reference to `ieee80211_set_beacon_interval'
../lib/libmesh.a(espconn_mesh.o): In function `espconn_mesh_connect':
(.irom0.text+0x5a1f): undefined reference to `ieee80211_set_beacon_interval'
../lib/libmesh.a(espconn_mesh.o): In function `espconn_mesh_disconnect':
(.irom0.text+0x5d43): undefined reference to `wifi_station_connect_dest_chan'
../lib/libmesh.a(espconn_mesh.o): In function `espconn_mesh_disconnect':
(.irom0.text+0x6074): undefined reference to `wifi_station_reconnect_fixed_channel'
../lib/libmesh.a(espconn_mesh.o): In function `espconn_mesh_disconnect':
(.irom0.text+0x65e7): undefined reference to `wifi_station_connect_dest_chan'
../lib/libmesh.a(espconn_mesh.o): In function `espconn_mesh_disconnect':
(.irom0.text+0x65ff): undefined reference to `wifi_station_connect_dest_chan'
../lib/libmesh.a(espconn_mesh.o): In function `espconn_mesh_disconnect':
(.irom0.text+0x66cb): undefined reference to `wifi_station_reconnect_fixed_channel'
../lib/libmesh.a(espconn_mesh.o): In function `espconn_mesh_disconnect':
(.irom0.text+0x9058): undefined reference to `wifi_softap_kick_station'
../lib/libmesh.a(espconn_mesh.o): In function `espconn_mesh_disconnect':
(.irom0.text+0x90bb): undefined reference to `wifi_softap_kick_station'
../lib/libmesh.a(espconn_mesh.o): In function `espconn_mesh_disconnect':
(.irom0.text+0x9114): undefined reference to `wifi_check_station_status'
../lib/libmesh.a(espconn_mesh.o): In function `espconn_mesh_disconnect':
(.irom0.text+0x9137): undefined reference to `wifi_check_station_status'
../lib/libmesh.a(espconn_mesh.o): In function `espconn_mesh_disconnect':
(.irom0.text+0xa36d): undefined reference to `wifi_station_connect_dest_chan'
collect2: error: ld returned 1 exit status
make: *** [.output/eagle/debug/image/eagle.app.v6.out] Error 1

Statistics: Posted by angeliacfq — Tue Nov 01, 2016 9:40 am


]]>