*Edit* realised that I'd forgotten the 'length' parameter. Added that in but it still doesn't work
Thanks Micke. You're right, I've left out the time indexes. I tried adding them back in again and it didn't work.
I've reworked it just to be sure and it's still not working. I've also tried increasing the number of repeats in case it needs more to train. Could you possibly check my working to see if I've made any more obvious mistakes please?
In theory the code I'm using is good for a dimmable CFL bulb using LightWaveRF protocol and made by JSJS. This product is in the same range as the wall socket I'm using so I had assumed the codes would be the same. If my working is correct, do you happen to have any known working codes for these devices or can you point me to any further information?
Code: Select all
binary stream encoded in signal
00000101 00001010 00010100 01001101 00000000 10101001 00000101 00010100 10100000
0 = 300,250
1 = 300,1260
ON signal represented as hi/lo times:
300,250,300,250,300,250,300,250,300,250,300,1260,300,250,300,1260,300,250,300,250,300,250,300,250,300,1260,300,250,300,1260,300,250,300,250,300,250,300,250,300,1260,300,250,300,1260,300,250,300,250,300,250,300,1260,300,250,300,250,300,1260,300,1260,300,250,300,1260,300,250,300,250,300,250,300,250,300,250,300,250,300,250,300,250,300,1260,300,250,300,1260,300,250,300,1260,300,250,300,250,300,1260,300,250,300,250,300,250,300,250,300,250,300,1260,300,250,300,1260,300,250,300,250,300,250,300,1260,300,250,300,1260,300,250,300,250,300,1260,300,250,300,1260,300,250,300,250,300,250,300,250,300,250
Times to be used as indexes. t3 not used as identical to t0
t0 [30]
t1 [25]
t2 [126]
t3 [30]
length [72]
signal encoded as indexes of times:
00 01 00 01 00 01 00 01 00 01 00 10 00 01 00 10 00 01 00 01 00 01 00 01 00 10 00 01 00 10 00 01 00 01 00 01 00 01 00 10 00 01 00 10 00 01 00 01 00 01 00 10 00 01 00 01 00 10 00 10 00 01 00 10 00 01 00 01 00 01 00 01 00 01 00 01 00 01 00 01 00 10 00 01 00 10 00 01 00 10 00 01 00 01 00 10 00 01 00 01 00 01 00 01 00 01 00 10 00 01 00 10 00 01 00 01 00 01 00 10 00 01 00 10 00 01 00 01 00 10 00 01 00 10 00 01 00 01 00 01 00 01 00 250
Grouped into bytes:
00010001
00010001
00010010
00010010
00010001
00010001
00100001
00100001
00010001
00010010
00010010
00010001
00010010
00010001
00100010
00010010
00010001
00010001
00010001
00010001
00100001
00100001
00100001
00010010
00010001
00010001
00010010
00010010
00010001
00010010
00010010
00010001
00100001
00100001
00010001
00010001
Converted to decimal:
17
17
18
18
17
17
33
33
17
18
18
17
18
17
34
18
17
17
17
17
33
33
33
18
17
17
18
18
17
18
18
17
33
33
17
17
Full command to send
P[11]R[6]T[30][25][126][30][72][17][17][18][18][17][17][33][33][17][18][18][17][18][17][34][18][17][17][17][17][33][33][33][18][17][17][18][18][17][18][18][17][33][33][17][17]+