Other Parts Discussed in Thread: CC3200, CC3100, CC3220SF, UNIFLASH
Hello,
I was trying the "radiotool" command (transceiver/raw mode) and "send/recv" commands for UDP transfer over Wi-Fi.
The aim was to detect packet losses in shielded environment, with unidirectional traffic only. That is one LAUNCHCC3220MODASF is sending and the other receiving.
The code was modified accordingly.
The brief outline of changes done is as follows.
In the code serving the command "radiotool":
- Packet identifier field was added to detect number of packets lost.
- Capability was added using timers, to be able to configure a delay in micro-seconds (us), say 500 us, after every packet send. The purpose was to bring down the number of lost packets.
In the code serving the commands "send/recv":
- Packet identifier field was added.
- Timer was added to measure the time accurately (so as to calculate throughput more accurately.)
PER is calculated as follows:
PER = (packet num of last received packet - num of packets successfully received)/packet num of last received packet
In case of "radiotool" the PER (number of packets lost/total number of packets expected) was brought down from 0.01 to 0.00013 by changing the delay after every sl_Send from 0 us to 500 us. 500 us delay gave the best results, at 400 us, 300 us and 600 or 700 us, the number of packets lost was more than that observed at 500 us.
In case of "send/recv" (which was carried out using UDP over a WiFi connection between two LAUNCHCC3220MODASF boards, the PER was 0 for 100 packets, but if the number of packets transferred is made 1000, 10000, or 100000 the PER comes somewhere around 0.3 (30 %).
Now my question is that since the environment was a shielded one (shielded from outside RF radiation), and since the traffic is only in one direction (no change of modes between tx and rx), why are the packets getting dropped? I expected 0 packets drops.
--
Regards,
Neeraj Sallh