ESP8266 Developer Zone The Official ESP8266 Forum 2016-05-24T17:08:01+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=2137 2016-05-24T17:08:01+08:00 2016-05-24T17:08:01+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2137&p=7049#p7049 <![CDATA[Re: MESH_DEMO from github]]>
Nikita Belyaev wrote:
Hi everyone!

Can someone ask for this questions:
1) On which OSI layer does mesh protocols works?
2) How to create root node?
3) When I burned my esp8266 with mesh_demo from git, which kind of node I did? And how can I change user data?
4) Why I'm not able to change server IP? Be default its 0.0.0.0 7000. And when it started I cant see anything except "mesh server works"

There are more questions, but I cant go further without understanding of that things))

Thanks for your cooperation!

BR, Nik


1. Mesh woks on TCP.
2. All the node use the same image
3. Please refer to the mesh_json.c for detail information about user data.
4. You can change the server IP, please make sure the ip address is right.

Statistics: Posted by Guest — Tue May 24, 2016 5:08 pm


]]>
2016-05-23T17:16:16+08:00 2016-05-23T17:16:16+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2137&p=7027#p7027 <![CDATA[Re: MESH_DEMO from github]]> U have already answer for that questions))
Pleas take a look at my new questions above.

Alen wrote:
Nikita Belyaev wrote:Hi everyone!

Can someone ask for this questions:
1) On which OSI layer does mesh protocols works?
2) How to create root node?
3) When I burned my esp8266 with mesh_demo from git, which kind of node I did? And how can I change user data?
4) Why I'm not able to change server IP? Be default its 0.0.0.0 7000. And when it started I cant see anything except "mesh server works"

There are more questions, but I cant go further without understanding of that things))

Thanks for your cooperation!

BR, Nik


1. ESP-Mesh works on TCP
2. root and non-root use the same image bin.
3. please refer to mesh_json.c for demo to set user data.
4. You can modify the IP address of server, please make sure the address is visible for root device.

Statistics: Posted by Nikita Belyaev — Mon May 23, 2016 5:16 pm


]]>
2016-05-23T13:55:04+08:00 2016-05-23T13:55:04+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2137&p=7021#p7021 <![CDATA[Re: MESH_DEMO from github]]>
Nikita Belyaev wrote:
Hi everyone!

Can someone ask for this questions:
1) On which OSI layer does mesh protocols works?
2) How to create root node?
3) When I burned my esp8266 with mesh_demo from git, which kind of node I did? And how can I change user data?
4) Why I'm not able to change server IP? Be default its 0.0.0.0 7000. And when it started I cant see anything except "mesh server works"

There are more questions, but I cant go further without understanding of that things))

Thanks for your cooperation!

BR, Nik


1. ESP-Mesh works on TCP
2. root and non-root use the same image bin.
3. please refer to mesh_json.c for demo to set user data.
4. You can modify the IP address of server, please make sure the address is visible for root device.

Statistics: Posted by Guest — Mon May 23, 2016 1:55 pm


]]>
2016-05-22T02:20:52+08:00 2016-05-22T02:20:52+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2137&p=7013#p7013 <![CDATA[Re: MESH_DEMO from github]]>

Sorry, I'm confused about what you said, "where should we change output of UART to just send received packet"
I can't get what you mean.


1.
Now when we flash esp with mesh demo bin files. Then when we connect serial monitor to esp we can see that esp is sending some date over UART. I suppose that is for debugging purpose. When I send packet from server to esp I wanna send that packet also over UART to mcu. So I must disable already existing debugging information and only send packet over UART.

For example I will send from server some data like "1111111111" and I wanna only this information to be send over UART. Where do we change this ?

2.
We are still unable to locate file where we have to put this two command line:
uart_div_modify(0, UART_CLK_FREQ / 9600);
uart_div_modify(1, UART_CLK_FREQ / 9600);

I hope we got this working then we will post our project here as example for others. This will be first project using esp mesh connected with some MCU.

Regards
Ivan

Statistics: Posted by CipiCips — Sun May 22, 2016 2:20 am


]]>
2016-05-21T19:18:06+08:00 2016-05-21T19:18:06+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2137&p=7012#p7012 <![CDATA[Re: MESH_DEMO from github]]>


Thanks a lot for answers!

here so more:
1) How does routing procedure works? I mean does each node know about all network's nodes? does routing static or dynamic?
2) What should i see, when local server works?
3) And where can I see all prints like this

Code:

MESH_DEMO_PRINT("bcast mesh is busy\n");


I'm really glad for your help. I have read a lot pdfs, but cant find out all this questions(


1. Node just knows all the sub-nodes, and routing dynamic.
2. Server will print "mesh server works" as soon as it is available.
3. Mesh just holds one packet from user, before it sends out the packet, it would not hold packet for user.
Before mesh send out data from user, user try to send another packet using mesh, mesh will print "**** mesh is busy"



thanks!
1) what is the method of dynamic routing? which criterias nodes are uses to find best route?
2) Server just print that he is available and thats all? So how can I monitor the proses of mesh working? Where and how can I investigate bits in packets as you do it in ESP8266 Mesh User Guide?
3) I still cant understand where to look for such prints))

mesh will print "**** mesh is busy"

4) where in code should I look for description of events that are wreaten in README file such as

Code:

2. Every node sends one packet to server per 7 seconds after it joins mesh network.
3. Every node gets mac address of all devices working in mesh per 14 seconds after it joins mesh?

5) Finally what is the procedure of election root and non root node?

Statistics: Posted by Nikita Belyaev — Sat May 21, 2016 7:18 pm


]]>
2016-05-21T12:59:54+08:00 2016-05-21T12:59:54+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2137&p=7010#p7010 <![CDATA[Re: MESH_DEMO from github]]>
CipiCips wrote:
1. Please use following statement to set serial baut ratio, we have merge the statements and push it on github.
uart_div_modify(0, UART_CLK_FREQ / 9600);
uart_div_modify(1, UART_CLK_FREQ / 9600);
2. The maximum length of mesh packet is 1300.
3. When node receive packet, it's feasible to send packet to MCU with USART.



Dear Alen,

1. We have download from github in what file do we have to put:

uart_div_modify(0, UART_CLK_FREQ / 9600);
uart_div_modify(1, UART_CLK_FREQ / 9600);

2. since uart now only display information about connection with server. Can you guide us where should we change output of UART to just send received packet.


Thx
Regards
Ivan


Sorry, I'm confused about what you said, "where should we change output of UART to just send received packet"
I can't get what you mean.

Statistics: Posted by Guest — Sat May 21, 2016 12:59 pm


]]>
2016-05-21T12:52:11+08:00 2016-05-21T12:52:11+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2137&p=7009#p7009 <![CDATA[Re: MESH_DEMO from github]]>
Nikita Belyaev wrote:
Alen wrote:
Nikita Belyaev wrote:Hi everyone!

Can someone ask for this questions:
1) On which OSI layer does mesh protocols works?
2) How to create root node?
3) When I burned my esp8266 with mesh_demo from git, which kind of node I did? And how can I change user data?
4) Why I'm not able to change server IP? Be default its 0.0.0.0 7000. And when it started I cant see anything except "mesh server works"

There are more questions, but I cant go further without understanding of that things))

Thanks for your cooperation!

BR, Nik


1. ESP-Mesh works on application layer based on TCP layer. please refer to document for detail information;
https://github.com/espressif/ESP8266_ME ... ecture.pdf
2. All the node with the same image bin.
3. Mesh support HTTP/JSON/MQTT/BIN data, please refer to demo with json format in mesh_json.c
4. You can set ip address according to factual ip address of your server. And you can add some print to display more detail information.


Thanks a lot for answers!

here so more:
1) How does routing procedure works? I mean does each node know about all network's nodes? does routing static or dynamic?
2) What should i see, when local server works?
3) And where can I see all prints like this

Code:

MESH_DEMO_PRINT("bcast mesh is busy\n");


I'm really glad for your help. I have read a lot pdfs, but cant find out all this questions(


1. Node just knows all the sub-nodes, and routing dynamic.
2. Server will print "mesh server works" as soon as it is available.
3. Mesh just holds one packet from user, before it sends out the packet, it would not hold packet for user.
Before mesh send out data from user, user try to send another packet using mesh, mesh will print "**** mesh is busy"

Statistics: Posted by Guest — Sat May 21, 2016 12:52 pm


]]>
2016-05-21T04:39:53+08:00 2016-05-21T04:39:53+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2137&p=7006#p7006 <![CDATA[Re: MESH_DEMO from github]]>

1. Please use following statement to set serial baut ratio, we have merge the statements and push it on github.
uart_div_modify(0, UART_CLK_FREQ / 9600);
uart_div_modify(1, UART_CLK_FREQ / 9600);
2. The maximum length of mesh packet is 1300.
3. When node receive packet, it's feasible to send packet to MCU with USART.



Dear Alen,

1. We have download from github in what file do we have to put:

uart_div_modify(0, UART_CLK_FREQ / 9600);
uart_div_modify(1, UART_CLK_FREQ / 9600);

2. since uart now only display information about connection with server. Can you guide us where should we change output of UART to just send received packet.


Thx
Regards
Ivan

