TDT-Protocol on CAN » Historie » Version 15
Maximilian Seesslen, 06.10.2022 15:52
1 | 12 | Maximilian Seesslen | h1. Intro |
---|---|---|---|
2 | 1 | Maximilian Seesslen | |
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 | 1 | Maximilian Seesslen | |
14 | 12 | Maximilian Seesslen | h2. Device behaviour |
15 | |||
16 | All devices should shut down after 5 hours when no master-heartbeat is received. |
||
17 | |||
18 | h1. IDs, ranges and commands |
||
19 | |||
20 | 2 | Maximilian Seesslen | h2. CAN IDs |
21 | |||
22 | 1 | Maximilian Seesslen | |_. Range |_. Decription |_. Examples | |
23 | 10 | Maximilian Seesslen | | 0x010-0x0FF | Alarms | Devices have an issue | |
24 | 2 | Maximilian Seesslen | | 0x100-0x1FF | Control commands | Set global actuator | |
25 | | 0x200-0x2FF | Sensors/actors fixed | | |
||
26 | 9 | Maximilian Seesslen | | 0x300-0x6FF | Sensors/actors dynamic | | |
27 | | 0x6FF-0x7FF | Low priority boradcast | Power on devices | |
||
28 | |||
29 | 2 | Maximilian Seesslen | h2. Global actuator |
30 | |||
31 | 1 | Maximilian Seesslen | Global means that all actuators of an type is addressed and not one concrete partipiant. |
32 | 14 | Maximilian Seesslen | An specific partipiant can be specified when sending the target CAN-Id in the value. |
33 | In this way the message is still high priority other than the "Remote Transmission Request" |
||
34 | 2 | Maximilian Seesslen | |
35 | |_. ID |_. global actuator |_. Decription | |
||
36 | 3 | Maximilian Seesslen | | 0x100 | System command | Perform system command; e.g. reboot, poweroff | |
37 | | 0x101 | Date/Time | Set date/time of all actuator | |
||
38 | 6 | Maximilian Seesslen | | 0x102 | Illumination | Set brightness of lamps | |
39 | 8 | Maximilian Seesslen | | 0x103 | Powerswitch | Power on devices | |
40 | 1 | Maximilian Seesslen | | 0x104 | Plant watering pump | Automatically watering indoor plants | |
41 | 14 | Maximilian Seesslen | |
42 | 8 | Maximilian Seesslen | |
43 | 12 | Maximilian Seesslen | h2. System commands |
44 | 1 | Maximilian Seesslen | |
45 | |_. Sub-ID |_. Type | |
||
46 | 12 | Maximilian Seesslen | | 0x0 | Shutdown | |
47 | | 0x1 | Heartbeat | |
||
48 | |||
49 | h2. Illumination commands |
||
50 | |||
51 | 13 | Maximilian Seesslen | |_. Sub-ID |_. Type | |
52 | | 0x0 | Set ambient light | |
||
53 | | 0x1 | Get ambient light | |
||
54 | | 0x2 | Set ambient light, fading | |
||
55 | | 0x3 | Get ambient light, fading | |
||
56 | | 0x4 | Set plant light | |
||
57 | | 0x5 | Get plant light | |
||
58 | |||
59 | 7 | Maximilian Seesslen | |
60 | 12 | Maximilian Seesslen | h2. Powerswitch commands |
61 | 7 | Maximilian Seesslen | |
62 | |_. Sub-ID |_. Type | |
||
63 | | 0x0 | Set multimedia | |
||
64 | | 0x1 | Get multimedia | |
||
65 | 15 | Maximilian Seesslen | |
66 | h1. Usecases |
||
67 | |||
68 | * simple actors can filter message to "Global actuator" messages, at least "system commands" |
||
69 | * There are 14 or 28 Filters on STM32Fs |