portapack-mayhem / mayhem-firmware

Custom firmware for the HackRF+PortaPack H1/H2/H4
https://hackrf.app
GNU General Public License v3.0
3.32k stars 540 forks source link

Record gps lat, lon, satinuse from recorder app if there was gps signal. #1992

Closed htotoo closed 6 months ago

htotoo commented 6 months ago

Added the ability to Recorder to store GPS data with recordings. If an external GPS module present and sent valid data while the app was open (before start recording) it stores the latitude, longitude, and sats in use data to the metadata file (txt).

If the recording has GPS data, the filename will be appended with _GEO, so users will notice, if they share it, it can have sensitive data.

If you record multiple signals, and the GPS module works fine, each recording will have the latest gps data.

This PR is only to store the coordinates, no display! Great for wardriving.

Requested here: https://github.com/portapack-mayhem/mayhem-firmware/issues/1966

For that issue, there could be an external app that loads the TXTs from capture folder, and what file has coordinates, those could be added to a map. I don't wanted to integrate this to any exists app, not to confuse users without ext GPS.

htotoo commented 6 months ago

EDIT: problem solved with different filename.

Comment was before: Before accept, consider an other option, to store the geo data to a separated file like CAPTURE016.geo to prevent users to accidentally share sensitive data.

Both methods have advantages and disadvantages.