• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Fixed] Fast sending codes in a row not working
#1
I'm using latest nightly 7.0-230.
There seems to be an issue sending codes for multiple devices too fast one after another.
I realized this by using a group command via amazon Echo and HUE bridge emulator which is connected to pilight.
I can also reproduce this behavior by manually fast switching of devices via pilight-webgui so the issue seems not to be related to Echo or HUE bridge. The codes sent were recognized by one or no, but never all devices in the group.
This could be related to the issues disscussed in this thread and this thread as this was working fine in previous versions and seems to happen if a device with kaku_dimmer is involved.
I tested this with different intertechno dimmer and switches.
 
Reply
#2
How fast is fast?
 
Reply
#3
As fast as my finger can tap my phones touch :-)
I would say half a second or something.
Switching one after another in normal speed is working fine and reliable.
As I said, I stumbled over this issue when my Echo group command is not switching all related devices anymore.
Doing this "slowly" by hand (Echo or GUI) does work without any problems.
 
Reply
#4
I can confirm this.

some of my rules do not Switch in the real world, althougt the state in Webgui has changed. As if there were no RF sent out.
If i manually take a socket and switch it to on and off repeatly by Webgui, it gets stuck after the 4th cycle.

As mentioned before: were there changes in RAW-Code lenght or Repeats?

But, to be honest: Version .230 with UUID sending is as good as never before, solved many of my Problems... If we get a reliable RF sending, everything will be near perfect;-)
 
Reply
#5
IMHO this is one problem with the receiving device, unable to handle the request.

pilight serializes the transmission but does not artificially adds a delay between transmission requests.

I will not rule out that there is a deadlock condition whenever requests start queuing up, due to the fact that protocols are requesting retransmission on thr RF layer 10 times, in my opinion a value of 4 is sufficient.

@Alex what do you mean ".. Gets stuck after the 4th request .."


send from tapatalk
 
Reply
#6
To be sure we should check with a scope (which i don't have) to see if the rewrite backported 433gpio hardware module is currently slower then replaced one.
 
Reply
#7
Could it be than a may be temporary solution to add a delay between transmission requests? Was this kind of delay implemented in earlier versions and now being removed?
May be this explains that this worked until version 6e03cdd?
 
Reply
#8
@ wo_rasp:

I Switch a Lamp via Webgui on-off-on-off... each cycle 1-1,5 seconds.

It works three to four times, then there is a delay of two to three Switch sequences with nothing happened and after that, it works again.
 
Reply
#9
I can reproduce the problem described in this thread:
https://forum.pilight.org/Thread-Solved-...ot-working

BUT, for what i see, pilight now works too well. Meaning that pilight sends codes too fast and there none of the switches actually switch or sometimes switch. The best practice for a long time is to delay the subsequent switching of multiple devices:

Code:
IF device1.state == on OR device1.state == off THEN switch DEVICE leeslamp TO device2.state AFTER 1 SECOND

In all my tests, the latter works fine.
 
Reply
#10
I can confirm, the workaround with setting up a 1 second delay solved the issue for me
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  regex mask for protocol options not working Niek 2 1,600 01-06-2019, 12:20 AM
Last Post: Niek
  [Solved] Rules switching state based on another device state not working apartmedia 6 2,361 09-27-2017, 01:41 PM
Last Post: apartmedia
  [Solved] Webgui not working in IE Ulrich.Arnold 7 1,647 09-12-2017, 05:22 PM
Last Post: Ulrich.Arnold
  Nightly Version 7.0.217 node not sending Alex 6 1,454 09-05-2017, 08:20 PM
Last Post: curlymo
  [Solved] pilight nightly not sending codes Cipher 10 2,785 08-24-2017, 09:25 PM
Last Post: curlymo

Forum Jump:


Browsing: 1 Guest(s)