Commit Graph

11 Commits

Author SHA1 Message Date
Will Greenberg
a977cc69e5 wavehunter: add comments 2024-01-10 17:04:09 -08:00
Will Greenberg
7b972ef5e4 wavehunter: add QMDL storage
Instead of reading/writing to a single QMDL file, we now can manage
a directory of several files, and have the ability to start/stop writing
to them on the fly.

This commit also adds graceful exiting to the server, so we can perform
cleanup steps when the server's exiting.
2024-01-10 16:37:17 -08:00
Will Greenberg
c3d6227243 index.html: periodically update system stats 2024-01-05 10:55:16 -08:00
Will Greenberg
fe0e84ba18 wavehunter: adds static server, system stats
This commit does a couple things:

1. breaks out the pcap streaming logic into its own module
2. bundles wavehunter/static files into the binary for easy distribution
3. serves those static files
4. serves dynamic json representing system and diag stats

I also threw together the world's ugliest website to display all this.
2024-01-04 19:41:19 -08:00
Will Greenberg
7037928a6e wavehunter: add route to serve qmdl file
This is easier than pulling files via adb
2024-01-03 11:29:58 -08:00
Will Greenberg
84f2fc1751 wavehunter: add some debug logging for blocking calls
This may come in handy if the read/write loop ever gets stuck.
2024-01-03 11:29:58 -08:00
Will Greenberg
13e0ed2679 Appease clippy 2024-01-03 11:29:58 -08:00
Will Greenberg
65b41bd541 wavehunter: add debug mode
This just runs the server off of a QMDL file, so we can run/test
the server locally w/o the Qualcomm hardware
2024-01-03 11:29:58 -08:00
Will Greenberg
aa0f044b8a wavehunter: split out code into different modules 2024-01-03 11:29:58 -08:00
Will Greenberg
f4caac147b Renaming wavehunter -> orca 2024-01-03 11:29:58 -08:00
Will Greenberg
e20fe92213 Refactor lib/binary into separate crates 2024-01-03 11:29:58 -08:00