osqzss / gps-sdr-sim

Software-Defined GPS Signal Simulator
MIT License
2.61k stars 760 forks source link

Receiving only one satellite signal on Android via HackRF #356

Open HaXlezi opened 1 year ago

HaXlezi commented 1 year ago

Hello guys, I was trying to spoof location on Samsung Android device using HackRF One + Portapack. I think I generated file correctly using manual on https://github.com/eried/portapack-mayhem/wiki/GPS-Sim. After starting the simulation my phone was receiving signal from only one satellite which is not enough to get a fix obviously (shown on picture). It is weird because it looks like the SDR transmit some signal but only for one satellite. Changing of transmitting power didn't change anything. I tested 3 Android phones. Airplane mode was on. Do you have any ideas? Thanks a lot!

316301512_692089512221640_5171745825372125150_n

osqzss commented 1 year ago

You might need a better clock: https://github.com/osqzss/gps-sdr-sim/issues/290

liwuxin commented 1 year ago

I have the same problem as you. The reason is that the satellite calendar of mobile phone gps is different from the simulated satellite track. Solution: a.To reset the cached satellite data in the GPS, you can try to restart the mobile phone in flight mode, and do not connect to the Internet during the process. b.Satellite calendar with the closest download time

HaXlezi commented 1 year ago

I have the same problem as you. The reason is that the satellite calendar of mobile phone gps is different from the simulated satellite track. Solution: a.To reset the cached satellite data in the GPS, you can try to restart the mobile phone in flight mode, and do not connect to the Internet during the process. b.Satellite calendar with the closest download time

Oh god, this one really helps, thank you! I knew about the airplane mode but I didn't try restarting. This was really heplful. Thanks man!

HaXlezi commented 1 year ago

I'm in London now! (In fact I'm in Prague ;) ) Thx MicrosoftTeams-image (3)

Commander-Crash commented 1 year ago

I have the same problem as you. The reason is that the satellite calendar of mobile phone gps is different from the simulated satellite track. Solution: a.To reset the cached satellite data in the GPS, you can try to restart the mobile phone in flight mode, and do not connect to the Internet during the process. b.Satellite calendar with the closest download time

TYSM