-
Notifications
You must be signed in to change notification settings - Fork 0
/
televac.proto
196 lines (115 loc) · 2.56 KB
/
televac.proto
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
Terminator = CR;
LockTimeout = 10000;
ReplyTimeout = 1000;
ReadTimeout = 500;
WriteTimeout = 1000;
ExtraInput= ignore;
#This command is used to cancel automatic output broadcast mode cancel
CancelBroadcast {
out "CA";
}
#get Televac Software version
SoftVersion {
out "SV"; in "%39c"
}
#This command is used to mark sensor 2 on the televac
#This will be the sensor that is broadcasted
MarkSensor{
out "M%d";in "%*1c"
}
#This command enables the broadcast of the marked sensor
#The 020 determines the time of broadcast. It depends on number of sensors
#to read
BroadcastSensors {
out "A030";
}
#Here we read the raw data all marked sensors in string format
ReadBroadcastedSensors1 {
Terminator = ;
in "%39c"
}
ReadBroadcastedSensors2 {
Terminator = ;
in "%*39c%39c"
}
ReadBroadcastedSensors3 {
Terminator = ;
in "%*39c%*39c%39c"
}
#Here we read the raw data all marked sensors in string format
ReadSensor1 {
in "1=%e"
}
#This command reads sensor1 coeficcient
ReadSensor1Coefficient {
in "1=%f%*39c"
}
#This command reads sensor1 exponent
ReadSensor1Exponent {
in "1=%*f%f%*39c"
}
#here we read the second sensor of the televac
#This command reads sensor1 coeficcient
ReadSensor2Coefficient {
in "%*12c%f%*39c"
}
#This command reads sensor1 exponent
ReadSensor2Exponent {
in "%*16c%f%*39c"
}
#This command reads sensor1 coeficcient
ReadSensor3Coefficient {
in "%*22c%f%*39c"
}
#This command reads sensor1 exponent
ReadSensor3Exponent {
in "%*26c%f%*39c"
}
#This command reads sensor1 coeficcient
ReadSensor4Coefficient {
in "%*32c%f%*39c"
}
#This command reads sensor1 exponent
ReadSensor4Exponent {
in "%*36c%f%*39c"
}
#This command reads sensor1 coeficcient
ReadSensor5Coefficient {
in "%*42c%f%*39c"
}
#This command reads sensor1 exponent
ReadSensor5Exponent {
in "%*46c%f%*39c"
}
#This command reads sensor1 coeficcient
ReadSensor6Coefficient {
in "%*52c%f%*39c"
}
#This command reads sensor1 exponent
ReadSensor6Exponent {
in "%*56c%f%*39c"
}
#This command reads sensor1 coeficcient
ReadSensor7Coefficient {
in "%*62c%f%*39c"
}
#This command reads sensor1 exponent
ReadSensor7Exponent {
in "%*66c%f%*39c"
}
#This command reads sensor1 coeficcient
ReadSensor8Coefficient {
in "%*72c%f%*39c"
}
#This command reads sensor1 exponent
ReadSensor8Exponent {
in "%*76c%f%*39c"
}
#This command reads sensor1 coeficcient
ReadSensor9Coefficient {
in "%*82c%f%*39c"
}
#This command reads sensor1 exponent
ReadSensor9Exponent {
in "%*86c%f%*39c"
}