TDT-Protocol on CAN » Historie » Version 10
Maximilian Seesslen, 05.10.2022 17:26
1 | 1 | Maximilian Seesslen | h1. TDT-Protocol on CAN |
---|---|---|---|
2 | |||
3 | With the TDT-Protocol sensors can just send their values on the BUS. |
||
4 | An monitor-software should be able to display values without knowing about the sensors or their configuration. |
||
5 | 2 | Maximilian Seesslen | The CANId of snesors is actually their configurable ID. |
6 | Sensor values are ususally not very important so they start at 0x200 (max ids 0x800); |
||
7 | 1 | Maximilian Seesslen | |
8 | 2 | Maximilian Seesslen | |_. Size |_. Decription |_. Examples | |
9 | | 1 | Sub-Id; | Futher index; Sub-Sensor or more specifi kind of thing to be set | |
||
10 | | 1 | Data type | Int, Float, Time, Date | |
||
11 | 10 | Maximilian Seesslen | | 1 | Unit | Hz, °C, Time, Date, PWM-Percent, PWM-Promil, CAN-ID | |
12 | 2 | Maximilian Seesslen | | 4 | Value | 32Bit | |
13 | |||
14 | h2. CAN IDs |
||
15 | |||
16 | 1 | Maximilian Seesslen | |_. Range |_. Decription |_. Examples | |
17 | 10 | Maximilian Seesslen | | 0x010-0x0FF | Alarms | Devices have an issue | |
18 | 2 | Maximilian Seesslen | | 0x100-0x1FF | Control commands | Set global actuator | |
19 | | 0x200-0x2FF | Sensors/actors fixed | | |
||
20 | 9 | Maximilian Seesslen | | 0x300-0x6FF | Sensors/actors dynamic | | |
21 | | 0x6FF-0x7FF | Low priority boradcast | Power on devices | |
||
22 | |||
23 | 2 | Maximilian Seesslen | |
24 | h2. Global actuator |
||
25 | |||
26 | Global means that all actuators of an type is addressed and not one concrete partipiant. |
||
27 | |||
28 | |_. ID |_. global actuator |_. Decription | |
||
29 | | 0x100 | System command | Perform system command; e.g. reboot, poweroff | |
||
30 | 3 | Maximilian Seesslen | | 0x101 | Date/Time | Set date/time of all actuator | |
31 | | 0x102 | Illumination | Set brightness of lamps | |
||
32 | 6 | Maximilian Seesslen | | 0x103 | Powerswitch | Power on devices | |
33 | 8 | Maximilian Seesslen | | 0x104 | Plant watering pump | Automatically watering indoor plants | |
34 | |||
35 | 6 | Maximilian Seesslen | |
36 | 4 | Maximilian Seesslen | h2. Illumination |
37 | |||
38 | |_. Sub-ID |_. Type | |
||
39 | 5 | Maximilian Seesslen | | 0x0 | Set ambient | |
40 | | 0x1 | Get ambient | |
||
41 | | 0x2 | Set plant | |
||
42 | 1 | Maximilian Seesslen | | 0x3 | Get plant | |
43 | 7 | Maximilian Seesslen | |
44 | h2. Powerswitches |
||
45 | |||
46 | |_. Sub-ID |_. Type | |
||
47 | | 0x0 | Set multimedia | |
||
48 | | 0x1 | Get multimedia | |