You made no provision for a node to transmit messages to control the doors.I need someone to clarify my doubt from a practical point of view regarding the number of messages needed for the given requirements.
(hypothesis) In a vehicle, headlights can be turned on or off using buttons, and the temperature and humidity values will be displayed on a display installed in the car.
System consists of 4 nodes:
1. First Node: Here, there are 2 switch buttons to control two headlights.
2. Second Node: There are 4 switch buttons to open/close the 4 doors of the vehicle.
3. Third Node: This node monitors the temperature and humidity inside the vehicle.
4. Fourth Node: This node displays the temperature and humidity data.
Question : How many messages are required for the entire system ?
- First Node:
- It requires two messages to control the headlights (one to turn on and another to turn off).
- So, two messages are needed for the first node.
- Second Node:
- It receives commands to control the doors but doesn't need to transmit any messages.
- No messages are needed for the second node.
- Third Node:
- It requires one message to transmit the temperature and humidity data.
- So, one message is needed for the third node.
- Fourth Node:
- It receives the temperature and humidity data from the third node, so it doesn't need to send any messages.
Therefore, a total of three messages are required for the entire system to fulfill the given requirements
Thank you for your help! @Papabravo
You can use a single message for the first node. There is no reason to use two.
This simplistic method of architecting a system would have to be redone each time a new set of requirements comes along. This approach is deeply flawed. You should study how existing systems put together an adaptable general framework that is suited to multiple unique systems. This might include methods for nodes to document themselves.
I think you should consider the proposition that you need to study more and talk less.

