Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

P2P stops sending values after a while #2837

Closed
RobertWojtowicz opened this issue Dec 29, 2019 · 3 comments
Closed

P2P stops sending values after a while #2837

RobertWojtowicz opened this issue Dec 29, 2019 · 3 comments
Labels
Status: Needs Info Needs more info before action can be taken

Comments

@RobertWojtowicz
Copy link

Hardware:
Wemos D1 Mini (esp8266, 4MB flash).

Software:
ESP_Easy_mega, normal_ESP8266 for 4MB flash (4M or 4M1M.bin), tested also newest version mega-20191208.

Bugs:

  1. ESPEasy P2P Networking, does not send value to other devices, last working version: mega-20190805;
  2. ESPEasy P2P Networking sometimes crashing when sending values to LCD (no refresh data on LCD). I dont saw problem in old system with old GlobalSync. Restarting device resolve this problem temporarily to next crash;
  3. LCD not display values when sending command over http (cmd, LCD), latest working version mega-20191123). Probably it problem with some string.

Best Reagards,
Robert

@TD-er
Copy link
Member

TD-er commented Dec 29, 2019

Point 1:
Have you tried these steps as described in the documentation ?

Point 2:
What exact plugin settings?
What is crashing? the node or no longer sending p2p values? Is the unit number unique? Always the same IP address?
This sounds like a separate bug, in need of its own issue.

Point 3:
Have you checked this issue: #2724 ?

Extra point:
Please list issues in their own issue as it may be very hard to handle "mixed issues" like this

@TD-er TD-er added the Status: Needs Info Needs more info before action can be taken label Dec 29, 2019
@RobertWojtowicz
Copy link
Author

RobertWojtowicz commented Dec 30, 2019

Point 1: yes

Point 2.
It's very simple, temperature value from virtual sensor (ESPEasy P2P Networking) is display on LCD (i2c, 2x16);
Sometimes problem is with display new values on LCD, show only old value, but when I restart device its works normally to next freeze (crashing).
Yes, units numbers is unique. I use static IP addresses on devices the same as dhcp leases.
But I can't provide more information right now because the device is installed in a family home in another city (Points 1 and 2 refer to the same device).

Point 3 (Device in my home. I have access to device)
I send values from domoticz to esp8266, for example (part of script):
def` get_domoticz_sensor(idx):
url = "http://" + str(cfgAuth) + str(cfgDomoticzHost) + "/json.htm?type=devices&rid=" + str(idx)
response = urllib.urlopen(url);
data = json.loads(response.read())
if data["status"] == "OK":
return data["result"][0]

#Create screens
def ESP_KITCHEN_1():
c.setopt(c.URL, str(cfgEspKitchen) + "lcdcmd,clear")
c.perform()
c.setopt(c.URL, str(cfgEspKitchen) + "lcd,1,1,TEMP1%20OUT:%20" + str(get_domoticz_sensor(29)["Temp"]) + str(cfgDeg))
c.perform()

@TD-er
Copy link
Member

TD-er commented Dec 30, 2019

When the node stops updating values, via p2p, can you check:

  • both nodes are reachable via web page?
  • Wifi has just reconnected?
  • Does it start sending out p2p packets again when you ping the unit?

What do you mean by "static IP" ?

  • The unit gets assigned the same IP via DHCP?
  • It is set to a fixed IP and thus no DHCP is used on the node?

@TD-er TD-er changed the title I found 3 bugs :( P2P stops sending values after a while Dec 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Info Needs more info before action can be taken
Projects
None yet
Development

No branches or pull requests

2 participants