• 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
433nano stops receiving
#1
I'm using pilight with USB nano for quite some time now and I always have problems with receiving. Sendin works all the time, but receiving just stops after minutes or sometimes hours. I can see from the nano LEDs, that messages are still received and sent via USB, but pilight-receive does not show anything. No message written to pilight.err or .log. A restart of pilight-daemon fixes it - for a little while.

First I blamed it on the cheap nano clone I used. But now I use an original Arduino Nano V3 (with FTDI chip) and the problem is still the same. So it must be something in the core software.

Today I was able to catch the problem while running pilight-daemon -D (pilight-daemon version v8.1.5-nightly-4001a911) and the relevant messages are:

Code:
[Oct 29 11:23:57:54759] DEBUG: lua serial read on state #0
[Oct 29 11:23:57:215737]
---- LUA STACKTRACE ----
error: /usr/local/lib/pilight/hardware/433nano.lua:187: attempt to perform arithmetic on a string value
module: /home/pilight/source/daemon-dev/libs/pilight/lua_c/lua.c #2474

[#000] [C]:-1  (metamethod __add)
[#001] /usr/local/lib/pilight/hardware/433nano.lua:187

number of element on stack: 2

1: function
2: function

---- LUA STACKTRACE ----


The referenced line of code is:

Code:
data['pulses'][b] = pulses[stream[i] + 1];

I don't know LUA, but hopefully you can find out what went wrong and fix it.

Thank you,
*Robert
 
Reply
#2
Is this the latest nightly?
 
Reply
#3
No, it's the one before, dated Oct 21, 2019. But there are no changes in 433nano.lua in the latest.
 
Reply
#4
Can you run pilight in debugging mode again after adding:
PHP Code:
print(dump(stream)); 

after line 182 in /usr/local/lib/pilight/hardware/433nano.lua

If it fails again, let me again know the error with the addition of the actual content of the stream array.
 
Reply
#5
Hi curlymo,
as mentioned per mail, I have the same problem with pilight 8.1.5.
This is the output of pilight-debug:

Code:
root@Raspberry-Pi:/home/pi# pilight-debug
Press and hold one of the buttons on your remote or wait until
another device such as a weather station has sent new codes
The debugger will automatically reset itself after one second of
failed leads. It will keep running until you explicitly stop it.
This is done by pressing both the [CTRL] and C buttons on your keyboard.
{
    [1] = 1,
    [2] = 1,
    [3] = 1,
    [4] = 1,
    [5] = 1,
    [6] = 2,
    [7] = 3,
    [8] = 1,
    [9] = 3,
    [10] = 4,
    [11] = 1,
    [12] = 3,
    [13] = 1,
    [14] = 2,
    [15] = 3,
    [16] = 1,
    [17] = 3,
    [18] = 2,
    [19] = 1,
    [20] = 1,
    [21] = 1,
    [22] = 4,
    [23] = 1,
    [24] = 3,
    [25] = 1,
    [26] = 4,
    [27] = 1,
    [28] = 1,
    [29] = 3,
    [30] = 4,
    [31] = 1,
    [32] = 3,
    [33] = 1,
    [34] = 4,
    [35] = 1,
    [36] = 1,
    [37] = 3,
    [38] = 2,
    [39] = 1,
    [40] = 3,
    [41] = 3,
    [42] = 4,
    [43] = 5,
}

470 1940 470 1940 470 1940 470 1940 470 1940 470 2040 470 3960 470 1940 470 3960 470 4020 470 1940 470 3960 470 1940 470 2040 470 3960 470 1940 470 3960 470 2040 470 1940 470 1940 470 1940 470 4020 470 1940 470 3960 470 1940 470 4020 470 1940 470 1940 470 3960 470 4020 470 1940 470 3960 470 1940 470 4020 470 1940 470 1940 470 3960 470 2040 470 1940 470 3960 470 3960 470 4020 470 7800
--[RESULTS]--

time:        Sun Nov 10 00:08:48 2019
hardware:    433nano
pulse:        8
rawlen:        86
pulselen:    229

Raw code:
470 1940 470 1940 470 1940 470 1940 470 1940 470 2040 470 3960 470 1940 470 3960 470 4020 470 1940 470 3960 470 1940 470 2040 470 3960 470 1940 470 3960 470 2040 470 1940 470 1940 470 1940 470 4020 470 1940 470 3960 470 1940 470 4020 470 1940 470 1940 470 3960 470 4020 470 1940 470 3960 470 1940 470 4020 470 1940 470 1940 470 3960 470 2040 470 1940 470 3960 470 3960 470 4020 470 7800
{
    [1] = 1,
    [2] = 1,
    [3] = 1,
    [4] = 1,
    [5] = 1,
    [6] = 2,
    [7] = 3,
    [8] = 1,
    [9] = 3,
    [10] = 4,
    [11] = 1,
    [12] = 3,
    [13] = 2,
    [14] = 2,
    [15] = 3,
    [16] = 1,
    [17] = 3,
    [18] = 2,
    [19] = 1,
    [20] = 1,
    [21] = 2,
    [22] = 4,
    [23] = 2,
    [24] = 3,
    [25] = 2,
    [26] = 4,
    [27] = 2,
    [28] = 2,
    [29] = 3,
    [30] = 4,
    [31] = 2,
    [32] = 3,
    [33] = 2,
    [34] = 4,
    [35] = 2,
    [36] = 2,
    [37] = 3,
    [38] = 2,
    [39] = 2,
    [40] = 3,
    [41] = 3,
    [42] = 4,
    [43] = 5,
}

460 1960 460 1960 460 1960 460 1960 460 1960 460 2060 460 3980 460 1960 460 3980 460 4050 460 1960 460 3980 460 2060 460 2060 460 3980 460 1960 460 3980 460 2060 460 1960 460 1960 460 2060 460 4050 460 2060 460 3980 460 2060 460 4050 460 2060 460 2060 460 3980 460 4050 460 2060 460 3980 460 2060 460 4050 460 2060 460 2060 460 3980 460 2060 460 2060 460 3980 460 3980 460 4050 460 7810
--[RESULTS]--

time:        Sun Nov 10 00:08:48 2019
hardware:    433nano
pulse:        9
rawlen:        86
pulselen:    229

Raw code:
460 1960 460 1960 460 1960 460 1960 460 1960 460 2060 460 3980 460 1960 460 3980 460 4050 460 1960 460 3980 460 2060 460 2060 460 3980 460 1960 460 3980 460 2060 460 1960 460 1960 460 2060 460 4050 460 2060 460 3980 460 2060 460 4050 460 2060 460 2060 460 3980 460 4050 460 2060 460 3980 460 2060 460 4050 460 2060 460 2060 460 3980 460 2060 460 2060 460 3980 460 3980 460 4050 460 7810
{
    [1] = 1,
    [2] = 1,
    [3] = 1,
    [4] = 1,
    [5] = 1,
    [6] = 2,
    [7] = 3,
    [8] = 1,
    [9] = 3,
    [10] = 4,
    [11] = 1,
    [12] = 3,
    [13] = 1,
    [14] = 2,
    [15] = 3,
    [16] = 1,
    [17] = 1,
    [18] = 2,
    [19] = 1,
    [20] = 1,
    [21] = 1,
    [22] = 4,
    [23] = 1,
    [24] = 3,
    [25] = 1,
    [26] = 4,
    [27] = 1,
    [28] = 1,
    [29] = 3,
    [30] = 4,
    [31] = 1,
    [32] = 3,
    [33] = 1,
    [34] = 4,
    [35] = 1,
    [36] = 1,
    [37] = 3,
    [38] = 2,
    [39] = 3,
    [40] = 1,
    [41] = 3,
    [42] = 4,
    [43] = 5,
}

460 1950 460 1950 460 1950 460 1950 460 1950 460 2040 460 3950 460 1950 460 3950 460 4030 460 1950 460 3950 460 1950 460 2040 460 3950 460 1950 460 1950 460 2040 460 1950 460 1950 460 1950 460 4030 460 1950 460 3950 460 1950 460 4030 460 1950 460 1950 460 3950 460 4030 460 1950 460 3950 460 1950 460 4030 460 1950 460 1950 460 3950 460 2040 460 3950 460 1950 460 3950 460 4030 460 7800
--[RESULTS]--

time:        Sun Nov 10 00:13:47 2019
hardware:    433nano
pulse:        9
rawlen:        86
pulselen:    229

Raw code:
460 1950 460 1950 460 1950 460 1950 460 1950 460 2040 460 3950 460 1950 460 3950 460 4030 460 1950 460 3950 460 1950 460 2040 460 3950 460 1950 460 1950 460 2040 460 1950 460 1950 460 1950 460 4030 460 1950 460 3950 460 1950 460 4030 460 1950 460 1950 460 3950 460 4030 460 1950 460 3950 460 1950 460 4030 460 1950 460 1950 460 3950 460 2040 460 3950 460 1950 460 3950 460 4030 460 7800
{
    [1] = 1,
    [2] = 1,
    [3] = 1,
    [4] = 1,
    [5] = 1,
    [6] = 2,
    [7] = 3,
    [8] = 1,
    [9] = 3,
    [10] = 4,
    [11] = 2,
    [12] = 3,
    [13] = 1,
    [14] = 2,
    [15] = 3,
    [16] = 2,
    [17] = 1,
    [18] = 2,
    [19] = 2,
    [20] = 2,
    [21] = 2,
    [22] = 4,
    [23] = 2,
    [24] = 3,
    [25] = 2,
    [26] = 4,
    [27] = 2,
    [28] = 2,
    [29] = 3,
    [30] = 4,
    [31] = 2,
    [32] = 3,
    [33] = 2,
    [34] = 4,
    [35] = 2,
    [36] = 1,
    [37] = 3,
    [38] = 2,
    [39] = 3,
    [40] = 2,
    [41] = 3,
    [42] = 4,
    [43] = 5,
}

450 1970 450 1970 450 1970 450 1970 450 1970 450 2060 450 3980 450 1970 450 3980 450 4050 450 2060 450 3980 450 1970 450 2060 450 3980 450 2060 450 1970 450 2060 450 2060 450 2060 450 2060 450 4050 450 2060 450 3980 450 2060 450 4050 450 2060 450 2060 450 3980 450 4050 450 2060 450 3980 450 2060 450 4050 450 2060 450 1970 450 3980 450 2060 450 3980 450 2060 450 3980 450 4050 450 7810
--[RESULTS]--

time:        Sun Nov 10 00:13:47 2019
hardware:    433nano
pulse:        9
rawlen:        86
pulselen:    229

Raw code:
450 1970 450 1970 450 1970 450 1970 450 1970 450 2060 450 3980 450 1970 450 3980 450 4050 450 2060 450 3980 450 1970 450 2060 450 3980 450 2060 450 1970 450 2060 450 2060 450 2060 450 2060 450 4050 450 2060 450 3980 450 2060 450 4050 450 2060 450 2060 450 3980 450 4050 450 2060 450 3980 450 2060 450 4050 450 2060 450 1970 450 3980 450 2060 450 3980 450 2060 450 3980 450 4050 450 7810
{
    [1] = 1,
    [2] = 1,
    [3] = 1,
    [4] = 1,
    [5] = 1,
    [6] = 2,
    [7] = 3,
    [8] = 1,
    [9] = 3,
    [10] = 4,
    [11] = 1,
    [12] = 3,
    [13] = 1,
    [14] = 2,
    [15] = 1,
    [16] = 3,
    [17] = 3,
    [18] = 4,
    [19] = 1,
    [20] = 1,
    [21] = 1,
    [22] = 4,
    [23] = 1,
    [24] = 3,
    [25] = 1,
    [26] = 4,
    [27] = 1,
    [28] = 1,
    [29] = 3,
    [30] = 4,
    [31] = 1,
    [32] = 3,
    [33] = 1,
    [34] = 4,
    [35] = 1,
    [36] = 1,
    [37] = 3,
    [38] = 2,
    [39] = 3,
    [40] = 3,
    [41] = 3,
    [42] = 4,
    [43] = 5,
}

490 1930 490 1930 490 1930 490 1930 490 1930 490 2030 490 3950 490 1930 490 3950 490 4020 490 1930 490 3950 490 1930 490 2030 490 1930 490 3950 490 3950 490 4020 490 1930 490 1930 490 1930 490 4020 490 1930 490 3950 490 1930 490 4020 490 1930 490 1930 490 3950 490 4020 490 1930 490 3950 490 1930 490 4020 490 1930 490 1930 490 3950 490 2030 490 3950 490 3950 490 3950 490 4020 490 7790
--[RESULTS]--

time:        Sun Nov 10 00:18:46 2019
hardware:    433nano
pulse:        8
rawlen:        86
pulselen:    229

Raw code:
490 1930 490 1930 490 1930 490 1930 490 1930 490 2030 490 3950 490 1930 490 3950 490 4020 490 1930 490 3950 490 1930 490 2030 490 1930 490 3950 490 3950 490 4020 490 1930 490 1930 490 1930 490 4020 490 1930 490 3950 490 1930 490 4020 490 1930 490 1930 490 3950 490 4020 490 1930 490 3950 490 1930 490 4020 490 1930 490 1930 490 3950 490 2030 490 3950 490 3950 490 3950 490 4020 490 7790
{
    [1] = 1,
    [2] = 1,
    [3] = 1,
    [4] = 1,
    [5] = 1,
    [6] = 2,
    [7] = 3,
    [8] = 1,
    [9] = 3,
    [10] = 4,
    [11] = 1,
    [12] = 3,
    [13] = 2,
    [14] = 2,
    [15] = 1,
    [16] = 3,
    [17] = 3,
    [18] = 4,
    [19] = 1,
    [20] = 1,
    [21] = 2,
    [22] = 4,
    [23] = 2,
    [24] = 3,
    [25] = 2,
    [26] = 4,
    [27] = 2,
    [28] = 1,
    [29] = 3,
    [30] = 4,
    [31] = 2,
    [32] = 3,
    [33] = 2,
    [34] = 4,
    [35] = 2,
    [36] = 2,
    [37] = 3,
    [38] = 2,
    [39] = 3,
    [40] = 3,
    [41] = 3,
    [42] = 4,
    [43] = 5,
}

450 1960 450 1960 450 1960 450 1960 450 1960 450 2050 450 3980 450 1960 450 3980 450 4040 450 1960 450 3980 450 2050 450 2050 450 1960 450 3980 450 3980 450 4040 450 1960 450 1960 450 2050 450 4040 450 2050 450 3980 450 2050 450 4040 450 2050 450 1960 450 3980 450 4040 450 2050 450 3980 450 2050 450 4040 450 2050 450 2050 450 3980 450 2050 450 3980 450 3980 450 3980 450 4040 450 7810
--[RESULTS]--

time:        Sun Nov 10 00:18:47 2019
hardware:    433nano
pulse:        9
rawlen:        86
pulselen:    229

Raw code:
450 1960 450 1960 450 1960 450 1960 450 1960 450 2050 450 3980 450 1960 450 3980 450 4040 450 1960 450 3980 450 2050 450 2050 450 1960 450 3980 450 3980 450 4040 450 1960 450 1960 450 2050 450 4040 450 2050 450 3980 450 2050 450 4040 450 2050 450 1960 450 3980 450 4040 450 2050 450 3980 450 2050 450 4040 450 2050 450 2050 450 3980 450 2050 450 3980 450 3980 450 3980 450 4040 450 7810
{
    [1] = 1,
    [2] = 1,
    [3] = 1,
    [4] = 1,
    [5] = 1,
    [6] = 2,
    [7] = 3,
    [8] = 1,
    [9] = 3,
    [10] = 4,
    [11] = 1,
    [12] = 3,
    [13] = 1,
    [14] = 2,
    [15] = 1,
    [16] = 3,
    [17] = 3,
    [18] = 2,
    [19] = 1,
    [20] = 1,
    [21] = 1,
    [22] = 4,
    [23] = 1,
    [24] = 3,
    [25] = 1,
    [26] = 4,
    [27] = 1,
    [28] = 1,
    [29] = 3,
    [30] = 4,
    [31] = 1,
    [32] = 3,
    [33] = 1,
    [34] = 4,
    [35] = 1,
    [36] = 1,
    [37] = 3,
    [38] = 2,
    [39] = 3,
    [40] = 1,
    [41] = 1,
    [42] = 4,
    [43] = 5,
}

470 1940 470 1940 470 1940 470 1940 470 1940 470 2040 470 3950 470 1940 470 3950 470 4030 470 1940 470 3950 470 1940 470 2040 470 1940 470 3950 470 3950 470 2040 470 1940 470 1940 470 1940 470 4030 470 1940 470 3950 470 1940 470 4030 470 1940 470 1940 470 3950 470 4030 470 1940 470 3950 470 1940 470 4030 470 1940 470 1940 470 3950 470 2040 470 3950 470 1940 470 1940 470 4030 470 7800
--[RESULTS]--

time:        Sun Nov 10 00:23:44 2019
hardware:    433nano
pulse:        8
rawlen:        86
pulselen:    229

Raw code:
470 1940 470 1940 470 1940 470 1940 470 1940 470 2040 470 3950 470 1940 470 3950 470 4030 470 1940 470 3950 470 1940 470 2040 470 1940 470 3950 470 3950 470 2040 470 1940 470 1940 470 1940 470 4030 470 1940 470 3950 470 1940 470 4030 470 1940 470 1940 470 3950 470 4030 470 1940 470 3950 470 1940 470 4030 470 1940 470 1940 470 3950 470 2040 470 3950 470 1940 470 1940 470 4030 470 7800
{
    [1] = 1,
    [2] = 1,
    [3] = 1,
    [4] = 1,
    [5] = 2,
    [6] = 2,
    [7] = 3,
    [8] = 1,
    [9] = 3,
    [10] = 4,
    [11] = 2,
    [12] = 3,
    [13] = 1,
    [14] = 2,
    [15] = 2,
    [16] = 3,
    [17] = 3,
    [18] = 2,
    [19] = 2,
    [20] = 2,
    [21] = 2,
    [22] = 4,
    [23] = 2,
    [24] = 3,
    [25] = 2,
    [26] = 4,
    [27] = 2,
    [28] = 2,
    [29] = 3,
    [30] = 4,
    [31] = 2,
    [32] = 3,
    [33] = 2,
    [34] = 4,
    [35] = 2,
    [36] = 2,
    [37] = 3,
    [38] = 2,
    [39] = 3,
    [40] = 1,
    [41] = 2,
    [42] = 5,
    [43] = 6,
}

450 1970 450 1970 450 1970 450 1970 450 2000 450 2000 450 3980 450 1970 450 3980 450 4050 450 2000 450 3980 450 1970 450 2000 450 2000 450 3980 450 3980 450 2000 450 2000 450 2000 450 2000 450 4050 450 2000 450 3980 450 2000 450 4050 450 2000 450 2000 450 3980 450 4050 450 2000 450 3980 450 2000 450 4050 450 2000 450 2000 450 3980 450 2000 450 3980 450 1970 450 2000 450 4100 450 7810
--[RESULTS]--

time:        Sun Nov 10 00:23:45 2019
hardware:    433nano
pulse:        9
rawlen:        86
pulselen:    229

Raw code:
450 1970 450 1970 450 1970 450 1970 450 2000 450 2000 450 3980 450 1970 450 3980 450 4050 450 2000 450 3980 450 1970 450 2000 450 2000 450 3980 450 3980 450 2000 450 2000 450 2000 450 2000 450 4050 450 2000 450 3980 450 2000 450 4050 450 2000 450 2000 450 3980 450 4050 450 2000 450 3980 450 2000 450 4050 450 2000 450 2000 450 3980 450 2000 450 3980 450 1970 450 2000 450 4100 450 7810
{
    [1] = 1,
    [2] = 1,
    [3] = 1,
    [4] = 1,
    [5] = 1,
    [6] = 2,
    [7] = 3,
    [8] = 1,
    [9] = 3,
    [10] = 4,
    [11] = 1,
    [12] = 3,
    [13] = 1,
    [14] = 2,
    [15] = 1,
    [16] = 3,
    [17] = 1,
    [18] = 2,
    [19] = 1,
    [20] = 1,
    [21] = 1,
    [22] = 4,
    [23] = 1,
    [24] = 3,
    [25] = 1,
    [26] = 4,
    [27] = 1,
    [28] = 1,
    [29] = 3,
    [30] = 4,
    [31] = 1,
    [32] = 3,
    [33] = 1,
    [34] = 4,
    [35] = 1,
    [36] = 1,
    [37] = 3,
    [38] = 2,
    [39] = 1,
    [40] = 3,
    [41] = 1,
    [42] = 4,
    [43] = 5,
}

490 1930 490 1930 490 1930 490 1930 490 1930 490 2030 490 3960 490 1930 490 3960 490 4030 490 1930 490 3960 490 1930 490 2030 490 1930 490 3960 490 1930 490 2030 490 1930 490 1930 490 1930 490 4030 490 1930 490 3960 490 1930 490 4030 490 1930 490 1930 490 3960 490 4030 490 1930 490 3960 490 1930 490 4030 490 1930 490 1930 490 3960 490 2030 490 1930 490 3960 490 1930 490 4030 490 7800
--[RESULTS]--

time:        Sun Nov 10 00:28:44 2019
hardware:    433nano
pulse:        8
rawlen:        86
pulselen:    229

Raw code:
490 1930 490 1930 490 1930 490 1930 490 1930 490 2030 490 3960 490 1930 490 3960 490 4030 490 1930 490 3960 490 1930 490 2030 490 1930 490 3960 490 1930 490 2030 490 1930 490 1930 490 1930 490 4030 490 1930 490 3960 490 1930 490 4030 490 1930 490 1930 490 3960 490 4030 490 1930 490 3960 490 1930 490 4030 490 1930 490 1930 490 3960 490 2030 490 1930 490 3960 490 1930 490 4030 490 7800
{
    [1] = 1,
    [2] = 1,
    [3] = 2,
    [4] = 1,
    [5] = 1,
    [6] = 2,
    [7] = 3,
    [8] = 2,
    [9] = 3,
    [10] = 4,
    [11] = 1,
    [12] = 3,
    [13] = 1,
    [14] = 2,
    [15] = 2,
    [16] = 3,
    [17] = 2,
    [18] = 2,
    [19] = 2,
    [20] = 2,
    [21] = 2,
    [22] = 4,
    [23] = 2,
    [24] = 3,
    [25] = 2,
    [26] = 4,
    [27] = 2,
    [28] = 2,
    [29] = 3,
    [30] = 4,
    [31] = 2,
    [32] = 3,
    [33] = 2,
    [34] = 4,
    [35] = 2,
    [36] = 1,
    [37] = 3,
    [38] = 2,
    [39] = 2,
    [40] = 3,
    [41] = 2,
    [42] = 5,
    [43] = 6,
}

450 1960 450 1960 450 2000 450 1960 450 1960 450 2000 450 3980 450 2000 450 3980 450 4040 450 1960 450 3980 450 1960 450 2000 450 2000 450 3980 450 2000 450 2000 450 2000 450 2000 450 2000 450 4040 450 2000 450 3980 450 2000 450 4040 450 2000 450 2000 450 3980 450 4040 450 2000 450 3980 450 2000 450 4040 450 2000 450 1960 450 3980 450 2000 450 2000 450 3980 450 2000 450 4100 450 7820
--[RESULTS]--

time:        Sun Nov 10 00:28:44 2019
hardware:    433nano
pulse:        9
rawlen:        86
pulselen:    230

Raw code:
450 1960 450 1960 450 2000 450 1960 450 1960 450 2000 450 3980 450 2000 450 3980 450 4040 450 1960 450 3980 450 1960 450 2000 450 2000 450 3980 450 2000 450 2000 450 2000 450 2000 450 2000 450 4040 450 2000 450 3980 450 2000 450 4040 450 2000 450 2000 450 3980 450 4040 450 2000 450 3980 450 2000 450 4040 450 2000 450 1960 450 3980 450 2000 450 2000 450 3980 450 2000 450 4100 450 7820
{
    [1] = 1,
    [2] = 1,
    [3] = 1,
    [4] = 1,
    [5] = 1,
    [6] = 2,
    [7] = 3,
    [8] = 1,
    [9] = 3,
    [10] = 4,
    [11] = 1,
    [12] = 3,
    [13] = 1,
    [14] = 2,
    [15] = 1,
    [16] = 1,
    [17] = 3,
    [18] = 2,
    [19] = 2,
    [20] = 1,
    [21] = 1,
    [22] = 4,
    [23] = 2,
    [24] = 3,
    [25] = 5,
    [26] = 4,
    [27] = 2,
    [28] = 2,
    [29] = 3,
    [30] = 4,
    [31] = 2,
    [32] = 3,
    [33] = 1,
    [34] = 4,
    [35] = 2,
    [36] = 2,
    [37] = 3,
    [38] = 2,
    [39] = 1,
    [40] = 2,
    [41] = 3,
    [42] = 5,
    [43] = 6,
}

470 1950 470 1950 470 1950 470 1950 470 1950 470 2050 470 3970 470 1950 470 3970 470 4040 470 1950 470 3970 470 1950 470 2050 470 1950 470 1950 470 3970 470 2050 470 2050 470 1950 470 1950 470 4040 470 2050 470 3970 470 2210 470 4040 470 2050 470 2050 470 3970 470 4040 470 2050 470 3970 470 1950 470 4040 470 2050 470 2050 470 3970 470 2050 470 1950 470 2050 470 3970 470 2210 470 7820
--[RESULTS]--

time:        Sun Nov 10 00:33:43 2019
hardware:    433nano
pulse:        8
rawlen:        86
pulselen:    230

Raw code:
470 1950 470 1950 470 1950 470 1950 470 1950 470 2050 470 3970 470 1950 470 3970 470 4040 470 1950 470 3970 470 1950 470 2050 470 1950 470 1950 470 3970 470 2050 470 2050 470 1950 470 1950 470 4040 470 2050 470 3970 470 2210 470 4040 470 2050 470 2050 470 3970 470 4040 470 2050 470 3970 470 1950 470 4040 470 2050 470 2050 470 3970 470 2050 470 1950 470 2050 470 3970 470 2210 470 7820
{
    [1] = 1,
    [2] = 1,
    [3] = 1,
    [4] = 1,
    [5] = 2,
    [6] = 2,
    [7] = 3,
    [8] = 2,
    [9] = 3,
    [10] = 4,
    [11] = 2,
    [12] = 3,
    [13] = 1,
    [14] = 2,
    [15] = 2,
    [16] = 2,
    [17] = 3,
    [18] = 2,
    [19] = 2,
    [20] = 1,
    [21] = 2,
    [22] = 4,
    [23] = 2,
    [24] = 3,
    [25] = 2,
    [26] = 4,
    [27] = 2,
    [28] = 2,
    [29] = 3,
    [30] = 4,
    [31] = 2,
    [32] = 3,
    [33] = 2,
    [34] = 4,
    [35] = 2,
    [36] = 2,
    [37] = 3,
    [38] = 2,
    [39] = 2,
    [40] = 2,
    [41] = 3,
    [42] = 2,
    [43] = 5,
}

440 1970 440 1970 440 1970 440 1970 440 2000 440 2000 440 3990 440 2000 440 3990 440 4050 440 2000 440 3990 440 1970 440 2000 440 2000 440 2000 440 3990 440 2000 440 2000 440 1970 440 2000 440 4050 440 2000 440 3990 440 2000 440 4050 440 2000 440 2000 440 3990 440 4050 440 2000 440 3990 440 2000 440 4050 440 2000 440 2000 440 3990 440 2000 440 2000 440 2000 440 3990 440 2000 440 8020
--[RESULTS]--

time:        Sun Nov 10 00:33:43 2019
hardware:    433nano
pulse:        8
rawlen:        86
pulselen:    235

Raw code:
440 1970 440 1970 440 1970 440 1970 440 2000 440 2000 440 3990 440 2000 440 3990 440 4050 440 2000 440 3990 440 1970 440 2000 440 2000 440 2000 440 3990 440 2000 440 2000 440 1970 440 2000 440 4050 440 2000 440 3990 440 2000 440 4050 440 2000 440 2000 440 3990 440 4050 440 2000 440 3990 440 2000 440 4050 440 2000 440 2000 440 3990 440 2000 440 2000 440 2000 440 3990 440 2000 440 8020
{
    [1] = 1,
    [2] = 1,
    [3] = 1,
    [4] = 1,
    [5] = 1,
    [6] = 2,
    [7] = 3,
    [8] = 1,
    [9] = 3,
    [10] = 4,
    [11] = 1,
    [12] = 3,
    [13] = 1,
    [14] = 2,
    [15] = 1,
    [16] = 1,
    [17] = 1,
    [18] = 2,
    [19] = 1,
    [20] = 1,
    [21] = 1,
    [22] = 4,
    [23] = 1,
    [24] = 3,
    [25] = 1,
    [26] = 4,
    [27] = 1,
    [28] = 1,
    [29] = 3,
    [30] = 4,
    [31] = 1,
    [32] = 3,
    [33] = 1,
    [34] = 4,
    [35] = 1,
    [36] = 1,
    [37] = 3,
    [38] = 2,
    [39] = 3,
    [40] = 3,
    [41] = 3,
    [42] = 2,
    [43] = 5,
}

470 1940 470 1940 470 1940 470 1940 470 1940 470 2040 470 3960 470 1940 470 3960 470 4030 470 1940 470 3960 470 1940 470 2040 470 1940 470 1940 470 1940 470 2040 470 1940 470 1940 470 1940 470 4030 470 1940 470 3960 470 1940 470 4030 470 1940 470 1940 470 3960 470 4030 470 1940 470 3960 470 1940 470 4030 470 1940 470 1940 470 3960 470 2040 470 3960 470 3960 470 3960 470 2040 470 7800
--[RESULTS]--

time:        Sun Nov 10 00:38:42 2019
hardware:    433nano
pulse:        8
rawlen:        86
pulselen:    229

Raw code:
470 1940 470 1940 470 1940 470 1940 470 1940 470 2040 470 3960 470 1940 470 3960 470 4030 470 1940 470 3960 470 1940 470 2040 470 1940 470 1940 470 1940 470 2040 470 1940 470 1940 470 1940 470 4030 470 1940 470 3960 470 1940 470 4030 470 1940 470 1940 470 3960 470 4030 470 1940 470 3960 470 1940 470 4030 470 1940 470 1940 470 3960 470 2040 470 3960 470 3960 470 3960 470 2040 470 7800
{
    [1] = 1,
    [2] = 1,
    [3] = 1,
    [4] = 1,
    [5] = 1,
    [6] = 2,
    [7] = 3,
    [8] = 1,
    [9] = 3,
    [10] = 4,
    [11] = 1,
    [12] = 3,
    [13] = 1,
    [14] = 2,
    [15] = 2,
    [16] = 2,
    [17] = 1,
    [18] = 2,
    [19] = 2,
    [20] = 2,
    [21] = 2,
    [22] = 4,
    [23] = 2,
    [24] = 3,
    [25] = 2,
    [26] = 4,
    [27] = 2,
    [28] = 1,
    [29] = 3,
    [30] = 4,
    [31] = 2,
    [32] = 3,
    [33] = 2,
    [34] = 4,
    [35] = 2,
    [36] = 2,
    [37] = 3,
    [38] = 2,
    [39] = 3,
    [40] = 3,
    [41] = 3,
    [42] = 5,
    [43] = 6,
}

460 1960 460 1960 460 1960 460 1960 460 1960 460 2060 460 3980 460 1960 460 3980 460 4040 460 1960 460 3980 460 1960 460 2060 460 2060 460 2060 460 1960 460 2060 460 2060 460 2060 460 2060 460 4040 460 2060 460 3980 460 2060 460 4040 460 2060 460 1960 460 3980 460 4040 460 2060 460 3980 460 2060 460 4040 460 2060 460 2060 460 3980 460 2060 460 3980 460 3980 460 3980 460 2100 460 7810
--[RESULTS]--

time:        Sun Nov 10 00:38:43 2019
hardware:    433nano
pulse:        9
rawlen:        86
pulselen:    229

Raw code:
460 1960 460 1960 460 1960 460 1960 460 1960 460 2060 460 3980 460 1960 460 3980 460 4040 460 1960 460 3980 460 1960 460 2060 460 2060 460 2060 460 1960 460 2060 460 2060 460 2060 460 2060 460 4040 460 2060 460 3980 460 2060 460 4040 460 2060 460 1960 460 3980 460 4040 460 2060 460 3980 460 2060 460 4040 460 2060 460 2060 460 3980 460 2060 460 3980 460 3980 460 3980 460 2100 460 7810
{
    [1] = 0,
    [2] = 0,
    [3] = 1,
    [4] = 1,
    [5] = 2,
    [6] = 2,
    [7] = 0,
    [8] = 0,
    [9] = 0,
    [10] = 4,
    [11] = 2,
    [12] = 0,
    [13] = 1,
    [14] = 0,
    [15] = 4,
    [16] = 0,
    [17] = 2,
    [18] = 0,
    [19] = 0,
    [20] = 4,
    [21] = 0,
    [22] = 4,
    [23] = 0,
    [24] = 4,
    [25] = 0,
    [26] = 0,
    [27] = 0,
    [28] = 0,
    [29] = 1,
    [30] = 1,
    [31] = 0,
    [32] = 4,
    [33] = 2,
    [34] = 0,
    [35] = 1,
    [36] = 0,
    [37] = 2,
    [38] = 2,
    [39] = 0,
    [40] = 0,
    [41] = 0,
    [42] = 2,
    [43] = 0,
    [44] = 0,
    [45] = 2,
    [46] = 0,
    [47] = 5,
    [48] = 0,
    [49] = 4,
    [50] = 0,
    [51] = 2,
    [52] = 0,
    [53] = 0,
    [54] = 5,
    [55] = 0,
    [56] = 1,
    [57] = 1,
    [58] = 2,
    [59] = 0,
    [60] = 0,
    [61] = 0,
    [62] = 2,
    [63] = 0,
    [64] = 4,
    [65] = 4,
    [66] = 0,
    [67] = 0,
    [68] = 0,
    [69] = 2,
    [70] = 4,
    [71] = 4,
    [72] = 0,
    [73] = 0,
    [74] = 4,
    [75] = 0,
    [76] = 5,
    [77] = 0,
    [78] = 0,
    [79] = 2,
    [80] = 0,
    [81] = 5,
    [82] = 0,
    [83] = 4,
    [84] = 2,
    [85] = 0,
    [86] = 0,
    [87] = 0,
    [88] = 2,
    [89] = 6,
}

110 110 110 110 110 810 110 810 110 390 110 390 110 110 110 110 110 110 110 440 110 390 110 110 110 810 110 110 110 440 110 110 110 390 110 110 110 110 110 440 110 110 110 440 110 110 110 440 110 110 110 110 110 110 110 110 110 810 110 810 110 110 110 440 110 390 110 110 110 810 110 110 110 390 110 390 110 110 110 110 110 110 110 390 110 110 110 110 110 390 110 110 110 540 110 110 110 440 110 110 110 390 110 110 110 110 110 540 110 110 110 810 110 810 110 390 110 110 110 110 110 110 110 390 110 110 110 440 110 440 110 110 110 110 110 110 110 390 110 440 110 440 110 110 110 110 110 440 110 110 110 540 110 110 110 110 110 390 110 110 110 540 110 110 110 440 110 390 110 110 110 110 110 110 110 390 110 6610
--[RESULTS]--

time:        Sun Nov 10 00:41:52 2019
hardware:    433nano
pulse:        4
rawlen:        178
pulselen:    194

Raw code:
110 110 110 110 110 810 110 810 110 390 110 390 110 110 110 110 110 110 110 440 110 390 110 110 110 810 110 110 110 440 110 110 110 390 110 110 110 110 110 440 110 110 110 440 110 110 110 440 110 110 110 110 110 110 110 110 110 810 110 810 110 110 110 440 110 390 110 110 110 810 110 110 110 390 110 390 110 110 110 110 110 110 110 390 110 110 110 110 110 390 110 110 110 540 110 110 110 440 110 110 110 390 110 110 110 110 110 540 110 110 110 810 110 810 110 390 110 110 110 110 110 110 110 390 110 110 110 440 110 440 110 110 110 110 110 110 110 390 110 440 110 440 110 110 110 110 110 440 110 110 110 540 110 110 110 110 110 390 110 110 110 540 110 110 110 440 110 390 110 110 110 110 110 110 110 390 110 6610
{
    [1] = 1,
    [2] = 1,
    [3] = 1,
    [4] = 1,
    [5] = 1,
    [6] = 2,
    [7] = 3,
    [8] = 1,
    [9] = 3,
    [10] = 4,
    [11] = 1,
    [12] = 3,
    [13] = 1,
    [14] = 2,
    [15] = 1,
    [16] = 1,
    [17] = 1,
    [18] = 2,
    [19] = 1,
    [20] = 1,
    [21] = 1,
    [22] = 4,
    [23] = 1,
    [24] = 3,
    [25] = 1,
    [26] = 4,
    [27] = 1,
    [28] = 3,
    [29] = 1,
    [30] = 2,
    [31] = 1,
    [32] = 3,
    [33] = 1,
    [34] = 4,
    [35] = 1,
    [36] = 1,
    [37] = 3,
    [38] = 2,
    [39] = 2,
    [40] = 3,
    [41] = 3,
    [42] = 2,
    [43] = 5,
}

480 1940 480 1940 480 1940 480 1940 480 1940 480 2040 480 3950 480 1940 480 3950 480 4030 480 1940 480 3950 480 1940 480 2040 480 1940 480 1940 480 1940 480 2040 480 1940 480 1940 480 1940 480 4030 480 1940 480 3950 480 1940 480 4030 480 1940 480 3950 480 1940 480 2040 480 1940 480 3950 480 1940 480 4030 480 1940 480 1940 480 3950 480 2040 480 2040 480 3950 480 3950 480 2040 480 7800
--[RESULTS]--

time:        Sun Nov 10 00:43:40 2019
hardware:    433nano
pulse:        8
rawlen:        86
pulselen:    229

Raw code:
480 1940 480 1940 480 1940 480 1940 480 1940 480 2040 480 3950 480 1940 480 3950 480 4030 480 1940 480 3950 480 1940 480 2040 480 1940 480 1940 480 1940 480 2040 480 1940 480 1940 480 1940 480 4030 480 1940 480 3950 480 1940 480 4030 480 1940 480 3950 480 1940 480 2040 480 1940 480 3950 480 1940 480 4030 480 1940 480 1940 480 3950 480 2040 480 2040 480 3950 480 3950 480 2040 480 7800
{
    [1] = 1,
    [2] = 1,
    [3] = 1,
    [4] = 1,
    [5] = 2,
    [6] = 2,
    [7] = 3,
    [8] = 2,
    [9] = 3,
    [10] = 4,
    [11] = 2,
    [12] = 3,
    [13] = 2,
    [14] = 2,
    [15] = 2,
    [16] = 2,
    [17] = 2,
    [18] = 2,
    [19] = 2,
    [20] = 2,
    [21] = 2,
    [22] = 4,
    [23] = 2,
    [24] = 3,
    [25] = 2,
    [26] = 4,
    [27] = 2,
    [28] = 3,
    [29] = 2,
    [30] = 2,
    [31] = 2,
    [32] = 3,
    [33] = 2,
    [34] = 4,
    [35] = 1,
    [36] = 2,
    [37] = 3,
    [38] = 2,
    [39] = 2,
    [40] = 3,
    [41] = 3,
    [42] = 5,
    [43] = 6,
}

440 1980 440 1980 440 1980 440 1980 440 2000 440 2000 440 3980 440 2000 440 3980 440 4050 440 2000 440 3980 440 2000 440 2000 440 2000 440 2000 440 2000 440 2000 440 2000 440 2000 440 2000 440 4050 440 2000 440 3980 440 2000 440 4050 440 2000 440 3980 440 2000 440 2000 440 2000 440 3980 440 2000 440 4050 440 1980 440 2000 440 3980 440 2000 440 2000 440 3980 440 3980 440 2110 440 7810
--[RESULTS]--

time:        Sun Nov 10 00:43:41 2019
hardware:    433nano
pulse:        9
rawlen:        86
pulselen:    229

Raw code:
440 1980 440 1980 440 1980 440 1980 440 2000 440 2000 440 3980 440 2000 440 3980 440 4050 440 2000 440 3980 440 2000 440 2000 440 2000 440 2000 440 2000 440 2000 440 2000 440 2000 440 2000 440 4050 440 2000 440 3980 440 2000 440 4050 440 2000 440 3980 440 2000 440 2000 440 2000 440 3980 440 2000 440 4050 440 1980 440 2000 440 3980 440 2000 440 2000 440 3980 440 3980 440 2110 440 7810
{
    [1] = 1,
    [2] = 1,
    [3] = 1,
    [4] = 1,
    [5] = 1,
    [6] = 2,
    [7] = 3,
    [8] = 1,
    [9] = 3,
    [10] = 4,
    [11] = 1,
    [12] = 3,
    [13] = 1,
    [14] = 2,
    [15] = 3,
    [16] = 3,
    [17] = 3,
    [18] = 4,
    [19] = 1,
    [20] = 1,
    [21] = 1,
    [22] = 2,
    [23] = 1,
    [24] = 3,
    [25] = 1,
    [26] = 4,
    [27] = 1,
    [28] = 1,
    [29] = 3,
    [30] = 4,
    [31] = 1,
    [32] = 3,
    [33] = 1,
    [34] = 4,
    [35] = 1,
    [36] = 1,
    [37] = 3,
    [38] = 2,
    [39] = 3,
    [40] = 1,
    [41] = 1,
    [42] = 2,
    [43] = 5,
}

470 1950 470 1950 470 1950 470 1950 470 1950 470 2040 470 3960 470 1950 470 3960 470 4010 470 1950 470 3960 470 1950 470 2040 470 3960 470 3960 470 3960 470 4010 470 1950 470 1950 470 1950 470 2040 470 1950 470 3960 470 1950 470 4010 470 1950 470 1950 470 3960 470 4010 470 1950 470 3960 470 1950 470 4010 470 1950 470 1950 470 3960 470 2040 470 3960 470 1950 470 1950 470 2040 470 7790
--[RESULTS]--

time:        Sun Nov 10 00:48:40 2019
hardware:    433nano
pulse:        9
rawlen:        86
pulselen:    229

Raw code:
470 1950 470 1950 470 1950 470 1950 470 1950 470 2040 470 3960 470 1950 470 3960 470 4010 470 1950 470 3960 470 1950 470 2040 470 3960 470 3960 470 3960 470 4010 470 1950 470 1950 470 1950 470 2040 470 1950 470 3960 470 1950 470 4010 470 1950 470 1950 470 3960 470 4010 470 1950 470 3960 470 1950 470 4010 470 1950 470 1950 470 3960 470 2040 470 3960 470 1950 470 1950 470 2040 470 7790
{
    [1] = 1,
    [2] = 1,
    [3] = 2,
    [4] = 2,
    [5] = 1,
    [6] = 2,
    [7] = 3,
    [8] = 1,
    [9] = 3,
    [10] = 4,
    [11] = 1,
    [12] = 3,
    [13] = 2,
    [14] = 2,
    [15] = 3,
    [16] = 3,
    [17] = 3,
    [18] = 4,
    [19] = 1,
    [20] = 2,
    [21] = 1,
    [22] = 2,
    [23] = 1,
    [24] = 3,
    [25] = 2,
    [26] = 4,
    [27] = 2,
    [28] = 2,
    [29] = 3,
    [30] = 4,
    [31] = 2,
    [32] = 3,
    [33] = 2,
    [34] = 4,
    [35] = 1,
    [36] = 2,
    [37] = 3,
    [38] = 2,
    [39] = 3,
    [40] = 2,
    [41] = 1,
    [42] = 5,
    [43] = 6,
}

440 1970 440 1970 440 2000 440 2000 440 1970 440 2000 440 3980 440 1970 440 3980 440 4040 440 1970 440 3980 440 2000 440 2000 440 3980 440 3980 440 3980 440 4040 440 1970 440 2000 440 1970 440 2000 440 1970 440 3980 440 2000 440 4040 440 2000 440 2000 440 3980 440 4040 440 2000 440 3980 440 2000 440 4040 440 1970 440 2000 440 3980 440 2000 440 3980 440 2000 440 1970 440 2110 440 7810
--[RESULTS]--

time:        Sun Nov 10 00:48:40 2019
hardware:    433nano
pulse:        9
rawlen:        86
pulselen:    229

Raw code:
440 1970 440 1970 440 2000 440 2000 440 1970 440 2000 440 3980 440 1970 440 3980 440 4040 440 1970 440 3980 440 2000 440 2000 440 3980 440 3980 440 3980 440 4040 440 1970 440 2000 440 1970 440 2000 440 1970 440 3980 440 2000 440 4040 440 2000 440 2000 440 3980 440 4040 440 2000 440 3980 440 2000 440 4040 440 1970 440 2000 440 3980 440 2000 440 3980 440 2000 440 1970 440 2110 440 7810
{
    [1] = 1,
    [2] = 1,
    [3] = 1,
    [4] = 1,
    [5] = 1,
    [6] = 2,
    [7] = 3,
    [8] = 1,
    [9] = 3,
    [10] = 4,
    [11] = 1,
    [12] = 1,
    [13] = 1,
    [14] = 2,
    [15] = 3,
    [16] = 3,
    [17] = 1,
    [18] = 4,
    [19] = 1,
    [20] = 1,
    [21] = 1,
    [22] = 2,
    [23] = 1,
    [24] = 3,
    [25] = 1,
    [26] = 4,
    [27] = 1,
    [28] = 1,
    [29] = 3,
    [30] = 4,
    [31] = 1,
    [32] = 3,
    [33] = 1,
    [34] = 4,
    [35] = 1,
    [36] = 1,
    [37] = 3,
    [38] = 2,
    [39] = 3,
    [40] = 1,
    [41] = 3,
    [42] = 5,
    [43] = 6,
}

470 1940 470 1940 470 1940 470 1940 470 1940 470 2030 470 3940 470 1940 470 3940 470 4010 470 1940 470 1940 470 1940 470 2030 470 3940 470 3940 470 1940 470 4010 470 1940 470 1940 470 1940 470 2030 470 1940 470 3940 470 1940 470 4010 470 1940 470 1940 470 3940 470 4010 470 1940 470 3940 470 1940 470 4010 470 1940 470 1940 470 3940 470 2030 470 3940 470 1940 470 3940 470 2100 470 7790
--[RESULTS]--

time:        Sun Nov 10 00:53:39 2019
hardware:    433nano
pulse:        8
rawlen:        86
pulselen:    229

Raw code:
470 1940 470 1940 470 1940 470 1940 470 1940 470 2030 470 3940 470 1940 470 3940 470 4010 470 1940 470 1940 470 1940 470 2030 470 3940 470 3940 470 1940 470 4010 470 1940 470 1940 470 1940 470 2030 470 1940 470 3940 470 1940 470 4010 470 1940 470 1940 470 3940 470 4010 470 1940 470 3940 470 1940 470 4010 470 1940 470 1940 470 3940 470 2030 470 3940 470 1940 470 3940 470 2100 470 7790
{
    [1] = 1,
    [2] = 1,
    [3] = 1,
    [4] = 1,
    [5] = 1,
    [6] = 2,
    [7] = 3,
    [8] = 1,
    [9] = 3,
    [10] = 4,
    [11] = 1,
    [12] = 2,
    [13] = 1,
    [14] = 2,
    [15] = 3,
    [16] = 3,
    [17] = 1,
    [18] = 4,
    [19] = 2,
    [20] = 2,
    [21] = 2,
    [22] = 2,
    [23] = 2,
    [24] = 3,
    [25] = 2,
    [26] = 4,
    [27] = 1,
    [28] = 2,
    [29] = 3,
    [30] = 4,
    [31] = 2,
    [32] = 3,
    [33] = 2,
    [34] = 4,
    [35] = 1,
    [36] = 1,
    [37] = 3,
    [38] = 2,
    [39] = 3,
    [40] = 2,
    [41] = 3,
    [42] = 5,
    [43] = 6,
}

450 1970 450 1970 450 1970 450 1970 450 1970 450 2060 450 3980 450 1970 450 3980 450 4040 450 1970 450 2060 450 1970 450 2060 450 3980 450 3980 450 1970 450 4040 450 2060 450 2060 450 2060 450 2060 450 2060 450 3980 450 2060 450 4040 450 1970 450 2060 450 3980 450 4040 450 2060 450 3980 450 2060 450 4040 450 1970 450 1970 450 3980 450 2060 450 3980 450 2060 450 3980 450 2110 450 7800
--[RESULTS]--

time:        Sun Nov 10 00:53:39 2019
hardware:    433nano
pulse:        9
rawlen:        86
pulselen:    229

Raw code:
450 1970 450 1970 450 1970 450 1970 450 1970 450 2060 450 3980 450 1970 450 3980 450 4040 450 1970 450 2060 450 1970 450 2060 450 3980 450 3980 450 1970 450 4040 450 2060 450 2060 450 2060 450 2060 450 2060 450 3980 450 2060 450 4040 450 1970 450 2060 450 3980 450 4040 450 2060 450 3980 450 2060 450 4040 450 1970 450 1970 450 3980 450 2060 450 3980 450 2060 450 3980 450 2110 450 7800
{
    [1] = 0,
    [2] = 0,
    [3] = 0,
    [4] = 0,
    [5] = 0,
    [6] = 1,
    [7] = 0,
    [8] = 0,
    [9] = 0,
    [10] = 1,
    [11] = 0,
    [12] = 2,
    [13] = 4,
    [14] = 0,
    [15] = 4,
    [16] = 5,
    [17] = 6,
    [18] = 7,
    [19] = 8,
    [20] = 0,
    [21] = 0,
    [22] = 4,
    [23] = 0,
    [24] = 0,
    [25] = 4,
    [26] = 0,
    [27] = 4,
    [28] = 0,
    [29] = 3,
    [30] = 0,
    [31] = 0,
    [32] = 6,
    [33] = 0,
    [34] = 4,
    [35] = 4,
    [36] = 0,
    [37] = 4,
    [38] = 3,
    [39] = 1,
    [40] = 4,
    [41] = 4,
    [42] = 4,
    [43] = 0,
    [44] = 4,
    [45] = 4,
    [46] = 4,
    [47] = 0,
    [48] = 4,
    [49] = 4,
    [50] = 4,
    [51] = 0,
    [52] = 0,
    [53] = 2,
    [54] = 7,
    [55] = 4,
    [56] = 0,
    [57] = 4,
    [58] = 4,
    [59] = 0,
    [60] = 0,
    [61] = 0,
    [62] = 0,
    [63] = 0,
    [64] = 0,
    [65] = 0,
    [66] = 4,
    [67] = 4,
    [68] = 4,
    [69] = 0,
    [70] = 8,
    [71] = 4,
    [72] = 1,
    [73] = 1,
    [74] = :,
}
(/home/pilight/source/daemon-dev/libs/pilight/lua_c/lua.c #2591) [Nov 09 23:54:43:337701] ERROR:
---- LUA STACKTRACE ----
error: /usr/local/lib/pilight/hardware/433nano.lua:185: attempt to perform arithmetic on a string value
module: /home/pilight/source/daemon-dev/libs/pilight/lua_c/io/serial.c #372

[#000] [C]:-1  (metamethod __add)
[#001] /usr/local/lib/pilight/hardware/433nano.lua:185

number of element on stack: 2

1: function
2: function

---- LUA STACKTRACE ----


I hope this will help you to fix the issue.

Thanks and regards
Richard
 
Reply
#6
The bug is clear and what caused the bug is clear as well. However, to be able to fix it, i need a little more info. Can you remove the other debugging line and place the following on line #85
PHP Code:
print(dump(data)); 
 
Reply
#7
Ok, I hopefully logged the information needed. Something I recognized is that the empty lines after ["content"] are increasing until new data is received. Therefore, the log file is too long to post here, so I attached it as a zip file.


Attached Files
.zip   pilight-debug.txt.zip (Size: 30.03 KB / Downloads: 4)
 
Reply
#8
Can you try replacing the content of the 433nano.lua file with the following:
PHP Code:
--
-- 
Copyright (CCurlyMo
--
-- 
This Source Code Form is subject to the terms of the Mozilla Public
-- 
Licensev2.0. If a copy of the MPL was not distributed with this
-- fileYou can obtain one at http://mozilla.org/MPL/2.0/.
--

local dump = require "dump";
local lookup = require "lookup";

local M = {}

function 
M.timer(timer)
    
local config pilight.config();
    
local data config.getData();
    
local port lookup(data 'hardware''433nano''comport') or nil;
    
local data1 timer.getUserdata();
    
data1['write'] = 0;

    if 
port == nil then
        
return;
    
end

    local serial 
pilight.io.serial(port);
    if 
serial.open() == false then
        pilight
.log(LOG_ERR"could not connect to device \"" .. port .. "\"");
        return;
    
end
    serial
.read();
    
timer.stop();
end

function M.send(objreasondata)
    if 
reason ~= pilight.reason.SEND_CODE then
        
return;
    
end

    local config 
pilight.config();
    
local data1 config.getData();

    
local code "c:";
    
local match = -1;
    
local pulses = {};

    for 
i in pairs(data['pulses']) do
        
match = -1;
        
local x 0;
        for 
x in pairs(pulses) do
            if 
pulses[x] == data['pulses'][ithen
                match 
x;
                break;
            
end
        end
        
if match == -1 then
            pulses
[#pulses + 1] = data['pulses'][i];
            
code code .. tostring(#pulses - 1);
        
else
            
code code .. tostring(match 1);
        
end
    end
    code 
code .. ";p:";
    for 
x in pairs(pulses) do
        
code code .. tostring(pulses[x])
        if 
#pulses then
            
code code .. ","
        
end
    end
    code 
code .. ";r:" .. data['txrpt'] .. "@";

    
local port data1['hardware']['433nano']['comport'];

    
local serial pilight.io.serial(port);
    
serial.write(code);
end

function invalid_stream(data)
    
pilight.log(LOG_NOTICE"433nano: received invalid stream \'" .. data['content'] .. "'");

    
data['pulses'] = {};
    
data['length'] = 0;
    
data['content'] = '';
    
data['write'] = 2;
end

function M.callback(rwserialline)
    if 
line == nil then
        
return;
    
end

    
if rw == 'read' then
        
if #line > 0 or line == '\n' then
            
local data serial.getUserdata();

            if 
line == '\n' and data['write'] == 0 then
                data
['write'] = 1;
            
end

            
if data['write'] == 1 then
                data
['write'] = 2;
                
local config pilight.config();
                
local data1 config.getData();
                
local minrawlen lookup(data1'registry''hardware''RF433''minrawlen') or 0;
                
local maxrawlen lookup(data1'registry''hardware''RF433''maxrawlen') or 0;
                
local mingaplen lookup(data1'registry''hardware''RF433''mingaplen') or 0;
                
local maxgaplen lookup(data1'registry''hardware''RF433''maxgaplen') or 0;
                
serial.write("s:" .. minrawlen .. "," .. maxrawlen .. "," .. 5200 .. "," .. maxgaplen .. "@");
            
end

            
if data['content'] == nil then
                data
['content'] = "";
            
end

            
if line ~= '\n' then
                data
['content'] = data['content'] .. line;
            
end

            local a 
#data['content'];
            
local l a;

            while 
true do
                for 
1ldo
                    if 
string.sub(data['content'], ii) == '@' then
                        l 
i;
                        break;
                    
end
                end

                
if == a then
                    
break;
                
end

                local c 
string.sub(data['content'], ll);
                if 
== '@' then
                    content 
string.sub(data['content'], 1l)

                    
data['content'] = string.sub(data['content'], l+1a);
                    
#data['content'];

                    
local stream = {};
                    
local pulses = {};
                    for 
1ldo
                        
string.sub(contentii);
                        if 
== 'c' then
                            
if string.sub(contenti+1i+1) == ':' then
                                i 
1;
                                for 
ildo
                                    
string.sub(contentx+1x+1);
                                    if 
== ';' then
                                        i 
2;
                                        break;
                                    
end
                                    
if type(tonumber(c)) ~= 'number' then
                                        invalid_stream
(data);
                                        return;
                                    
end
                                    stream
[#stream+1] = c;
                                
end
                            
else
                                
serial.read();
                                return;
                            
end
                        end
                        
if == 'p' then
                            
if string.sub(contenti+1i+1) == ':' then
                                i 
1;
                                for 
ildo
                                    
string.sub(contentx+1x+1);

                                    if 
== ';' then
                                        i 
2;
                                        break;
                                    
end

                                    
if == ',' or == '@' then
                                        c 
string.sub(contenti+1x);

                                        
1;
                                        if 
== '@' or == ';' then
                                            i 
1;
                                            break;
                                        
end
                                        
if type(tonumber(c)) ~= 'number' then
                                            invalid_stream
(data);
                                            return;
                                        
end
                                        pulses
[#pulses+1] = tonumber(c);
                                    
end
                                end
                            
else
                                
serial.read();
                                return;
                            
end
                        end
                        
if == 'v' then
                            
-- pilight usb nano initialized
                        end
                    end
                    l 
a;

                    if 
data['length'] == nil then
                        data
['length'] = 0;
                    
end
                    
if data['pulses'] == nil then
                        data
['pulses'] = {};
                    
end

                    
if #stream > 0 then
                        
local b 1;
                        for 
1#stream, 1 do
                            
data['pulses'][b] = pulses[1];
                            
1;
                            
data['pulses'][b] = pulses[stream[i] + 1];
                            
1;
                        
end

                        data
['length'] = b-1;
                        
local tmp data['content'];
                        
data['content'] = nil;
                        
data['write'] = nil;

                        
local event pilight.async.event();
                        
event.register(pilight.reason.RECEIVED_PULSETRAIN);
                        
event.trigger(getmetatable(data)());

                        
data['pulses'] = {};
                        
data['length'] = 0;
                        
data['content'] = tmp;
                        
data['write'] = 2;
                    
end
                end
            end
        end
        serial
.read();
    elseif 
rw == 'disconnect' then
        local timer 
pilight.async.timer();
        
timer.setUserdata(serial.getUserdata()());
        
timer.setCallback("timer");
        
timer.setTimeout(1000);
        
timer.setRepeat(1000);
        
timer.start();
    
end
end

function M.validate()
    
local config pilight.config();
    
local data config.getData();
    
local obj nil;
    
local settings lookup(data'hardware''433nano') or nil;

    if 
settings == nil then
        
return;
    
end

    
for x in pairs(settings) do
        if 
~= 'comport' then
            pilight
.log(LOG_ERR.. "is an unknown parameter")
        
end
    end

    local port 
lookup(data'hardware''433nano''comport') or nil;

    if 
port == nil then
        pilight
.log(LOG_ERR"comport parameter is missing");
    
end

    file 
pilight.io.file(port);

    if 
file.exists() == false then
        pilight
.log(LOG_ERRport .. " does not exist");
    
end

    
if file.open("a+") == false then
        pilight
.log(LOG_ERRport .. " cannot be opened for reading and/or writing");
    
end
    file
.close();
end

function M.run()
    
local config pilight.config();
    
local data config.getData();
    
local obj nil;
    
local port lookup(data'hardware''433nano''comport') or nil;

    if 
port == nil then
        pilight
.log(LOG_ERR"comport parameter is missing");
    
end

    local serial 
pilight.io.serial(port);
    
serial.setBaudrate(57600);
    
serial.setParity('n');
    
serial.setCallback("callback");
    if 
serial.open() == false then
        pilight
.log(LOG_ERR"could not connect to device \"" .. port .. "\"");
    
end
    serial
.read();

    
local data serial.getUserdata();
    
data['write'] = 0;
    
data['hardware'] = '433nano';

    
local event pilight.async.event();
    
event.register(pilight.reason.SEND_CODE);
    
event.setCallback("send");

    return 
1;
end

function M.implements()
    return 
pilight.hardware.RF433;
end

function M.info()
    return {
        
name "433nano",
        
version "4.1",
        
reqversion "7.0",
        
reqcommit "94"
    
}
end

return M
 
Reply
#9
I think it's fixed. pilight.log now outputs:

Code:
(/home/pilight/source/daemon-dev/daemon.c #3082) [Nov 10 17:47:25:741506] INFO: version v8.1.5
(/home/pilight/source/daemon-dev/daemon.c #3151) [Nov 10 17:47:25:848557] INFO: no pilight daemon found, daemonizing
(/home/pilight/source/daemon-dev/libs/pilight/core/socket.c #168) [Nov 10 17:47:25:876811] INFO: daemon listening to port: 5003
(/home/pilight/source/daemon-dev/libs/pilight/core/socket.c #577) [Nov 10 17:47:25:923921] INFO: new client, ip: 127.0.0.1, port: 56086
(/home/pilight/source/daemon-dev/libs/pilight/core/webserver.c #1889) [Nov 10 17:47:25:950044] INFO: secured webserver started on port: 5002 (fd 13)
(/home/pilight/source/daemon-dev/libs/pilight/core/webserver.c #1892) [Nov 10 17:47:25:951012] INFO: regular webserver started on port: 5001 (fd 17)
(/home/pilight/source/daemon-dev/libs/pilight/core/socket.c #577) [Nov 10 17:47:26:59276] INFO: new client, ip: 192.168.150.25, port: 54002
(/home/pilight/source/daemon-dev/libs/pilight/core/socket.c #577) [Nov 10 17:48:20:13670] INFO: new client, ip: 127.0.0.1, port: 56090
(/home/pilight/source/daemon-dev/libs/pilight/lua_c/log.c #73) [Nov 10 20:14:33:507598] NOTICE: 433nano: received invalid stream 'c:111112313'
and it's still working.
 
Reply
#10
In the old situation pilight didn't crash either, it just outputted an error. What i'm also interested in is if you aren't encountering any issues in reception.
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  communication between main daemon and clientized daemon stops tomk 29 2,110 05-06-2019, 08:57 PM
Last Post: curlymo
Bug Bug report: WIFI dongle stops when gpio_switch.gpio = 20 woutput 16 5,294 01-03-2018, 10:11 PM
Last Post: zackdvd
  pilight for dummies? receiving door contact state DazRave 7 4,269 10-03-2014, 10:01 PM
Last Post: creamers
  Sending and receiving at the same time geerttttt 2 1,777 07-09-2014, 01:12 AM
Last Post: scorpydude

Forum Jump:


Browsing: 1 Guest(s)