Open youlizhao opened 12 years ago
The problem of ftw_repetition.cc is that: if ((counter==d_repetition)&&(d_repetition!=0)) consume_each(d_N_symbols + 5 + 13);
The default value of d_repetion is 1. When we use counter value globally, and counter is larger than d_repetition, this function will never run consume_each. In other words, the scheduler just re-sends the d_N_symbols + 5 + 13 symbols, leading to unlimited reception of packets.
My solution is just to abandon repetition module, and use upper layer, e.g., while loop, to send multiple packets. However, the result seems to be not satifyable. Only the first packet is received even if we send multiple packets with inter-packet interval. It is a little strange. I guess something is wrong with the transmit buffer handling.
Bug Description: If I send two packets using while, I can receive multiple packets (much more than 2 packets). It seems that it is a stream.
I guess something is wrong with the repetition parameter. I should fix this bug last time :-(