TDT-Protocol on CAN » Historie » Revision 12
Revision 11 (Maximilian Seesslen, 05.10.2022 17:27) → Revision 12/104 (Maximilian Seesslen, 05.10.2022 17:34)
h1. Intro TDT-Protocol on CAN
With the TDT-Protocol sensors can just send their values on the BUS.
An monitor-software should be able to display values without knowing about the sensors or their configuration.
The CANId of snesors is actually their configurable ID.
Sensor values are ususally not very important so they start at 0x200 (max ids 0x800);
|_. Size |_. Decription |_. Examples |
| 1 | Sub-Id; | Futher index; Sub-Sensor or more specifi kind of thing to be set |
| 1 | Data type | Int, Float, Time, Date |
| 1 | Unit | Hz, °C, Time, Date, PWM-Percent, PWM-Promil, CAN-ID |
| 4 | Value | 32Bit |
h2. Device behaviour
All devices should shut down after 5 hours when no master-heartbeat is received.
h1. IDs, ranges and commands
h2. CAN IDs
|_. Range |_. Decription |_. Examples |
| 0x010-0x0FF | Alarms | Devices have an issue |
| 0x100-0x1FF | Control commands | Set global actuator |
| 0x200-0x2FF | Sensors/actors fixed | |
| 0x300-0x6FF | Sensors/actors dynamic | |
| 0x6FF-0x7FF | Low priority boradcast | Power on devices |
h2. Global actuator
Global means that all actuators of an type is addressed and not one concrete partipiant.
|_. ID |_. global actuator |_. Decription |
| 0x100 | System command | Perform system command; e.g. reboot, poweroff |
| 0x101 | Date/Time | Set date/time of all actuator |
| 0x102 | Illumination | Set brightness of lamps |
| 0x103 | Powerswitch | Power on devices |
| 0x104 | Plant watering pump | Automatically watering indoor plants |
h2. System commands
|_. Sub-ID |_. Type |
| 0x0 | Shutdown |
| 0x1 | Heartbeat |
h2. Illumination commands
|_. Sub-ID |_. Type |
| 0x0 | Set ambient light |
| 0x1 | Get ambient light |
| 0x2 | Set plant light |
| 0x3 | Get plant light |
h2. Powerswitch commands Powerswitches
|_. Sub-ID |_. Type |
| 0x0 | Set multimedia |
| 0x1 | Get multimedia |
With the TDT-Protocol sensors can just send their values on the BUS.
An monitor-software should be able to display values without knowing about the sensors or their configuration.
The CANId of snesors is actually their configurable ID.
Sensor values are ususally not very important so they start at 0x200 (max ids 0x800);
|_. Size |_. Decription |_. Examples |
| 1 | Sub-Id; | Futher index; Sub-Sensor or more specifi kind of thing to be set |
| 1 | Data type | Int, Float, Time, Date |
| 1 | Unit | Hz, °C, Time, Date, PWM-Percent, PWM-Promil, CAN-ID |
| 4 | Value | 32Bit |
h2. Device behaviour
All devices should shut down after 5 hours when no master-heartbeat is received.
h1. IDs, ranges and commands
h2. CAN IDs
|_. Range |_. Decription |_. Examples |
| 0x010-0x0FF | Alarms | Devices have an issue |
| 0x100-0x1FF | Control commands | Set global actuator |
| 0x200-0x2FF | Sensors/actors fixed | |
| 0x300-0x6FF | Sensors/actors dynamic | |
| 0x6FF-0x7FF | Low priority boradcast | Power on devices |
h2. Global actuator
Global means that all actuators of an type is addressed and not one concrete partipiant.
|_. ID |_. global actuator |_. Decription |
| 0x100 | System command | Perform system command; e.g. reboot, poweroff |
| 0x101 | Date/Time | Set date/time of all actuator |
| 0x102 | Illumination | Set brightness of lamps |
| 0x103 | Powerswitch | Power on devices |
| 0x104 | Plant watering pump | Automatically watering indoor plants |
h2. System commands
|_. Sub-ID |_. Type |
| 0x0 | Shutdown |
| 0x1 | Heartbeat |
h2. Illumination commands
|_. Sub-ID |_. Type |
| 0x0 | Set ambient light |
| 0x1 | Get ambient light |
| 0x2 | Set plant light |
| 0x3 | Get plant light |
h2. Powerswitch commands Powerswitches
|_. Sub-ID |_. Type |
| 0x0 | Set multimedia |
| 0x1 | Get multimedia |