|
|
## 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 their size.
|
|
|
|
|
|
| Entry | [Unit](/user-docs/JSON-scenarios-reference#units) | [Type](/user-docs/JSON-scenarios-reference#types) | 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](https://en.wikipedia.org/wiki/CAN_bus) protocol.
|
|
|
|
|
|
| Entry | [Unit](/user-docs/JSON-scenarios-reference#units) | [Type](/user-docs/JSON-scenarios-reference#types) | 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` |
|
|
|
|
|
|
---
|
|
|
Next: [Sensor and Actuator Properties](/user-docs/json-scenario-reference/Sensor-and-Actuator-Properties) |
|
|
\ No newline at end of file |