-
Notifications
You must be signed in to change notification settings - Fork 237
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
Some questions about the code. #112
Comments
I don't fully understand your question, but the code segment you posted is used to sequentially count the number of IQ samples that are used both for packet and cyclic prefix (CP). Furthermore, the values 128 and 32767 are not indicated in the code segment but the value 640 refers to the number of data IQ samples (excluding CP) up to the first data OFDM symbol of an 802.11n packet (L-STF + L-LTF + L-SIG + HT-SIG + HT-STF + HT-LTF) (160 + 160 + 64 + 128 + 64 + 64) |
My apologies for the confusion, it should be the values 256 and 65536. As for your additional question:
In the code segment, what do the values 480 and 240 respectively refer to? |
You have to consider the entire line
The numbers 240 and 480 are specific to 802.11n packets such that 480 refers to the number of IQ samples present until mid-point HT-SIG and 240 is the number of IQ samples past 480 to reach the first OFDM symbol. As a side note, if you are curious to understand dot11_tx, the best approach will be simulating it inside Vivado using the provided test vectors. |
Here's my suggestion: Could you consider adding comments or using macros to replace these constant numbers where they are critical? This would enhance the code readability. |
Indeed that will enhance code readability but unfortunately I am not active on the project and I can't say what I can't do. |
thx for discussion,quite insightful |
Could you send email to [email protected] to introduce your self?
I did not introduce myself via email.
Our image is used directly or you build your own image?
Not used directly; just for learning.
What is your own modification?
Just for learning.
Versions: OS, Vivado, openwifi/openwifi-hw repo branch and commit revision
OS:ubuntu 1604, Vivado 2021.1,openwifi-hw/master.
Board/hardware type
NONE
WiFi channel number
NONE
Steps to reproduce the issue, and the related error message, screenshot, etc
NONE
Describe your debug efforts by Linux native tools, such as tcpdump and "cat /proc/interrupts"
NONE
Describe your debug efforts by: https://github.com/open-sdr/openwifi/blob/master/doc/README.md#Debug-methods
NONE
Any other thing we need to know for helping you better?
According to the logic of this code segment: within the range of 128 to 32767, insert 16 CPs every 64 data sampling points. I would like to know the origin of this logic. Why does it start from "128"? What do "32767" and "640" refer to? Thank you for providing answers.
The text was updated successfully, but these errors were encountered: