-
Notifications
You must be signed in to change notification settings - Fork 52
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
IndexError: list index out of range #11
Comments
Hi, this appears to be a parsing issue. The chipset header in your CSI data appears to be slightly different to those I've previously observed, and while the file does not successfully parse under the bcm43455c0 (Pi 3B+/4) format, it successfully parses with the bcm4366c0 (Asus RT-AC86U) format. Can you confirm the hardware you used to collect this data? e.g. Raspberry Pi 4, Asus RT-AC86U, or another device. Thanks. |
Thank you for your prompt reply! Thank you for your help! |
Great, I'm looking at this now. Can you also confirm the makecsiparams settings you used when configuring nexmon_csi? |
Sure! nexutil: If I enter
|
The format for setting a channel with nexutil is This is interesting though. I have been able to get your file to parse and this seems to be an exacerbated version of an issue I've encountered before. The pcap frame header appears to be 26 bytes larger than normal. I'm implementing a solution for this and am hoping to have it ready by the end of the day. I've included a visualisation of your data below as proof! Edit: Just to highlight, thanks for bringing this issue to me. Resolving small issues like this ensures I can keep this library up to date and ready to automatically parse any given CSI file. |
Great, thank you very much for your help! |
Apologies for the delay. This'll take a little time to implement elegantly. In the interest of making sure you have something, I've linked a temporary build you can install which will parse your files correctly. Any other nexmon filetypes will fail, but this will work with the system you're currently running. You can install it by navigating to the root folder (containing setup.py) and running: pip uninstall csikit
python setup.py install I hope to have a solution for this issue merged into master soon. Best of luck with your work! |
Awesome, it works! Edit: Great project by the way :-) |
Hey,
I have collected data using the Nexmon-CSI-Tool:
https://github.com/nexmonster/nexmon_csi/tree/pi-5.4.51-plus
I've collected the CSI data and store them in a pcap file :
output.zip
I dont even get an output of these File:
csikit output.pcap
Traceback (most recent call last):
File "/usr/local/bin/csikit", line 10, in <module> sys.exit(main())
File "/usr/local/lib/python3.7/dist-packages/CSIKit/__main__.py", line 57, in main display_info(args.file)
File "/usr/local/lib/python3.7/dist-packages/CSIKit/tools/get_info.py", line 7, in display_info metadata = csi_data.get_metadata()
File "/usr/local/lib/python3.7/dist-packages/CSIKit/csi/csidata.py", line 45, in get_metadata final_timestamp = timestamps[-1]
IndexError: list index out of range
If i use your examples, it works.
Thanks in advance!
The text was updated successfully, but these errors were encountered: