osqzss / gps-sdr-sim

Software-Defined GPS Signal Simulator
MIT License
2.73k stars 770 forks source link

Geolocation does not change #408

Closed Keyt13 closed 3 weeks ago

Keyt13 commented 4 weeks ago

I use hackrf one great Scott gadgets (ANT500 / GPS ACTIVE ) antennas. (R8) Checking through Android applications, gps signals are coming. Geolocation does not change. I did it on Kali Linux , android , windows .

The program always disconnects itself when total time 300.xxx

If you can help me solve the problem . I can explain in detail what I did and how I did it

Keyt13 commented 4 weeks ago

IMG_1943 dc0ddaa35d761fe71c48219cc942c754

victor-vu-max commented 3 weeks ago

Same here, really stressful

victor-vu-max commented 3 weeks ago

IMG_UPLOAD_20240817_214032

Robotix-00 commented 3 weeks ago

Your second issue is intended behavior, as gps-sdr-sim only generates a 300 second spoofed signal by default. If you need more time, you can use the -d option when generating the .bin file and specify up to 86400s (24h). Note that this only applies to static mode.

As to you not obtaining a lock, you are either using to strong of a signal or are getting interference from the real gps satelites, as gps sdr generates only 11 satelites, and you are receiving 39. If you dont receive any satelites when not spoofing, this means that your spoofed signal is to strong and you should consider using external attenuators. The readme recommends 75db of overall attenuation.

victor-vu-max commented 3 weeks ago

335e0d7a-3a71-4a11-9cbd-5b7dbd6b39ef 14957c9dd76d73332a7c Capture11 Capture22 Geolocation does not change even i switched to flight mode on mobile

Robotix-00 commented 3 weeks ago

You are not using external attenuator. The readme describes the hardware like so: "The TX port of a particular SDR platform is connected to the GPS receiver under test through a DC block and a fixed 50-60dB attenuator." Those are parts that need to be put in between the sdr and the antenna to achieve the right result. GPS is a very weak signal, as the satelites are quite far away, so your sdr is way stronger than your receiver could ever reasonably expect.

victor-vu-max commented 3 weeks ago

I have read about how to degrade the GPS signal emitted from the R8 antenna from the SDR. However, the GPS data on current Androin or IOS phones uses A-GPS technology and it depends on Wi-Fi or Bluetooth connections. Therefore, GPS spoofing is completely impossible with these mobile devices.

Keyt13 commented 3 weeks ago

Thank you all. With the help of Android apps I managed to change it, but the coordinates I specified are as different as possible from what I was given.

Can you tell me what might be affecting this?

Keyt13 commented 3 weeks ago

IMG_1993 IMG_1992 IMG_1991 IMG_1990 IMG_1989

Keyt13 commented 3 weeks ago

Thank you all for responding. I did it!

Robotix-00 commented 3 weeks ago

You have spaces in between your location when generating the signal. Gps sim interprets those as different attributes. If you remove the spaces everything should work.