Page 1 of 2

PainlessMesh ESP8266 mesh library for Arduino IDE

Posted: Thu Jan 12, 2017 5:37 am
by gmag11
Hi All,

I am participating in the development of a mesh library called painlessMesh. It is not based on ESP-MESH but on Coopdis easyMesh implementation. As his project seems to be frozen we have fixed a few bugs and implemented some new features.

It's available on https://gitlab.com/BlackEdder/painlessMesh

It offers clock synchronization to be able to execute tasks in different nodes with a common time base. Time accuracy is about 1 ms or even better.
It allows send point to point and broadcast messages.

If you like it feel free to try. Some simple examples are included. Please, any comment, enhancement request is welcomed.

Regards,
Germán

Re: PainlessMesh ESP8266 mesh library for Arduino IDE

Posted: Sun Jan 29, 2017 7:15 am
by Dickaa88
Hello I'd like to use your lib but i can't get two NodeMCU boards connect with the example sketches. I use Arduino IDE 1.8.1
Can U help me please?

Dickaa

Re: PainlessMesh ESP8266 mesh library for Arduino IDE

Posted: Fri Feb 03, 2017 1:13 pm
by gmag11
It should be straightforward. You have to use StartHere.ino example. You may enable debugging by adding DEBUG option to setDebugMsgTypes() call.

You may open an issue in repository if you need more help.

Regards

Re: PainlessMesh ESP8266 mesh library for Arduino IDE

Posted: Sun Feb 05, 2017 6:31 am
by Dickaa88
After I deleted easyMesh from my lib-folder it worked.
Thanks

Re: PainlessMesh ESP8266 mesh library for Arduino IDE

Posted: Mon Feb 13, 2017 12:22 am
by ghisbo
Hello
I would like to use the Painlessmesh for my project but i am in doubt whether and how it can work. I feel i am lacking something fundamental in my knowledge.
description of project:
On a PC ( mac,Linux,..) i want to write a javafx application that speaks to a mesh network of 64 Esp8266.
I do not want the mesh network to take all ip addresses, 1 would be ok.
When i use the startHere example, the ESP sets up a network with ip address that is not in the range of my PC.
How can i address this 1st node from withing my java pc application (and also eventually subsequent nodes)?

Re: PainlessMesh ESP8266 mesh library for Arduino IDE

Posted: Mon Feb 13, 2017 2:19 am
by ghisbo
Hello
I would like to use the Painlessmesh lib for my project. I have 64 ESP8266 that i want to form a mesh and i want to be able to communicate ( broadcast and single) from a pc appication written in javafx.

When i use the starthere sample then the nodes communicate with each other but i cannot communicate from teh pc.
the IP is in another range than my own network.
How can i communicate with the mesh? Is this possible?
I would suppose one node has an ip in the range of my own network but then again, how to addres the different nodes if i have no ip.

Thanks in advance

Ghislain

PainlessMesh ESP8266 mesh library for Arduino IDE

Posted: Tue Apr 18, 2017 12:49 am
by Jamessab
The install process provided by Robert is in fact the recommended one for new third-party boards. This process ends by installing everything in the HOME/.arduino15 folder.

Re: PainlessMesh ESP8266 mesh library for Arduino IDE

Posted: Mon Apr 24, 2017 8:37 pm
by gmag11
Hi,

a computer can connect to any node as they are WiFi APs. But it is neccesary to develop a software on PC that implements mesh protocol to talk to the mesh. This is not an easy task, although BlackEdder hace some code on D language. You can find it on https://github.com/BlackEdder/easyMesheD. I don't know its status, you'll have to ask him.

You can configure a node to leave AP side configurable to implement any other simple protocol for data exchange with PC. Read https://gitlab.com/BlackEdder/painlessMesh/wikis/home for further information.

Regards

ghisbo wrote:Hello
I would like to use the Painlessmesh lib for my project. I have 64 ESP8266 that i want to form a mesh and i want to be able to communicate ( broadcast and single) from a pc appication written in javafx.

When i use the starthere sample then the nodes communicate with each other but i cannot communicate from teh pc.
the IP is in another range than my own network.
How can i communicate with the mesh? Is this possible?
I would suppose one node has an ip in the range of my own network but then again, how to addres the different nodes if i have no ip.

Thanks in advance

Ghislain

Re: PainlessMesh ESP8266 mesh library for Arduino IDE

Posted: Sat Aug 05, 2017 4:37 pm
by scropion86
Hi ,

can i have one of the node connected to the Mesh and in same time maintain a normal TCP/IP connection to send and receive
HTTP requests like a mobile app to control the MESH nodes?

Re: PainlessMesh ESP8266 mesh library for Arduino IDE

Posted: Sun Aug 06, 2017 5:12 pm
by gmag11
scropion86 wrote:Hi ,

can i have one of the node connected to the Mesh and in same time maintain a normal TCP/IP connection to send and receive
HTTP requests like a mobile app to control the MESH nodes?


It has method to start a node with only AP or STA interfaces connected to the mesh. In normal nodes, both interfaces are connected. So you could have a special node with one leg in the mesh and the other side available to your network.

Anyway, I not been in contact with this project for a while, so maybe something has changed. So, I recommend read latest info in GitLab repository and contact current developers there.

Regards