TDT-Protocol on CAN » Historie » Version 92
Maximilian Seesslen, 11.07.2023 15:33
1 | 12 | Maximilian Seesslen | h1. Intro |
---|---|---|---|
2 | 1 | Maximilian Seesslen | |
3 | 17 | Maximilian Seesslen | With the TDT-Protocol sensors can just send their values on the BUS without complex object catalogue. |
4 | An monitor-software is able to display values without knowing anything about the sensors or their configuration. |
||
5 | 46 | Maximilian Seesslen | The CANId cinsists of an function code and the node id. Like CANOpen the function code is 4 Bits and the Node-ID is 7 Bit. |
6 | In CAN2.0A there can only be 128 Nodes. |
||
7 | 1 | Maximilian Seesslen | |
8 | 35 | Maximilian Seesslen | CAN 2.0A: 0..0x7FF |
9 | CANOpen: 4 Bit Function code, 7 Bit Node-ID |
||
10 | Node-Id: 0..0x7F |
||
11 | 1 | Maximilian Seesslen | Function-Code Mask: 0x780 |
12 | 46 | Maximilian Seesslen | There are 14 or 28 Filters on STM32Fs |
13 | Some STM32 have an internal 96-bit unique ID. |
||
14 | 1 | Maximilian Seesslen | |
15 | 74 | Maximilian Seesslen | |_. Bits |_. Area |_. Decription |_. Examples | |
16 | 73 | Maximilian Seesslen | | 4 |/2.CAN-Id | Function code | Send object | |
17 | 74 | Maximilian Seesslen | | 7 | NodeId | Sensemux WZ | |
18 | | 16 |/4.Data | Object | Set illumination | |
||
19 | | 8 | Unit | promilPwm | |
||
20 | | 8 | Flags | Confirmation required | |
||
21 | | 32 | Value | 350‰ | |
||
22 | 92 | Maximilian Seesslen | | 64Bits Data| | | | |
23 | 71 | Maximilian Seesslen | |
24 | 87 | Maximilian Seesslen | [[NMT]] |
25 | [[MMP]] |
||
26 | 89 | Maximilian Seesslen | [[Alerts]] |
27 | 87 | Maximilian Seesslen | |
28 | 44 | Maximilian Seesslen | h2. Function code |
29 | 86 | Maximilian Seesslen | |
30 | 83 | Maximilian Seesslen | Function code can be 0..15 / 0x00..0x0F |
31 | 44 | Maximilian Seesslen | |
32 | 1 | Maximilian Seesslen | |_. Code |_. Decription |_. Examples | |
33 | 51 | Maximilian Seesslen | | 0x0 | NMT-Write | | |
34 | 1 | Maximilian Seesslen | | 0x1 | NMT-Send | | |
35 | 79 | Maximilian Seesslen | | 0x2 | NMT-Introduce | Device sends UID only | |
36 | 82 | Maximilian Seesslen | | 0x3 | NMT-setId | Set NodeId on Device | |
37 | 90 | Maximilian Seesslen | | 0x4 | Alarms | Send by nodes | |
38 | 82 | Maximilian Seesslen | | 0x5 | Write object | Set Date, illumination | |
39 | | 0x6 | Read object | Get product codes | |
||
40 | | 0x7 | Send object | Send temperature | |
||
41 | | 0x8 | Resend object | Replay recorded data | |
||
42 | 58 | Maximilian Seesslen | | 0x9 | data blob | | |
43 | 1 | Maximilian Seesslen | |
44 | h1. IDs, ranges and commands |
||
45 | |||
46 | 46 | Maximilian Seesslen | h2. Node IDs |
47 | 1 | Maximilian Seesslen | |
48 | 44 | Maximilian Seesslen | * 11-Bit-Identifier, (CAN 2.0A); 2048; 0x0 ... 0x7F0; 0x0 ... 0x7F with function code |
49 | 1 | Maximilian Seesslen | * 29-Bit-Identifier, (CAN 2.0B); 0x20000000 |
50 | |||
51 | |_. Range |_. Decription |_. Examples | |
||
52 | | 0x01-0x0F | Network Manager | PC | |
||
53 | | 0x10-0x2F | Active controller | CANDis | |
||
54 | | 0x30-0x4F | Actor | CANSwitch | |
||
55 | 47 | Maximilian Seesslen | | 0x50-0x6F | Sending sensors | Sensemux, CANIO | |
56 | 1 | Maximilian Seesslen | | 0x70-0x7F | Passive Sensors | CANRec | |
57 | |||
58 | 75 | Maximilian Seesslen | h2. CAN data structutre |
59 | 1 | Maximilian Seesslen | |
60 | 68 | Maximilian Seesslen | |_. Size |_. Decription |_. Examples | |
61 | | 2 | Object | Plain Sensor value; Set illumination | |
||
62 | | 1 | Unit | hz, Float, Time, Date, Percent, promilPwm, centiCelsius, canId, room, Multipacket-String | |
||
63 | 75 | Maximilian Seesslen | | 1 | Flags | Confirmation required | |
64 | 88 | Maximilian Seesslen | | 4 | Value | The kind of data that was specified in 'unit' | |
65 | 68 | Maximilian Seesslen | |
66 | 36 | Maximilian Seesslen | |
67 | 44 | Maximilian Seesslen | h2. Objects |
68 | 36 | Maximilian Seesslen | |
69 | 59 | Maximilian Seesslen | |_. Code |_. Description | |
70 | | none | | |
||
71 | | ambientLight | | |
||
72 | | plantLight | | |
||
73 | | multimediaSwitch | | |
||
74 | | mainSwitch | | |
||
75 | | date | | |
||
76 | | time | | |
||
77 | | dummy | | |
||
78 | | plantSensor | | |
||
79 | | plantSensor [0-7] | | |
||
80 | | firmwareVersion | | |
||
81 | | firmwareDate | | |
||
82 | | hardwareRevision | | |
||
83 | | hardwareDate | | |
||
84 | | temperatureIntern [0-7] | | |
||
85 | 64 | Maximilian Seesslen | | temperatureExtern [0-7] | | |
86 | 59 | Maximilian Seesslen | | humidity | | |
87 | | VOC | | |
||
88 | 60 | Maximilian Seesslen | | Replay | | |
89 | 63 | Maximilian Seesslen | | Data-Dump (SD-Card) | | |
90 | 1 | Maximilian Seesslen | |
91 | 44 | Maximilian Seesslen | h2. Units |
92 | 17 | Maximilian Seesslen | |
93 | 44 | Maximilian Seesslen | * Date: year 2B, month 1B, day 1B |
94 | 1 | Maximilian Seesslen | * Time: hour 1B, minute 1B, second 1B, subsecond 1B |
95 | 17 | Maximilian Seesslen | |
96 | 46 | Maximilian Seesslen | h2. Example: Turn on the lights |
97 | 1 | Maximilian Seesslen | |
98 | 46 | Maximilian Seesslen | |_.Data |_.Size |_.Description | |
99 | |0x300 | 29 Bits | Function code: Write Object; All objects. | |
||
100 | 91 | Maximilian Seesslen | |0x0 | 2 Byte | Object: Ambient illumination | |
101 | 67 | Maximilian Seesslen | |0x1 | 1 Byte | Data-Type: PWM Permill | |
102 | 1 | Maximilian Seesslen | |0x1 | 1 Byte | Flags: None | |
103 | 70 | Maximilian Seesslen | |1000 | 4 Byte | Value: Full Brightness | |