global sync

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
grz3
Normal user
Posts: 36
Joined: 21 Feb 2016, 21:47

global sync

#1 Post by grz3 » 29 Mar 2016, 23:50

Hello I didn't found any info how to use global sync feature. any one to help?
i got 2 esp12, with ds18b20 and OLED. in tools->advances i checked GLOBAL SYNC, and in DEVICES in ds18b20 i also checked gloal sync. how can I display on another esp's these oled values?
thank you

Martinus

Re: global sync

#2 Post by Martinus » 30 Mar 2016, 13:39

Just created an initial Wiki page to get you started: http://www.esp8266.nu/index.php/EasyGlobalSync

grz3
Normal user
Posts: 36
Joined: 21 Feb 2016, 21:47

Re: global sync

#3 Post by grz3 » 30 Mar 2016, 15:35

great wiki, super working now! thank you.

andy
Normal user
Posts: 65
Joined: 26 Jan 2016, 23:07

Re: global sync

#4 Post by andy » 30 Mar 2016, 17:31

Martinus wrote:Just created an initial Wiki page to get you started: http://www.esp8266.nu/index.php/EasyGlobalSync
What a cool feature! If this works the way I hope it does, I've got some great uses for it.

Suppose I have a string of 10 ESP's (ESP-1 thru ESP-10) spaced 15 meters apart. ESP-10 will be 135 m from ESP-1, so presumably out of direct range. If ESP-1 sends a global command, will the ESP's in between relay the message all the way to ESP-10? Does this create a mesh network?

kr0815
Normal user
Posts: 136
Joined: 18 Nov 2015, 18:24

Re: global sync

#5 Post by kr0815 » 30 Mar 2016, 19:50

No, they all will comunicate with / through your access point, the esp is just a network device, doesn´t span a own network

andy
Normal user
Posts: 65
Joined: 26 Jan 2016, 23:07

Re: global sync

#6 Post by andy » 30 Mar 2016, 20:10

kr0815 wrote:No, they all will comunicate with / through your access point, the esp is just a network device, doesn´t span a own network
Fair enough, I can work with that too. Very cool feature.

voyager46
Normal user
Posts: 12
Joined: 24 Mar 2016, 17:15
Location: Germany

Re: global sync

#7 Post by voyager46 » 02 Apr 2016, 19:56

Hi
Global Sync is really a fantastic idea. I have installed R91 on three ESP modules.
Unit 1 = IP 192.168,0.180 has a LCD (as Task 1)
Unit 2 = IP 192.168.0.190 has a OLED (as Task 1)
Unit 3 = IP 192.168.0.192 has a Analog Input Device (as Task 3)
So know upon rebooting i can see all three Modules as they all have the same configuration (Global Sync is checked) as you suggested in your Wiki.
192 sends the Analog value.
190 shows the Analog input in its Devices and can pass the value to the OLED LCD.
But 180 does not show the Analog Input Device.

Any help for me? Thanks.

voyager46
Normal user
Posts: 12
Joined: 24 Mar 2016, 17:15
Location: Germany

Re: global sync

#8 Post by voyager46 » 03 Apr 2016, 20:09

Ok my fault. I have to be more patient. After sometime all modules are seeing the Analog Input Device.
I have extended my module up to 8 now and all are working with Global Sync and passing the values as i wanted.
But still there is something i am not happy about. The speed of the module sending the Analog data has dramatically dropped.
As soon as i switch of one module after the other speed rises again.
Best work is with max. two to three modules. That is really not much.
I am looking in my own PLugIns i have written for PushOver, Prowl and PushingBox for any garbage. Maybe it is the WifiSecureClient i am using for HTTPSRequests.
I'll keep on searching.

tozett
Normal user
Posts: 734
Joined: 22 Dec 2015, 15:46
Location: Germany

Re: global sync

#9 Post by tozett » 14 Apr 2016, 11:24

I am no developer and global Sync is here, but why not improve the MQTT exchange between all units wir the same Sync result?
One needs a Broker, ok. But it seems to me there is than more opportunities in globalsync via MQTT....

voyager46
Normal user
Posts: 12
Joined: 24 Mar 2016, 17:15
Location: Germany

Re: global sync

#10 Post by voyager46 » 14 Apr 2016, 13:14

@tozett
what are you trying to explain ?????????????

tozett
Normal user
Posts: 734
Joined: 22 Dec 2015, 15:46
Location: Germany

Re: global sync

#11 Post by tozett » 14 Apr 2016, 15:14

sorry, if it was not so clear.

the global-sync seems to use UDP and a proprietary Protocol.
i saw reports about performance problems...

there is a promising (playground) MQTT plugin for receiving on ESPeasy-clients and
to use MQTT as Transport-protocoll seems to give more options to use all the exchange-data (and process otherwise too),
and maybe one saves time for bugfixing the propietary proctol and other developer things.

but i am no developer, so thats seems their architectural decision...

voyager46
Normal user
Posts: 12
Joined: 24 Mar 2016, 17:15
Location: Germany

Re: global sync

#12 Post by voyager46 » 15 Apr 2016, 10:51

sorry slipped off the keyboard.
Last edited by voyager46 on 15 Apr 2016, 10:54, edited 2 times in total.

voyager46
Normal user
Posts: 12
Joined: 24 Mar 2016, 17:15
Location: Germany

Re: global sync

#13 Post by voyager46 » 15 Apr 2016, 10:51

Don't you think using a simple HTTP protocol with Domoticz or MySensors could also achieve the same results ?
I had switched off the Global Sync in my ESPEasy modules and am working with the above mentioned without any problem. With a Arduino and mbed (NXP System) Gateway i can pass all the variables i need between each other. The system seems to run reliable, at least for the last week.

tozett
Normal user
Posts: 734
Joined: 22 Dec 2015, 15:46
Location: Germany

Re: global sync

#14 Post by tozett » 18 Apr 2016, 14:52

hi,
i played with mqtt and suprisingly simple i can connect to the broker with any linux/embedded system and get values, wich my sensors collect.
why not put all sensor-data from each espeasy onto mqtt? at least for a (global)-sync?

but the decision is up to the developer, i could only test. not code... :?

Post Reply

Who is online

Users browsing this forum: No registered users and 98 guests