关于mesh demo的疑问
关于mesh demo的疑问
Postby lijun » Fri Feb 26, 2016 4:26 pm
你好,以下是mesh demo中关于如何运行meshdemo的描述
Please follow below steps to run mesh_demo:
1. Set up mesh_demo server according to demo_server.py.
2. After mesh_demo server setup, please update server_ip in user_config.h according to your demo server.
3. Config MESH_ROUTER_SSID and MESH_ROUTER_PASSWD according to your router in user_config.h.
4. Build run image using gen_misc.sh.
5. Download run image to device, then start mesh demo.
第一步中
Run demo_server.py on the computer
请问此demo_server.py作用?
另外,ubuntu下(python ver 2.7.6)运行python demo_server.py后无反应
[img]C:\Users\LiJun\Desktop\1.jpg[/img]
请问该如何正确运行此脚本?
Please follow below steps to run mesh_demo:
1. Set up mesh_demo server according to demo_server.py.
2. After mesh_demo server setup, please update server_ip in user_config.h according to your demo server.
3. Config MESH_ROUTER_SSID and MESH_ROUTER_PASSWD according to your router in user_config.h.
4. Build run image using gen_misc.sh.
5. Download run image to device, then start mesh demo.
第一步中
Run demo_server.py on the computer
请问此demo_server.py作用?
另外,ubuntu下(python ver 2.7.6)运行python demo_server.py后无反应
[img]C:\Users\LiJun\Desktop\1.jpg[/img]
请问该如何正确运行此脚本?
Re: 关于mesh demo的疑问
Postby ESP_Faye » Tue Mar 01, 2016 10:38 am
Hi,
1. You can use demo_server.py to setup server for mesh nodes.
when node join mesh network, it will send packet to the server.
when the server receive packet from mesh node, it just echo the packet back to mesh node.
2. We will improve the demo_server.py to indicate the success or failure of server.
3. You can run the script using the following command:
python ./demo_server.py
Thanks for your interest in ESP8266 !
1. You can use demo_server.py to setup server for mesh nodes.
when node join mesh network, it will send packet to the server.
when the server receive packet from mesh node, it just echo the packet back to mesh node.
2. We will improve the demo_server.py to indicate the success or failure of server.
3. You can run the script using the following command:
python ./demo_server.py
Thanks for your interest in ESP8266 !
Re: 关于mesh demo的疑问
Postby lijun » Tue Mar 01, 2016 2:16 pm
hi,以下为mesh demo_server运行结果,执行python ./demo_server.py 后控制台无任何反应
只能Ctrl+C 结束
只能Ctrl+C 结束
Code: Select all
jun@kylin:~/share/Espressif/demo/ESP8266_MESH_DEMO/mesh_demo$ python ./demo_server.py
^CTraceback (most recent call last):
File "./demo_server.py", line 26, in <module>
server.serve_forever()
File "/usr/lib/python2.7/SocketServer.py", line 236, in serve_forever
poll_interval)
File "/usr/lib/python2.7/SocketServer.py", line 155, in _eintr_retry
return func(*args)
KeyboardInterrupt
jun@kylin:~/share/Espressif/demo/ESP8266_MESH_DEMO/mesh_demo$
Re: 关于mesh demo的疑问
Postby ESP_Alen » Tue Mar 01, 2016 3:20 pm
Hi, Lijun,
We have improved the print information in demo_server.py, please pull the current code.
We have improved the print information in demo_server.py, please pull the current code.
Who is online
Users browsing this forum: No registered users and 1 guest
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.