MIGRATION

changeset 663
fa39f9c0e219
parent 654
e981d0185485
child 664
8adbc76fd122
equal deleted inserted replaced
662:56c72393ca26 663:fa39f9c0e219
17 17
18 Current threads. 18 Current threads.
19 ---------------- 19 ----------------
20 20
21 These are the current running threads. 21 These are the current running threads.
22 1. my_devices_loop. 22 1. my_one_wire_loop.
23 2. my_server_loop. 23 2. my_devices_loop.
24 3. my_panel_loop. 24 3. my_server_loop.
25 4. my_simulator_loop (if enabled). 25 4. my_panel_loop.
26 5. my_simulator_loop (if enabled).
26 27
27 28
28 29
29 Steps to do. 30 Steps to do.
30 ------------ 31 ------------
31 32
32 Write a new thread for the one-wire devices. Make it a dynamic table. The
33 old device table is still needed to tie devices to fermenters.
34 Try to read all temperature sensors at once. The kernel supports this now. 33 Try to read all temperature sensors at once. The kernel supports this now.
35 The devices thread needs to use the collected temperatures. 34 The devices thread needs to use the collected temperatures.
36 Read all ds2413 devices from sys/bus/w1. If output bits are set different 35 Read all ds2413 devices from sys/bus/w1. If output bits are set different
37 then send output values. 36 then send output values.
38 Create tables for ds28b20 and ds2413. Simulated and real sensors should
39 share these tables.
40 37
41 38
42 Add pigpio library and make it testable by the configure script. 39 Add pigpio library and make it testable by the configure script.
43 40
44 41
50 2. Check for exit. 47 2. Check for exit.
51 Scan for devices. Add to one-wire list. 48 Scan for devices. Add to one-wire list.
52 3. Check for exit. 49 3. Check for exit.
53 Read all DS2413 devices programmed as input. 50 Read all DS2413 devices programmed as input.
54 4. Check for exit. 51 4. Check for exit.
55 Read one temperture sensor from list and update device. 52 Read one temperture sensor from list and update.
56 5. Check for exit. 53 5. Check for exit.
57 Check for missing devices not in one wire table. 54 Check for missing devices not in one wire table.
58 Goto 2. 55 Goto 2.
59 6. Exit state. 56 6. Exit state.
60 57

mercurial