ConstantBus Properties
The ConstantBus
is a simplified bus model that does not model the interaction between simultaneous messages on the bus medium. It has different modes:
- instant mode: messages are transmitted with no delay.
- constant_time mode: every message has a constant delay.
- constant_rate mode: every message has a transmission time proportional to its size.
Entry | Unit | Type | Description | Default Value |
---|---|---|---|---|
type |
S | Must be constant_bus for a ConstantBus . Must be the first entry. |
||
mode |
S |
instant , constant_rate or constant_time . |
||
time |
s | Duration | Time to transmit one message when in constant_time mode. | |
rate |
bytes/sec | FP | The transmission rate when in constant_rate mode. |
CAN Properties
The CAN
EE-component models a bus using the CAN bus protocol.
Entry | Unit | Type | Description | Default Value |
---|---|---|---|---|
type |
S | Must be can_bus for a CAN bus. Must be the first entry. |
||
bit_rate |
bits/s | I | Transmission rate of the bus. | 10 Mbits/s |
Examples
ConstantBus
{
"type": "constant_bus",
"mode": "constant_rate",
"rate": 100000,
"connected_to": [
"SteeringActuator",
"BrakingActuator",
...
]
}
CAN Bus
{
"type": "can_bus",
"bit_rate": 2000000,
"connected_to": [
"SteeringActuator",
"BrakingActuator",
...
]
}