Skip to content
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

Add nmea passthrough so you can use marauder as a gps device. #406

Merged
merged 6 commits into from
Nov 27, 2023

Conversation

aubreyshomo
Copy link
Contributor

Added capability for the marauder to be put in NMEA passthrough mode via the "nmea" command. This relays NMEA sentences until the marauder gets a stopscan command. All other commands ignored and not echoed. stopscan not echoed but acknowledged.

Added two gps -g flag options: -g accuracy which prodives hdop, and -g nmea which provides the two standard NMEA sentences that relate the current position state in marauder. (Also, adds -g nmea -r for the most recent NMEA sentence received from the GPS, and -g nmea [-r] -p for the most recent NMEA sentence that is not one of the two locally generated that you get with just plain -g nmea. These two debug flags are not in help.)

Added a gps -n option, which can be gps -n all (for multisatalite mode), gps -n gps (spoof gps), gps -n glonass (spoof glonass), gps -n galileo (spoof galileo). defaults to all. not present in help. for compatibility with something that expects a specific sat type. (due to hacky workaround for "gps -g nmea" packets and MicroNMEA lib limitations.)

Tested with sd/gps daughterboard made by justcallmekoko and the following: flipper NMEA GPS from the app store, google earth, visual gps view, and gpscomplete (using gpsdirect driver) as a location sensor for windows.

You can turn your marauder into a gps device at 115200 baud outputting at 1hz, ignoring nmea commands, but providing nmea stream output for any flipper app you want, if you use the wifi dev board flipper version, or even using the uart to usb bridge, for anything that expects a normal nmea gps device on a desktop/laptop computer or navigation equipment.

With your wardriving kit, you also have a GPS device, and can use it as one.

nmea to start. stopscan to stop.

PXL_20231124_032613033

flpr-2023-11-26-09_13_45

@aubreyshomo aubreyshomo marked this pull request as ready for review November 26, 2023 18:54
@aubreyshomo
Copy link
Contributor Author

Changed my nmea scan code to 40, because you were using 39 for something new in your fork. It still shows a conflict I can't resolve, but I committed a flx for the actual conflict already.

@justcallmekoko justcallmekoko changed the base branch from develop to nmea November 27, 2023 14:53
@justcallmekoko justcallmekoko merged commit a704339 into justcallmekoko:nmea Nov 27, 2023
@aubreyshomo aubreyshomo deleted the master branch December 13, 2023 01:42
schrab pushed a commit to schrab/ESP32S3Marauder that referenced this pull request Jul 3, 2024
Add nmea passthrough so you can use marauder as a gps device.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants