-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed packets not being sent up by CSMA ALOHA on listen state #21
base: master
Are you sure you want to change the base?
Conversation
@@ -982,6 +982,18 @@ CsmaAloha::stateRxData(Packet *data_pkt) | |||
stateCheckListenExpired(); | |||
} break; | |||
|
|||
case CSMA_STATE_LISTEN: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should not be the case. The case you are mentioning, should be handled by the state "RX_LISTEN". In fact, during Phy2MacStartRx, if state is LISTEN, state is moved to RX_LISTEN, which is then handled in stateRxData method. Could you please verify this?
No one said the problem does not exists, but we need to carefully debug it and my feeling is that your solution is a work-around. If you are receiving, this means that the previous transmission ended right? So someone should have called |
While using an Evologics physical layer with CSMA ALOHA on the top, the later blocked incoming packets from a bidirectional communication from being processed. The problem is that the state CSMA_STATE_LISTEN was not handled and so all the incoming packets were discarded.