I'm implementing serial protocol that states that after sending a particular byte, the emitter must wait X seconds to receive a response and if no response is received within the specified time, communication must timeout.
In the doc, it states: "Time-outs are used to physically disconnect the line."
But what does "physically disconnect the line" mean in pratical terms?
I see two possibilities.
- clear my reception stream and revert to initial state in communication
- or "Closing the port / reopening it" but I don't see any particular need in this operation since If i close my COM Port, the device in other end of the line wont know that the port com was closed on my side. Or am I wrong?
So, I would like to provide some precisions from what I could conclude after having completed the implementation.
The citation is in my opinion totally inaccurate which can lead to confusion.
The communication is composed by different states when starting a communication session as master, same goes for slave.
Here are the states from master perspective:
Becoming a master:
By reset I mean revert to initial state. And if you desire retry a few seconds later to init the communication.