furrtek / portapack-havoc

Custom firmware for the HackRF SDR + PortaPack H1 addon
GNU General Public License v2.0
814 stars 221 forks source link

Feature request: GPS Simulator #305

Closed NeVa0Theresia closed 4 years ago

NeVa0Theresia commented 4 years ago

Would it possible to add a GPS Simulator function? I saw some Chinese clones have it in some firmware. THX.

furrtek commented 4 years ago

The Chinese clones "GPS Simulator" menu item is just a barely modified version of the IQ file replay app.

NeVa0Theresia commented 4 years ago

Thank you so much for your time!

jamesshao8 commented 4 years ago

Hi @furrtek , I am trying to duplicate this (gridrf version). I modified replay myself, since they are not open source.I made replay working with C8 and sample rate of 2MHz. However, when I was trying to send out the signal, the spectrum is a little different and cell phone can't lock onto that signal.

Can you give me some advice? I will post my code on github. I hereby post the spectrum with gridrf transmitting and my own (4x 8x oversample rate). GridRF 20200214145625852 Mine 4x 20200214150239247 Mine 8x 2020021415033030

When I was using 4x sample rate, my cell phone can receive some of the gps signal, but can't lock. When using 8x sample rate, none of the satellite signal can be received. 20200214150255110

jamesshao8 commented 4 years ago

https://github.com/jamesshao8/portapack-havoc-modified/blob/master/firmware/baseband/proc_gps_sim.cpp https://github.com/jamesshao8/portapack-havoc-modified/blob/master/firmware/baseband/proc_gps_sim.hpp https://github.com/jamesshao8/portapack-havoc-modified/blob/master/firmware/application/apps/gps_sim_app.cpp https://github.com/jamesshao8/portapack-havoc-modified/blob/master/firmware/application/apps/gps_sim_app.hpp

This is my modification of the code. Please give me some advice. Thank you. @furrtek

jamesshao8 commented 4 years ago

nevermind, I have already fixed it.

BreakSecurity commented 4 years ago

@jamesshao8 please try to do a pull request ;)

jamesshao8 commented 4 years ago

Hi @BreakSecurity I dont know how to pull my code here, I guess it requires furrtek's consent, right? You can check the code in my repository: https://github.com/jamesshao8/portapack-havoc-modified or you can directly try my firmware here. portapack-h1-havoc-gps.zip