-
Notifications
You must be signed in to change notification settings - Fork 668
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
Timestamp #338
Comments
the tsf time of CSI should be from this code in driver: Line 530 in 0ce2e6b
tsft_low and tsft_high are from FPGA tsf counter value (brought by the packet captured). Maybe you should set tsft_low and tsft_high (in total 64bit value with unit microsecond) by your system time (you could convert it to 64bit value in microsecond) by sdrctl command via this piece of code in driver: The command: https://github.com/open-sdr/openwifi/blob/master/doc/README.md#get-and-set-a-parameter Other possible way is read/write the tsf counter register. Search "module_name: xpu" in https://github.com/open-sdr/openwifi/blob/master/doc/README.md#get-and-set-a-register-of-a-module . reg_idx 2 and 3. |
What you did is not what I said in my reply. You need to try what I said. |
If you capture packet via:
The 1st command creates an monitor interface mon0. The 2nd command captures packets into a file: openwifi.pcap. To monitor only the incoming packet from the air (exclude the packets outcoming from the board), you can use
Remember to change 66:55:44:33:22:60 to MAC address of your openwifi NIC sdr0 . |
I have tried what you said, and I have found the tsf time in wireshark. I'm still trying to align the tsf time and csi information of the same packet. |
Please check this discussion: |
Hi
I have encountered a problem about timestamp. I use one openwifi(antsdr E310) to serve as AP,another openwifi(antsdr E310) to serve as client. I write a simple socket communication between AP and client to communicate some information and at the same time, I get CSI from the client board.
I found that the timestamp showed in side_info_display.py result is the tsf time of CSI.
And I want to align one CSI to the corresponding packet.
I use
tcpdump -i sdr0
to sniffer the packet. And I saw that below. The ip address of AP is 192.168.13.1, the ip address of client is 192.168.13.12.The time before IP is the system time because when I running 'date' in the shell of ubuntu, the time is the same.
Could you please help me to explain how to align one CSI to the corresponding packet?
The text was updated successfully, but these errors were encountered: