osqzss / gps-sdr-sim

Software-Defined GPS Signal Simulator
MIT License
2.75k stars 773 forks source link

how to select a specific hardware? #251

Closed vipulpjain closed 4 years ago

vipulpjain commented 4 years ago

Hi,

I am able to replay the GPS files using the below command.

$ usr/lib/uhd/examples/tx_samples_from_file --args="master_clock_rate=50e6" --file gpssim.bin --type short --rate 2500000 --freq 1575420000 --gain 30 --repeat

But when I connect two hardware, 1- USRP N210, 2- B200

and run the same command, it selects N210 for replay. How can I switch the hardware per my needs? I want to simulate LTE on N210 and GPS on B200.

I tried to add "type=b200" in the above command, still, it uses N210.

Note: If I remove N210 and then start GPS, it goes on B200, and then Re-connect N210 to transmit LTE.

vipulpjain commented 4 years ago

Used the below command to get it working. Hence closing the ticket.

/usr/lib/uhd/examples/tx_samples_from_file --args type=b200,master_clock_rate=50e6 --file gpssim.bin --type short --rate 2500000 --freq 1575420000 --gain 60 --repeat