MMP » Historie » Revision 3
Revision 2 (Maximilian Seesslen, 11.07.2023 14:29) → Revision 3/14 (Maximilian Seesslen, 30.08.2023 15:47)
h1. Multipacket-Strings
There should be the posssibillity to write the complete SPI-Flash even if it takes forever.
Not every slave needs to be able to send super big blocks. But every slave should be able to
send e.g. descriptions.
There can not be multiple transfers at the same time from one node because there is no identification.
|_. Size |_. Type |
| 0x4 | Package number (0: Data contains package count) |
| 0x4 | Data |
h2. Header
|_. Size |_. Type |
| 0x4 | Object |
| 0x4 | Total size |
| 0x4 | Flags |
| 0x4 | CRC32 of data |
h2. Example: CANRec
PC requests an complete dump from single Node. Node will just stream it out.
h1. V2
|_. Size |_. Decription |_. Examples |
| 1 | Packet type | Standard TDT packet |
| 1 | Sub-Id; | Futher index; Sub-Sensor or more specifi kind of thing to be set |
| 1 | Data type | Int, Float, Time, Date, Percent, Promil, Multipacket-String |
| 1 | Unit | Hz, °C, Time, Date, PWM, CAN-ID, Name, Description, Room |
| 4 | Value | 32Bit |
h1. V3
|_. Size |_. Decription |_. Examples |
| 2 | Object | |
| 1 | Sub-Id; | Flags, Subid |
| 1 | Unit/Type | Hz_int, °C_centi, Time, Date, PWM_milli, CAN-ID, Name, Description, Room |
| 4 | Value | 32Bit |
h2. Flags
4 Bit multi message count
4 Bit multi message pos
Length in Bytes given via CAN?
Strings with max. 64 characters.
h2. Multimessage package
There should be the possibillity to write the complete SPI-Flash even if it takes forever.
Not every slave needs to be able to send super big blocks. But every slave should be able to
send e.g. descriptions.
h1. V4
|_. Size |_. Decription |_. Examples |
| 2 | Object | |
| 2 | Counter | |
| 4 | Value | 32Bit |
The data has to be stored in memory anyways. So one block can not be infinite large.
Flash has to be written block by block. One erase sektor can be 2K. Limiting the packet size to 64K is ok for writing to flash.
There should be the posssibillity to write the complete SPI-Flash even if it takes forever.
Not every slave needs to be able to send super big blocks. But every slave should be able to
send e.g. descriptions.
There can not be multiple transfers at the same time from one node because there is no identification.
|_. Size |_. Type |
| 0x4 | Package number (0: Data contains package count) |
| 0x4 | Data |
h2. Header
|_. Size |_. Type |
| 0x4 | Object |
| 0x4 | Total size |
| 0x4 | Flags |
| 0x4 | CRC32 of data |
h2. Example: CANRec
PC requests an complete dump from single Node. Node will just stream it out.
h1. V2
|_. Size |_. Decription |_. Examples |
| 1 | Packet type | Standard TDT packet |
| 1 | Sub-Id; | Futher index; Sub-Sensor or more specifi kind of thing to be set |
| 1 | Data type | Int, Float, Time, Date, Percent, Promil, Multipacket-String |
| 1 | Unit | Hz, °C, Time, Date, PWM, CAN-ID, Name, Description, Room |
| 4 | Value | 32Bit |
h1. V3
|_. Size |_. Decription |_. Examples |
| 2 | Object | |
| 1 | Sub-Id; | Flags, Subid |
| 1 | Unit/Type | Hz_int, °C_centi, Time, Date, PWM_milli, CAN-ID, Name, Description, Room |
| 4 | Value | 32Bit |
h2. Flags
4 Bit multi message count
4 Bit multi message pos
Length in Bytes given via CAN?
Strings with max. 64 characters.
h2. Multimessage package
There should be the possibillity to write the complete SPI-Flash even if it takes forever.
Not every slave needs to be able to send super big blocks. But every slave should be able to
send e.g. descriptions.
h1. V4
|_. Size |_. Decription |_. Examples |
| 2 | Object | |
| 2 | Counter | |
| 4 | Value | 32Bit |
The data has to be stored in memory anyways. So one block can not be infinite large.
Flash has to be written block by block. One erase sektor can be 2K. Limiting the packet size to 64K is ok for writing to flash.