how to integrate my code with CSMA/CA.

12 views (last 30 days)
Lohith
Lohith on 18 Feb 2024
Commented: Manikanta Aditya on 28 Feb 2024
I have 10 nodes and a sink node. In my code the iteration goes from 1 to 10 ( nodes ), where for each node an optimal path is discovered to reach the sink node. Now i want to integrate CSMA/ca to this existing code. Where should i add CSMA code. Because during the iteration only one node is active, while the others nodes are not active, so how channel sensing is done. Let me know any extra information needed to answer.
  1 Comment
Manikanta Aditya
Manikanta Aditya on 28 Feb 2024
Hey Lohith,
I think while a single node is "active" in your code during the pathfinding iteration, CSMA/CA wouldn't be directly applicable, because your current setup doesn't involve a shared wireless medium where multiple nodes could potentially transmit simultaneously. Each node is simply calculating the optimal path, which is a local operation not requiring communication.
Since there's no shared medium and only one node is active at a time, there's no chance of collisions, which is the primary concern that CSMA/CA addresses.
Therefore, integrating CSMA/CA code directly wouldn't be beneficial in this specific scenario. However, if you plan to implement actual communication between nodes in the future, then you would need to consider a suitable protocol like CSMA/CA or other similar protocols designed for wireless communication. In such a scenario, CSMA/CA would be implemented within the communication layer, not within the pathfinding code.
Hope this gives some idea.

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!