PainlessMesh ESP8266 mesh library for Arduino IDE

gmag11
Posts: 6
Joined: Fri Jan 23, 2015 8:15 pm

PainlessMesh ESP8266 mesh library for Arduino IDE

Postby gmag11 » Thu Jan 12, 2017 5:37 am

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

Dickaa88
Posts: 2
Joined: Sun Jan 29, 2017 6:48 am

Re: PainlessMesh ESP8266 mesh library for Arduino IDE

Postby Dickaa88 » Sun Jan 29, 2017 7:15 am

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

gmag11
Posts: 6
Joined: Fri Jan 23, 2015 8:15 pm

Re: PainlessMesh ESP8266 mesh library for Arduino IDE

Postby gmag11 » Fri Feb 03, 2017 1:13 pm

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

Dickaa88
Posts: 2
Joined: Sun Jan 29, 2017 6:48 am

Re: PainlessMesh ESP8266 mesh library for Arduino IDE

Postby Dickaa88 » Sun Feb 05, 2017 6:31 am

After I deleted easyMesh from my lib-folder it worked.
Thanks

ghisbo
Posts: 2
Joined: Mon Feb 13, 2017 12:01 am

Re: PainlessMesh ESP8266 mesh library for Arduino IDE

Postby ghisbo » Mon Feb 13, 2017 12:22 am

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)?

ghisbo
Posts: 2
Joined: Mon Feb 13, 2017 12:01 am

Re: PainlessMesh ESP8266 mesh library for Arduino IDE

Postby ghisbo » Mon Feb 13, 2017 2:19 am

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

Jamessab
Posts: 1
Joined: Wed Mar 29, 2017 5:28 pm

PainlessMesh ESP8266 mesh library for Arduino IDE

Postby Jamessab » Tue Apr 18, 2017 12:49 am

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.

gmag11
Posts: 6
Joined: Fri Jan 23, 2015 8:15 pm

Re: PainlessMesh ESP8266 mesh library for Arduino IDE

Postby gmag11 » Mon Apr 24, 2017 8:37 pm

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

scropion86
Posts: 1
Joined: Sat Aug 22, 2015 3:11 pm

Re: PainlessMesh ESP8266 mesh library for Arduino IDE

Postby scropion86 » Sat Aug 05, 2017 4:37 pm

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?

gmag11
Posts: 6
Joined: Fri Jan 23, 2015 8:15 pm

Re: PainlessMesh ESP8266 mesh library for Arduino IDE

Postby gmag11 » Sun Aug 06, 2017 5:12 pm

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

Who is online

Users browsing this forum: No registered users and 2 guests