Statistics: Posted by CipiCips — Sat May 21, 2016 4:39 am


]]>
2016-05-20T17:59:17+08:00 2016-05-20T17:59:17+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2137&p=7001#p7001 <![CDATA[Re: MESH_DEMO from github]]>
Alen wrote:
Nikita Belyaev wrote:Hi everyone!

Can someone ask for this questions:
1) On which OSI layer does mesh protocols works?
2) How to create root node?
3) When I burned my esp8266 with mesh_demo from git, which kind of node I did? And how can I change user data?
4) Why I'm not able to change server IP? Be default its 0.0.0.0 7000. And when it started I cant see anything except "mesh server works"

There are more questions, but I cant go further without understanding of that things))

Thanks for your cooperation!

BR, Nik


1. ESP-Mesh works on application layer based on TCP layer. please refer to document for detail information;
https://github.com/espressif/ESP8266_ME ... ecture.pdf
2. All the node with the same image bin.
3. Mesh support HTTP/JSON/MQTT/BIN data, please refer to demo with json format in mesh_json.c
4. You can set ip address according to factual ip address of your server. And you can add some print to display more detail information.


Thanks a lot for answers!

here so more:
1) How does routing procedure works? I mean does each node know about all network's nodes? does routing static or dynamic?
2) What should i see, when local server works?
3) And where can I see all prints like this

Code:

MESH_DEMO_PRINT("bcast mesh is busy\n");


I'm really glad for your help. I have read a lot pdfs, but cant find out all this questions(

Statistics: Posted by Nikita Belyaev — Fri May 20, 2016 5:59 pm


]]>
2016-05-20T17:31:07+08:00 2016-05-20T17:31:07+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2137&p=6998#p6998 <![CDATA[Re: MESH_DEMO from github]]>
Nikita Belyaev wrote:
Hi everyone!

Can someone ask for this questions:
1) On which OSI layer does mesh protocols works?
2) How to create root node?
3) When I burned my esp8266 with mesh_demo from git, which kind of node I did? And how can I change user data?
4) Why I'm not able to change server IP? Be default its 0.0.0.0 7000. And when it started I cant see anything except "mesh server works"

There are more questions, but I cant go further without understanding of that things))

Thanks for your cooperation!

BR, Nik


1. ESP-Mesh works on application layer based on TCP layer. please refer to document for detail information;
https://github.com/espressif/ESP8266_ME ... ecture.pdf
2. All the node with the same image bin.
3. Mesh support HTTP/JSON/MQTT/BIN data, please refer to demo with json format in mesh_json.c
4. You can set ip address according to factual ip address of your server. And you can add some print to display more detail information.

Statistics: Posted by Guest — Fri May 20, 2016 5:31 pm


]]>
2016-05-19T22:10:15+08:00 2016-05-19T22:10:15+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2137&p=6985#p6985 <![CDATA[Re: MESH_DEMO from github]]>
Can someone ask for this questions:
1) On which OSI layer does mesh protocols works?
2) How to create root node?
3) When I burned my esp8266 with mesh_demo from git, which kind of node I did? And how can I change user data?
4) Why I'm not able to change server IP? Be default its 0.0.0.0 7000. And when it started I cant see anything except "mesh server works"

There are more questions, but I cant go further without understanding of that things))

Thanks for your cooperation!

BR, Nik

Statistics: Posted by Nikita Belyaev — Thu May 19, 2016 10:10 pm


]]>
2016-05-19T20:37:29+08:00 2016-05-19T20:37:29+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2137&p=6984#p6984 <![CDATA[Re: MESH_DEMO from github]]>
CipiCips wrote:
Dear Alen,

Is it possible to set baud rate to 9600 ?

We will try to modify our server to use mesh bcast packet. Is it possible to send string of 20 characters maximum to all nodes ? When node receive packet string of 20 characters is it possible to send that string over USART to MCU ?

Regards
Ivan


1. Please use following statement to set serial baut ratio, we have merge the statements and push it on github.
uart_div_modify(0, UART_CLK_FREQ / 9600);
uart_div_modify(1, UART_CLK_FREQ / 9600);
2. The maximum length of mesh packet is 1300.
3. When node receive packet, it's feasible to send packet to MCU with USART.

Statistics: Posted by Guest — Thu May 19, 2016 8:37 pm


]]>
2016-05-19T19:39:25+08:00 2016-05-19T19:39:25+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2137&p=6982#p6982 <![CDATA[Re: MESH_DEMO from github]]>
Is it possible to set baud rate to 9600 ?

We will try to modify our server to use mesh bcast packet. Is it possible to send string of 20 characters maximum to all nodes ? When node receive packet string of 20 characters is it possible to send that string over USART to MCU ?

