Wed, 23 Oct 2019 14:20:50 +0200
Added the product divide scripts. All parts have all the volumes and weights divided, including the master record. Splitted batches have their own records with the product code formatted as code-n. From this design, we can rebuild the print and checklist.
0 | 1 | <!-- |
2 | vim:syntax=docbksgml | |
3 | --> | |
4 | ||
5 | <chapter id="protocols"> | |
6 | <title>Protocollen.</title> | |
7 | <para> | |
8 | De netwerk protocollen. | |
9 | </para> | |
10 | ||
11 | <sect1 id="prototopic"> | |
12 | <title>MQTT topic formaat.</title> | |
13 | <para>De topics zijn als volgt gedefinieerd:</para> | |
14 | <programlisting> | |
15 | mbv1.0/<code>group_id</code>/<code>message_type</code>/<code>edge_node</code>/<code>device_id</code> | |
16 | </programlisting> | |
17 | ||
18 | <itemizedlist> | |
19 | <listitem><para><code>group_id</code> geeft het type apparaat aan zoals <code>fermenters</code> | |
20 | en <code>brewcontrol</code>.</para></listitem> | |
21 | <listitem><para><code>message_type</code> geeft het bericht type aan zoals | |
22 | <code>NBIRTH</code>, <code>DDATA</code>.</para></listitem> | |
23 | <listitem><para><code>edge_node</code> is de hostnaam van de node die het bericht stuurt. Dit is | |
24 | de naam zonder domain toevoeging.</para></listitem> | |
25 | <listitem><para><code>device_id</code> is de verkorte naam van het apparaat module waarvan dit | |
26 | bericht komt zoals de naam van een vergisting controller. Dit is niet aanwezig met NODE berichten.</para></listitem> | |
27 | </itemizedlist> | |
28 | ||
29 | <para> | |
30 | De volgende <code>group_id</code> namen zijn gedefinieerd: | |
31 | </para> | |
32 | <orderedlist> | |
511 | 33 | <listitem><para><code>brewery</code> is voor de bms applicatie zelf. Nog uitwerken.</para></listitem> |
34 | <listitem><para><code>fermenters</code> is voor vergisting controllers.</para></listitem> | |
35 | <listitem><para><code>co2meters</code> is een drukmeter om bijvoorbeeld hergisting op de fles | |
0 | 36 | te monitoren.</para></listitem> |
37 | </orderedlist> | |
38 | ||
39 | <para>De volgende <code>message_type</code> namen zijn gedefinieerd:</para> | |
40 | <orderedlist> | |
41 | <listitem><para>NBIRTH geeft aan wanneer een node opstart en met het netwerk | |
42 | verbonden is. Dit is een zogenaamd persistent bericht, het blijft voor nieuwe | |
43 | MQTT clients altijd zichtbaar. Bij het starten van een node wordt er een payload | |
44 | verzonden, zie het payload formaat voor een node. Als een node afsluit wordt juist geen | |
45 | payload verzonden zodat het bericht verdwijnt.</para></listitem> | |
46 | <listitem><para>NDEATH wordt verstuurd als een node offline gaat. Maar het kan ook | |
47 | ontvangen worden als de MQTT verbinding verbroken wordt met een node, het NDEATH | |
325
9a8c650972ca
Update some documentation. Thermometer gauges animate easing
Michiel Broek <mbroek@mbse.eu>
parents:
0
diff
changeset
|
48 | bericht is ook het `last will' bericht van een node. Maar als het echt fout gaat |
9a8c650972ca
Update some documentation. Thermometer gauges animate easing
Michiel Broek <mbroek@mbse.eu>
parents:
0
diff
changeset
|
49 | dan zal er mogenlijk nooit een NDEATH bericht gezien worden.</para></listitem> |
9a8c650972ca
Update some documentation. Thermometer gauges animate easing
Michiel Broek <mbroek@mbse.eu>
parents:
0
diff
changeset
|
50 | <listitem><para>NCMD is een commando bestemd voor een node. |
9a8c650972ca
Update some documentation. Thermometer gauges animate easing
Michiel Broek <mbroek@mbse.eu>
parents:
0
diff
changeset
|
51 | Dit kan bijvoorbeeld een reboot commando zijn.</para></listitem> |
364 | 52 | <listitem><para>NDATA wordt verstuurd als er veranderingen zijn voor de node, |
53 | maar ook iedere vijf minuten om aan te geven dat de node nog "levend" en aanwezig | |
54 | is.</para></listitem> | |
55 | ||
0 | 56 | <listitem><para>DBIRTH is een of meer berichten van een apparaat wat online komt |
325
9a8c650972ca
Update some documentation. Thermometer gauges animate easing
Michiel Broek <mbroek@mbse.eu>
parents:
0
diff
changeset
|
57 | en ingeschakeld is. Een apparaat is een deel van een node. |
9a8c650972ca
Update some documentation. Thermometer gauges animate easing
Michiel Broek <mbroek@mbse.eu>
parents:
0
diff
changeset
|
58 | Bij het opstarten van de node is er geen <code>device_id</code> |
0 | 59 | omdat alle apparaten is een keer verstuurd worden. Indien er later een enkel apparaat |
60 | ingeschakeld wordt dan is er wel een geldige <code>device_id</code> aanwezig. | |
61 | Hier ook weer, er is een payload bij opstarten en geen payload bij afsluiten om het | |
62 | persistente bericht goed te houden.</para></listitem> | |
364 | 63 | <listitem><para>DDEATH wordt verstuurd als een node offline gaat, of als het apparaat |
64 | uitgeschakelt wordt.</para></listitem> | |
0 | 65 | <listitem><para>DDATA heeft altijd een payload, maar deze hoeft niet volledig te zijn, |
66 | enkel de gewijzigde data moet in het bericht zitten.</para></listitem> | |
67 | <listitem><para>DLOG is een data log. Hier bestaat de payload uit gegevens die de | |
68 | bms applicatie in de database zet.</para></listitem> | |
325
9a8c650972ca
Update some documentation. Thermometer gauges animate easing
Michiel Broek <mbroek@mbse.eu>
parents:
0
diff
changeset
|
69 | <listitem><para>DCMD is een commando voor een apparaat wat op een node geinstalleerd is. |
9a8c650972ca
Update some documentation. Thermometer gauges animate easing
Michiel Broek <mbroek@mbse.eu>
parents:
0
diff
changeset
|
70 | Dit zullen voornamelijk instellingen voor dat enkele apparaat zijn.</para></listitem> |
0 | 71 | </orderedlist> |
72 | ||
73 | </sect1> | |
74 | ||
75 | ||
76 | <sect1 id="payloadnode"> | |
77 | <title>Netwerk payload formaat voor een node</title> | |
78 | <para> | |
79 | De payload zoals die door een node verstuurd wordt. Het wordt in json formaat | |
511 | 80 | verzonden zonder extra spaties en opmaak zoals hieronder is te zien. Het timestamp |
81 | is de unix tijd sinds 1 januari 1970. Niet alle controllers sturen een timestamp, | |
82 | controllers zonder klok laten dit weg. De tijd wordt dan door <code>bmsd</code> | |
83 | ingevuld en is de tijd dat het bericht ontvangen wordt. | |
84 | Het `seq' nummer wordt met ieder bericht met 1 verhoogd.</para> | |
0 | 85 | <programlisting> |
86 | { | |
87 | "timestamp": 1532201089, | |
88 | "seq": 0, | |
89 | "metric": { | |
90 | "uuid": "b508f01c-1f82-4e8b-b0d2-d88ecfb53031", | |
91 | "properties": { | |
92 | "hardwaremake": "Raspberry", | |
93 | "hardwaremodel": "Unknown", | |
94 | "os": "Linux", | |
95 | "os_version": "4.1.19+", | |
96 | "FW": "0.8.2" | |
97 | }, | |
98 | "THB": { | |
99 | "temperature": 20.0, | |
100 | "humidity": 50.0, | |
101 | "barometer": 1002 | |
102 | }, | |
103 | "GPS": { | |
104 | "latitude": 1.2345, | |
105 | "longitude": 2.3456, | |
106 | "altitude": 20 | |
107 | }, | |
108 | "net": { | |
109 | "address": "10.126.151.11", | |
110 | "ifname": "eth0", | |
111 | "rssi": 0 | |
112 | } | |
113 | } | |
114 | } | |
115 | </programlisting> | |
116 | </sect1> | |
117 | ||
118 | <sect1 id="cmdnode"> | |
119 | <title>Netwerk kommando payload formaat voor nodes.</title> | |
120 | <para>De volgende kommando's kunnen gestuurd worden naar nodes:</para> | |
121 | <programlisting> | |
122 | { | |
123 | "timestamp":1532201089, | |
124 | "metric": { | |
125 | "Node Control/Reboot":true | |
126 | } | |
127 | } | |
325
9a8c650972ca
Update some documentation. Thermometer gauges animate easing
Michiel Broek <mbroek@mbse.eu>
parents:
0
diff
changeset
|
128 | </programlisting> |
9a8c650972ca
Update some documentation. Thermometer gauges animate easing
Michiel Broek <mbroek@mbse.eu>
parents:
0
diff
changeset
|
129 | <para>Dit commando reboot niet de computer maar de applicatie die op een |
9a8c650972ca
Update some documentation. Thermometer gauges animate easing
Michiel Broek <mbroek@mbse.eu>
parents:
0
diff
changeset
|
130 | computer zoals een Raspberry Pi geinstalleerd is. Een uitzondering zijn de |
9a8c650972ca
Update some documentation. Thermometer gauges animate easing
Michiel Broek <mbroek@mbse.eu>
parents:
0
diff
changeset
|
131 | controllers zoals Arduino's en andere eenvoudige systemen.</para> |
9a8c650972ca
Update some documentation. Thermometer gauges animate easing
Michiel Broek <mbroek@mbse.eu>
parents:
0
diff
changeset
|
132 | <programlisting> |
0 | 133 | { |
134 | "timestamp":1532201089, | |
135 | "metric": { | |
136 | "Node Control/Rebirth":true | |
137 | } | |
138 | } | |
139 | </programlisting> | |
325
9a8c650972ca
Update some documentation. Thermometer gauges animate easing
Michiel Broek <mbroek@mbse.eu>
parents:
0
diff
changeset
|
140 | <para>Dit commando zorgt er voor dat alle NBIRTH en DBIRTH berichten opnieuw |
9a8c650972ca
Update some documentation. Thermometer gauges animate easing
Michiel Broek <mbroek@mbse.eu>
parents:
0
diff
changeset
|
141 | verzonden worden alsof de computer net is opgestart. Dit kan nuttig zijn na |
9a8c650972ca
Update some documentation. Thermometer gauges animate easing
Michiel Broek <mbroek@mbse.eu>
parents:
0
diff
changeset
|
142 | een herstart van de bms applicatie zelf zodat de juiste nodes informatie weer |
9a8c650972ca
Update some documentation. Thermometer gauges animate easing
Michiel Broek <mbroek@mbse.eu>
parents:
0
diff
changeset
|
143 | beschikbaar is.</para> |
0 | 144 | </sect1> |
145 | ||
146 | <sect1 id="payloadfermdata"> | |
147 | <title>Netwerk payload data formaat voor vergisting controllers</title> | |
148 | <para> | |
149 | Dit is het meest uitgebreide formaat wat getoond is. Indien er bijvoorbeeld geen | |
361
9f07e2f47ec8
Moved some stuff to the real documentation.
Michiel Broek <mbroek@mbse.eu>
parents:
334
diff
changeset
|
150 | chiller aanwezig is, dan wordt een `null' gestuurd in plaats van een json blok |
0 | 151 | met gegevens. De werkelijke uitvoering van de hardware en de configuratie daarvan |
152 | bepaald dus het uiteindelijke payload formaat. | |
153 | </para> | |
154 | <programlisting> | |
155 | { | |
156 | "uuid": "48c9ae27-3f58-41c9-ae4b-1d57b249c45a", | |
157 | "alias": "unit1", | |
158 | "product": { | |
159 | "uuid": "1eb0c7bf-bf06-491c-a086-ac5478d521b9", | |
160 | "code": "CB0001", | |
161 | "name": "Hoppy Housebeer" | |
162 | }, | |
163 | "air": { | |
164 | "address": "70d60411-3ec8-40ab-998a-81fead83025f", | |
165 | "state": "OK", | |
166 | "temperature": 21.562 | |
167 | }, | |
168 | "beer": { | |
169 | "address": "8ec36f9d-f382-4e32-a47f-732642e1018d", | |
170 | "state": "OK", | |
171 | "temperature": 22.125 | |
172 | }, | |
173 | "chiller": { | |
174 | "address": "e81265b8-07f7-4b22-96c1-6f55a4b66a83", | |
175 | "state": "OK", | |
176 | "temperature": 12.437 | |
177 | }, | |
178 | "heater": { | |
179 | "address": "d2f2d6bc-4d12-4852-9462-95f4c2476034", | |
180 | "state": 0, | |
181 | "usage": 10710793 | |
182 | }, | |
183 | "cooler": { | |
184 | "address": "a9f30140-812c-4ec1-9e98-3a9d47deff7c", | |
185 | "state": 0, | |
186 | "usage": 920504 | |
187 | }, | |
188 | "fan": { | |
189 | "address": "ae9f9887-8209-4810-9f58-ddfb34ee142f", | |
190 | "state": 100, | |
191 | "usage": 62889739 | |
192 | }, | |
193 | "light": { | |
194 | "address": "cc6353cf-9c97-41b9-b6cf-00cea312e478", | |
195 | "state": 0, | |
196 | "usage": 29647290 | |
197 | }, | |
198 | "door": { | |
199 | "address": "ad8746d1-0549-485a-a215-41e5cdde9e75", | |
200 | "state": 1 | |
201 | }, | |
202 | "psu": { | |
203 | "address": "e1bb7182-883d-4977-a1c0-76e214072fc5", | |
204 | "state": 1 | |
205 | }, | |
206 | "stage": "PRIMARY", | |
207 | "mode": "BEER", | |
208 | "setpoint": { | |
209 | "low": 21.0, | |
210 | "high": 21.0 | |
211 | }, | |
334
26c6f8e5d58e
Added webcam_url and webcam_light fields to the mon_fermenters database table. Currently these fields need to be set using phpMyAdmin or another tool. If the webcam_url field is set, then on the mon_fermenter webpage a button is added to show a webcam page.
Michiel Broek <mbroek@mbse.eu>
parents:
325
diff
changeset
|
212 | "webcam": { |
26c6f8e5d58e
Added webcam_url and webcam_light fields to the mon_fermenters database table. Currently these fields need to be set using phpMyAdmin or another tool. If the webcam_url field is set, then on the mon_fermenter webpage a button is added to show a webcam page.
Michiel Broek <mbroek@mbse.eu>
parents:
325
diff
changeset
|
213 | "url":"https://the.webcamserver.com:8090/?action=stream", |
26c6f8e5d58e
Added webcam_url and webcam_light fields to the mon_fermenters database table. Currently these fields need to be set using phpMyAdmin or another tool. If the webcam_url field is set, then on the mon_fermenter webpage a button is added to show a webcam page.
Michiel Broek <mbroek@mbse.eu>
parents:
325
diff
changeset
|
214 | "light": 1 |
26c6f8e5d58e
Added webcam_url and webcam_light fields to the mon_fermenters database table. Currently these fields need to be set using phpMyAdmin or another tool. If the webcam_url field is set, then on the mon_fermenter webpage a button is added to show a webcam page.
Michiel Broek <mbroek@mbse.eu>
parents:
325
diff
changeset
|
215 | }, |
0 | 216 | "alarm": 0, |
217 | "profile": { | |
218 | "uuid": "c93ad1bb-0446-4788-9c43-83990c5f8b82", | |
219 | "name": "Witbier methode Cellis", | |
220 | "state": "OFF", | |
221 | "percent": 0, | |
222 | "inittemp": { | |
223 | "low": 17.9, | |
224 | "high": 18.1 | |
225 | }, | |
226 | "fridgemode": 0, | |
227 | "steps": [ | |
228 | { | |
229 | "resttime": 2, | |
230 | "steptime": 0, | |
231 | "target": { | |
232 | "low": 18.0, | |
233 | "high": 18.0 | |
234 | }, | |
235 | "fridgemode": 0 | |
236 | }, | |
237 | { | |
238 | "resttime": 0, | |
239 | "steptime": 24, | |
240 | "target": { | |
241 | "low": 18.0, | |
242 | "high": 22.0 | |
243 | }, | |
244 | "fridgemode": 0 | |
245 | }, | |
246 | { | |
247 | "resttime": 48, | |
248 | "steptime": 96, | |
249 | "target": { | |
250 | "low": 26.0, | |
251 | "high": 26.0 | |
252 | }, | |
253 | "fridgemode": 0 | |
254 | } | |
255 | ] | |
256 | } | |
257 | } | |
258 | </programlisting> | |
259 | <para>Temperature states can be: OK, MISSING or ERROR.<para> | |
260 | <para>The general `mode' can be: OFF, NONE, FRIDGE, BEER or PROFILE.</para> | |
261 | <para>The profile `state' can be: OFF, PAUSE, RUN, DONE or ABORT.</para> | |
262 | </sect1> | |
263 | ||
264 | ||
265 | <sect1 id="payloadfermlog"> | |
266 | <title>Netwerk payload log formaat voor vergisting controllers</title> | |
267 | <para> | |
268 | Dit is het meest uitgebreide formaat wat getoond is. Indien er bijvoorbeeld geen | |
269 | chiller aanwezig is, dan wordt geen data hiervoor verstuurd. | |
270 | De werkelijke uitvoering van de hardware en de configuratie daarvan | |
271 | bepaald dus het uiteindelijke payload formaat. | |
272 | </para> | |
273 | <programlisting> | |
274 | { | |
275 | "timestamp": 1532201089, | |
276 | "seq": 0, | |
277 | "metric": { | |
278 | "product": { | |
279 | "uuid": "1eb0c7bf-bf06-491c-a086-ac5478d521b9", | |
280 | "code": "CB0001", | |
281 | "name": "Hoppy Housebeer" | |
282 | }, | |
283 | "stage": "PRIMARY", | |
284 | "mode": "BEER", | |
285 | "temperature": { | |
286 | "air": 20.125, | |
287 | "beer": 20.062, | |
288 | "chiller": -3.000, | |
289 | "room": 20.1 | |
290 | }, | |
291 | "setpoint": { | |
292 | "low": 19.8, | |
293 | "high": 20.1 | |
294 | }, | |
295 | "heater": { | |
296 | "power": 100, | |
297 | "usage": 1234 | |
298 | }, | |
299 | "cooler": { | |
300 | "power": 0, | |
301 | "usage": 27273 | |
302 | }, | |
303 | "fan": { | |
304 | "power": 100, | |
305 | "usage": 8273772 | |
306 | }, | |
307 | "sg": 1.023, | |
308 | "event": "Something to mark", | |
309 | "fermenter_uuid": "48c9ae27-3f58-41c9-ae4b-1d57b249c45a" | |
310 | } | |
311 | } | |
312 | </programlisting> | |
361
9f07e2f47ec8
Moved some stuff to the real documentation.
Michiel Broek <mbroek@mbse.eu>
parents:
334
diff
changeset
|
313 | <para> |
9f07e2f47ec8
Moved some stuff to the real documentation.
Michiel Broek <mbroek@mbse.eu>
parents:
334
diff
changeset
|
314 | De ontvangen vergisting log gegevens worden niet opgeslagen in de SQL database |
9f07e2f47ec8
Moved some stuff to the real documentation.
Michiel Broek <mbroek@mbse.eu>
parents:
334
diff
changeset
|
315 | maar in platte tekst bestanden. Hierdoor is de gelogde informatie sneller toegankelijk. |
9f07e2f47ec8
Moved some stuff to the real documentation.
Michiel Broek <mbroek@mbse.eu>
parents:
334
diff
changeset
|
316 | Ieder brouw product heeft zijn eigen bestand. |
9f07e2f47ec8
Moved some stuff to the real documentation.
Michiel Broek <mbroek@mbse.eu>
parents:
334
diff
changeset
|
317 | De bestanden staan in <code>www/logs/fermentation/</code>. |
9f07e2f47ec8
Moved some stuff to the real documentation.
Michiel Broek <mbroek@mbse.eu>
parents:
334
diff
changeset
|
318 | De bestandsnamen zijn <code>product_code\ product_name.log</code>. |
9f07e2f47ec8
Moved some stuff to the real documentation.
Michiel Broek <mbroek@mbse.eu>
parents:
334
diff
changeset
|
319 | Het interne formaat is:</para> |
9f07e2f47ec8
Moved some stuff to the real documentation.
Michiel Broek <mbroek@mbse.eu>
parents:
334
diff
changeset
|
320 | <programlisting> |
530
a7430eee20bd
Updated the documentation. Changed page layout.
Michiel Broek <mbroek@mbse.eu>
parents:
511
diff
changeset
|
321 | 2014-11-15 18:39:12,BEER,PRIMARY,20.312,19.750,-1.500,20.5,18.6,18.8,35,12345,0,67890,Whatsup,Fermenter |
a7430eee20bd
Updated the documentation. Changed page layout.
Michiel Broek <mbroek@mbse.eu>
parents:
511
diff
changeset
|
322 | | | | | | | | | | | | | | | | |
a7430eee20bd
Updated the documentation. Changed page layout.
Michiel Broek <mbroek@mbse.eu>
parents:
511
diff
changeset
|
323 | 0 datetime + | | | | | | | | | | | | | | |
a7430eee20bd
Updated the documentation. Changed page layout.
Michiel Broek <mbroek@mbse.eu>
parents:
511
diff
changeset
|
324 | 1 werkwijze ---------+ | | | | | | | | | | | | | |
a7430eee20bd
Updated the documentation. Changed page layout.
Michiel Broek <mbroek@mbse.eu>
parents:
511
diff
changeset
|
325 | 2 vergisting fase ---------+ | | | | | | | | | | | | |
a7430eee20bd
Updated the documentation. Changed page layout.
Michiel Broek <mbroek@mbse.eu>
parents:
511
diff
changeset
|
326 | 3 temperatuur lucht --------------+ | | | | | | | | | | | |
a7430eee20bd
Updated the documentation. Changed page layout.
Michiel Broek <mbroek@mbse.eu>
parents:
511
diff
changeset
|
327 | 4 temperatuur bier ----------------------+ | | | | | | | | | | |
a7430eee20bd
Updated the documentation. Changed page layout.
Michiel Broek <mbroek@mbse.eu>
parents:
511
diff
changeset
|
328 | 5 temperatuur koeler ---------------------------+ | | | | | | | | | |
a7430eee20bd
Updated the documentation. Changed page layout.
Michiel Broek <mbroek@mbse.eu>
parents:
511
diff
changeset
|
329 | 6 temperatuur ruimte ----------------------------------+ | | | | | | | | |
a7430eee20bd
Updated the documentation. Changed page layout.
Michiel Broek <mbroek@mbse.eu>
parents:
511
diff
changeset
|
330 | 7 instelwaarde laag ----------------------------------------+ | | | | | | | |
a7430eee20bd
Updated the documentation. Changed page layout.
Michiel Broek <mbroek@mbse.eu>
parents:
511
diff
changeset
|
331 | 8 instelwaarde hoog ---------------------------------------------+ | | | | | | |
a7430eee20bd
Updated the documentation. Changed page layout.
Michiel Broek <mbroek@mbse.eu>
parents:
511
diff
changeset
|
332 | 9 verwarming vermogen -----------------------------------------------+ | | | | | |
a7430eee20bd
Updated the documentation. Changed page layout.
Michiel Broek <mbroek@mbse.eu>
parents:
511
diff
changeset
|
333 | 10 verwarming verbruik ---------------------------------------------------+ | | | | |
a7430eee20bd
Updated the documentation. Changed page layout.
Michiel Broek <mbroek@mbse.eu>
parents:
511
diff
changeset
|
334 | 11 koeler vermogen -----------------------------------------------------------+ | | | |
a7430eee20bd
Updated the documentation. Changed page layout.
Michiel Broek <mbroek@mbse.eu>
parents:
511
diff
changeset
|
335 | 12 koeler verbruik ---------------------------------------------------------------+ | | |
a7430eee20bd
Updated the documentation. Changed page layout.
Michiel Broek <mbroek@mbse.eu>
parents:
511
diff
changeset
|
336 | 13 gebeurtenis --------------------------------------------------------------------------+ | |
a7430eee20bd
Updated the documentation. Changed page layout.
Michiel Broek <mbroek@mbse.eu>
parents:
511
diff
changeset
|
337 | 14 vergister uuid --------------------------------------------------------------------------------+ |
361
9f07e2f47ec8
Moved some stuff to the real documentation.
Michiel Broek <mbroek@mbse.eu>
parents:
334
diff
changeset
|
338 | </programlisting> |
0 | 339 | </sect1> |
340 | ||
506
8ab0e87d579e
Added beer selection in the CO2 meter screen. Added CO2 pressure logging.
Michiel Broek <mbroek@mbse.eu>
parents:
364
diff
changeset
|
341 | <sect1 id="payloadco2log"> |
8ab0e87d579e
Added beer selection in the CO2 meter screen. Added CO2 pressure logging.
Michiel Broek <mbroek@mbse.eu>
parents:
364
diff
changeset
|
342 | <title>Netwerk payload log formaat voor CO2 meters.</title> |
511 | 343 | <para> |
344 | Voor iedere actieve CO2 meter wordt bij iedere systeemstart een logbericht | |
345 | gestuurd. Dit is ongeveer iedere 5 minuten. Omdat de CO2 meters eenvoudige | |
346 | controllers zijn is er geen tijd en product informatie beschikbaar. Deze | |
347 | ontbrekende gegevens worden aangevuld door <command>bmsd</command> | |
348 | </para> | |
349 | <programlisting> | |
506
8ab0e87d579e
Added beer selection in the CO2 meter screen. Added CO2 pressure logging.
Michiel Broek <mbroek@mbse.eu>
parents:
364
diff
changeset
|
350 | |
511 | 351 | </programlisting> |
506
8ab0e87d579e
Added beer selection in the CO2 meter screen. Added CO2 pressure logging.
Michiel Broek <mbroek@mbse.eu>
parents:
364
diff
changeset
|
352 | <para> |
8ab0e87d579e
Added beer selection in the CO2 meter screen. Added CO2 pressure logging.
Michiel Broek <mbroek@mbse.eu>
parents:
364
diff
changeset
|
353 | De ontvangen CO2 log gegevens worden niet opgeslagen in de SQL database |
8ab0e87d579e
Added beer selection in the CO2 meter screen. Added CO2 pressure logging.
Michiel Broek <mbroek@mbse.eu>
parents:
364
diff
changeset
|
354 | maar in platte tekst bestanden. Hierdoor is de gelogde informatie sneller toegankelijk. |
8ab0e87d579e
Added beer selection in the CO2 meter screen. Added CO2 pressure logging.
Michiel Broek <mbroek@mbse.eu>
parents:
364
diff
changeset
|
355 | Ieder brouw product heeft zijn eigen bestand. |
8ab0e87d579e
Added beer selection in the CO2 meter screen. Added CO2 pressure logging.
Michiel Broek <mbroek@mbse.eu>
parents:
364
diff
changeset
|
356 | De bestanden staan in <code>www/logs/co2pressure/</code>. |
8ab0e87d579e
Added beer selection in the CO2 meter screen. Added CO2 pressure logging.
Michiel Broek <mbroek@mbse.eu>
parents:
364
diff
changeset
|
357 | De bestandsnamen zijn <code>product_code\ product_name.log</code>. |
8ab0e87d579e
Added beer selection in the CO2 meter screen. Added CO2 pressure logging.
Michiel Broek <mbroek@mbse.eu>
parents:
364
diff
changeset
|
358 | Het interne formaat is:</para> |
8ab0e87d579e
Added beer selection in the CO2 meter screen. Added CO2 pressure logging.
Michiel Broek <mbroek@mbse.eu>
parents:
364
diff
changeset
|
359 | <programlisting> |
8ab0e87d579e
Added beer selection in the CO2 meter screen. Added CO2 pressure logging.
Michiel Broek <mbroek@mbse.eu>
parents:
364
diff
changeset
|
360 | 2019-10-11 16:13:33,22.250,5.964,c0ffeeee-dead-beef-caf0-3c71bffe4054 |
8ab0e87d579e
Added beer selection in the CO2 meter screen. Added CO2 pressure logging.
Michiel Broek <mbroek@mbse.eu>
parents:
364
diff
changeset
|
361 | | | | | |
8ab0e87d579e
Added beer selection in the CO2 meter screen. Added CO2 pressure logging.
Michiel Broek <mbroek@mbse.eu>
parents:
364
diff
changeset
|
362 | 0 datetime + | | | |
8ab0e87d579e
Added beer selection in the CO2 meter screen. Added CO2 pressure logging.
Michiel Broek <mbroek@mbse.eu>
parents:
364
diff
changeset
|
363 | 1 temperatuur ----------+ | | |
8ab0e87d579e
Added beer selection in the CO2 meter screen. Added CO2 pressure logging.
Michiel Broek <mbroek@mbse.eu>
parents:
364
diff
changeset
|
364 | 2 CO2 flesdruk in bar ---------+ | |
8ab0e87d579e
Added beer selection in the CO2 meter screen. Added CO2 pressure logging.
Michiel Broek <mbroek@mbse.eu>
parents:
364
diff
changeset
|
365 | 3 meter uuid -------------------------------------+ |
8ab0e87d579e
Added beer selection in the CO2 meter screen. Added CO2 pressure logging.
Michiel Broek <mbroek@mbse.eu>
parents:
364
diff
changeset
|
366 | </programlisting> |
8ab0e87d579e
Added beer selection in the CO2 meter screen. Added CO2 pressure logging.
Michiel Broek <mbroek@mbse.eu>
parents:
364
diff
changeset
|
367 | </sect1> |
0 | 368 | |
369 | </chapter> |