Projekt

Allgemein

Profil

MMP » Historie » Version 2

Maximilian Seesslen, 11.07.2023 14:29

1 1 Maximilian Seesslen
h1. Multipacket-Strings
2
3
There should be the posssibillity to write the complete SPI-Flash even if it takes forever.
4
Not every slave needs to be able to send super big blocks. But every slave should be able to
5
send e.g. descriptions.
6
There can not be multiple transfers at the same time from one node because there is no identification.
7
8
|_. Size    |_. Type                                           |
9
| 0x4       | Package number (0: Data contains package count)  |
10
| 0x4       | Data                                             |
11
12
h2. Header
13
14
|_. Size    |_. Type           |
15 2 Maximilian Seesslen
| 0x4       | Object           |
16 1 Maximilian Seesslen
| 0x4       | Total size       |
17 2 Maximilian Seesslen
| 0x4       | Flags            |
18 1 Maximilian Seesslen
| 0x4       | CRC32 of data    |
19 2 Maximilian Seesslen
20 1 Maximilian Seesslen
21
22
h2. Example: CANRec
23
24
PC requests an complete dump from single Node. Node will just stream it out.
25
26
27
h1. V2
28
29
|_. Size |_. Decription |_. Examples                                                       |
30
| 1      | Packet type  | Standard TDT packet                                              |
31
| 1      | Sub-Id;      | Futher index; Sub-Sensor or more specifi kind of thing to be set |
32
| 1      | Data type    | Int, Float, Time, Date, Percent, Promil, Multipacket-String      |
33
| 1      | Unit         | Hz, °C, Time, Date, PWM, CAN-ID, Name, Description, Room         |
34
| 4      | Value        | 32Bit                                                            |
35
36
h1. V3
37
38
|_. Size |_. Decription |_. Examples                                                               |
39
| 2      | Object       |                                                                          |
40
| 1      | Sub-Id;      | Flags, Subid                                                             |
41
| 1      | Unit/Type    | Hz_int, °C_centi, Time, Date, PWM_milli, CAN-ID, Name, Description, Room |
42
| 4      | Value        | 32Bit                                                                    |
43
44
h2. Flags
45
46
4 Bit multi message count
47
4 Bit multi message pos
48
49
Length in Bytes given via CAN?
50
Strings with max. 64 characters.
51
52
h2. Multimessage package
53
54
There should be the possibillity to write the complete SPI-Flash even if it takes forever.
55
Not every slave needs to be able to send super big blocks. But every slave should be able to
56
send e.g. descriptions.