Regards
Ivan

Statistics: Posted by CipiCips — Thu May 19, 2016 7:39 pm


]]>
2016-05-19T16:57:22+08:00 2016-05-19T16:57:22+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2137&p=6979#p6979 <![CDATA[Re: MESH_DEMO from github]]> Statistics: Posted by Guest — Thu May 19, 2016 4:57 pm


]]>
2016-05-19T00:38:13+08:00 2016-05-19T00:38:13+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2137&p=6963#p6963 <![CDATA[Re: MESH_DEMO from github]]>
So far we have managed to compile mesh_demo from github repository.
We have flashed two esp-12 modules (one is root node one is client node) with generated files as instructed at README file.

Our question is how can we see is this working, we have run demo_server from mesh demo and all we got is this:

Code:

mesh server works
<__main__.MeshHandler instance at 0x0000000002259248>


From serial monitor we got a lot of information for both esp modules

Code:

free heap:42856
recv entrance
mesh_json_proto_parser
len:27, data:{"req_key":"req_key_val"}

recv entrance
mesh_json_proto_parser
len:31, data:{"mcast":"18:fe:34:da:c0:b3"}

idx: 0, mac:e8:40:f2:47:0e:22
idx: 1, mac:18:fe:34:da:50:3a
recv entrance
mesh_json_proto_parser
len:31, data:{"mcast":"18:fe:34:da:50:3a"}

free heap:42856
recv entrance
mesh_json_proto_parser
len:27, data:{"req_key":"req_key_val"}

recv entrance
mesh_json_proto_parser
len:31, data:{"bcast":"18:fe:34:da:50:3a"}



Regards
Ivan

Statistics: Posted by CipiCips — Thu May 19, 2016 12:38 am


]]>
2016-05-17T18:09:57+08:00 2016-05-17T18:09:57+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2137&p=6944#p6944 <![CDATA[Re: MESH_DEMO from github]]>
CipiCips wrote:
Dear Alen

thx for help, we will try to implement what we need and we will post all questions and problems here.


Any problem, please feel free to post it on BBS.

Statistics: Posted by Guest — Tue May 17, 2016 6:09 pm


]]>
2016-05-16T21:30:43+08:00 2016-05-16T21:30:43+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2137&p=6927#p6927 <![CDATA[Re: MESH_DEMO from github]]>
thx for help, we will try to implement what we need and we will post all questions and problems here.

Statistics: Posted by CipiCips — Mon May 16, 2016 9:30 pm


]]>
2016-05-13T19:03:21+08:00 2016-05-13T19:03:21+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2137&p=6891#p6891 <![CDATA[Re: MESH_DEMO from github]]> Statistics: Posted by Guest — Fri May 13, 2016 7:03 pm


]]>
2016-05-12T19:34:29+08:00 2016-05-12T19:34:29+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2137&p=6865#p6865 <![CDATA[Re: MESH_DEMO from github]]>
CipiCips wrote:
Hello,

I have manage to compile MESH_DEMO from github provided by AlenXiao.

Now I am planning to implement that mesh with few devices that have esp8266 esp-07 connected via RX/TX to microcontroller. My goal is to send from server one data to every node and receive it via UART to the microcontroller.

After programming esp with corresponding files from MESH_DEMO I am unable to figure out how this work. Server from pyton is running and I can only see when something is connected to it.

Are there any guids how to implement something inside this demo, for example adding default baud rate ect.

Thx
Ivan


You can use AT to comunicate between MCU and ESP8266, and you can get AT demo from current non-os-sdk-v1.5.3:
viewtopic.php?f=46&t=2041#p6488

If you plan to use your own server to sent packet to all the node working in mesh, you just build mesh bcast packet, then send the packet to root node, the packet will been forwarded to every node.

Please refer to detail format of mesh packet:
https://github.com/espressif/ESP8266_ME ... r/document

Statistics: Posted by Guest — Thu May 12, 2016 7:34 pm


]]>
2016-05-07T00:36:21+08:00 2016-05-07T00:36:21+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2137&p=6743#p6743 <![CDATA[MESH_DEMO from github]]>
I have manage to compile MESH_DEMO from github provided by AlenXiao.

Now I am planning to implement that mesh with few devices that have esp8266 esp-07 connected via RX/TX to microcontroller. My goal is to send from server one data to every node and receive it via UART to the microcontroller.

After programming esp with corresponding files from MESH_DEMO I am unable to figure out how this work. Server from pyton is running and I can only see when something is connected to it.

Are there any guids how to implement something inside this demo, for example adding default baud rate ect.

Thx
Ivan

Statistics: Posted by CipiCips — Sat May 07, 2016 12:36 am


]]>