-
Notifications
You must be signed in to change notification settings - Fork 3
/
aircontrol.conf
116 lines (101 loc) · 3.38 KB
/
aircontrol.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
// aircontrol configuration file
// This section defines the air replay parameters.
replay:
{
// GPIO pin to use for replaying (Broadcom GPIO numbers, not re-mapped)
gpioPin = 17;
};
// This section defines the air scan parameters.
scan:
{
// GPIO pin to use for scanning (Broadcom GPIO numbers, not re-mapped)
gpioPin = 18;
// Delay between two samples, unit: us
samplingRate = 100;
};
// This section defines target defaults which can be overridden in the target
// sections.
target:
{
// GPIO pin to use for target control (Broadcom GPIO numbers, not
// re-mapped)
gpioPin = 17;
// Data pulse length (total length of a single 0/1 element), unit: us
dataLength = 1780;
// Sync time length (total length of a single s/S element), unit: us
syncLength = 5000;
// Number of command transmissions
sendCommand = 10;
// Delay between command transmissions, unit: us
sendDelay = 10000;
// Radio frame encoding
// _ _ _
// 0 Manchester; values: 0) |_ 1) _| s) _ S)
// _ ___
// 1 Remote Controlled Outlet; values: 0) |___ 1) |_
// (for reference: 00 -> 0, 11 -> 1, 01 -> F)
// _ _ _
// 2 Tormatic; values: 0) |__ 1) |_|
// _ __
// 3 Melitec; values: 0) |__ S) |_
//
// This setting defines valid airCommand values.
airCode = 0/*Manchester*/;
};
// Target sections.
warema_sample:
{
// Air command to be transmitted (values defined by airCode)
airCommand =
"S01110100100101" // Command
"S010100010" // Device
"S010001110" // Device
"S";
};
outlet_sample:
{
dataLength = 1200;
sendCommand = 5;
sendDelay = 8800;
airCode = 1/*RCO*/;
airCommand =
"0101110101" // System code (FF1FF)
"0111000000" // Receiver (F1000)
"11000"; // Command (10), additional 0 required
};
tormatic_sample:
{
dataLength = 1500;
sendCommand = 50;
sendDelay = 17500;
airCode = 2/*Tormatic*/;
airCommand = "0011011001110";
};
melitec_on_sample:
{
dataLength = 300;
syncLength = 600;
sendCommand = 3;
airCode = 3/*Melitec*/;
airCommand =
"SSSS0000000000000000000000000000000000000000000000000000000000000000"
"SSSS0000000000000000000000000000000000000000000000000000000000000000"
"SSSS0000000000000000000000000000000000000000000000000000000000000000"
"SSSS0000000000000000000000000000000000000000000000000000000000000000"
"SSSS0000000000000000000000000000000000000000000000000000000000000000"
"SSSS0000000000000000000000000000000000000000000000000000000000000000";
}
melitec_off_sample:
{
dataLength = 300;
syncLength = 600;
sendCommand = 3;
airCode = 3/*Melitec*/;
airCommand =
"SSSS0000000000000000000000000000000000000000000000000000000000"
"SSSS0000000000000000000000000000000000000000000000000000000000"
"SSSS0000000000000000000000000000000000000000000000000000000000"
"SSSS0000000000000000000000000000000000000000000000000000000000"
"SSSS0000000000000000000000000000000000000000000000000000000000"
"SSSS0000000000000000000000000000000000000000000000000000000000";
}