How to declare pending state in MATLAB?
Show older comments
Hello all, I am having the following doubt:
Suppose there are two transmitters and three receivers. Then at beginning of every time slot the link betwwen each transmitter and each receiver is in Pending state.
My query is that how can I model the above statement related to pending state in MATLAB. For simplicity we assume total time slots as 5.
Any help in this regard will be highly appreciated.
5 Comments
Walter Roberson
on 7 Apr 2023
Is this a wired connection or a wireless (radio, light) connection? With a wired connection it might be feasible to have Pending state at the beginning of each time slot if the link state can be quickly checked by examining (for example) CTS (clear to send). But for wireless then you need a transmit and receive and respond cycle to examine link state, and those cycles occur during time slots themselves, so you would not embed such a check within each time slot and would instead establish a link and use snooping to verify that the link is still available.
charu shree
on 7 Apr 2023
charu shree
on 7 Apr 2023
Walter Roberson
on 7 Apr 2023
You cannot, not unless you use sub-timeslots and your timeslots are a few times longer than the speed of light times the transmission distance.
You just would not do this. You would establish link state first and then start time slots in which the link state is not considered to be Pending. Establishing link state for each time slot is a waste.
Exceptions:
- if the link distance is very far you would instead send multiple copies of state configuration without waiting for a reply for one. The receiver would reply multiple with a copy of the state. When the transmitter has verified the receiver has the proper configuration the transmitter would send Activate commands. Time slots would become less meaningful.
- unless, that is, your time slots are something like "2 AM sidereal time for 30 minutes" during which the receiver orients its antenna towards you, and you establish a connection link. In that kind of limited meaning of time slot, then Yes it might make sense to establish state at the beginning of each time slot.
charu shree
on 7 Apr 2023
Answers (0)
Categories
Find more on Communications Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!