readme
This commit is contained in:
parent
789e2e45d1
commit
58048e9a8a
@ -22,7 +22,7 @@ $ gcc gpssim.c -lm -O3 -o gps-sdr-sim
|
||||
|
||||
Use -n option can connect to a TCP source in Gnuradio for realtime simulation.
|
||||
|
||||
The tcp source should be set in "Server" mode, listening to port 1234 (as default, it can be changed by.option -n).
|
||||
The tcp source should be set in "Server" mode.
|
||||
|
||||
See tcp.grc as a example.
|
||||
|
||||
@ -77,7 +77,7 @@ Options:
|
||||
-b <iq_bits> I/Q data format [1/8/16] (default: 16)
|
||||
-i Disable ionospheric delay for spacecraft scenario
|
||||
-v Show details about simulated channels
|
||||
-n <port> Use TCP connection to Gnuradio TCP-Source for realtime simulation. (Default 1234).
|
||||
-n <port> Use TCP connection to Gnuradio TCP-Source for realtime simulation.
|
||||
```
|
||||
|
||||
The user motion can be specified in either dynamic or static mode:
|
||||
|
2
gpssim.c
2
gpssim.c
@ -1661,7 +1661,7 @@ void usage(void)
|
||||
" -b <iq_bits> I/Q data format [1/8/16] (default: 16)\n"
|
||||
" -i Disable ionospheric delay for spacecraft scenario\n"
|
||||
" -v Show details about simulated channels\n",
|
||||
" -n <port> Use TCP connect to Gnuradio TCP-Source for\n realtime simulation. (default 1234)\n",
|
||||
" -n <port> Use TCP connect to Gnuradio TCP-Source for\n realtime simulation.\n",
|
||||
(USER_MOTION_SIZE)/10.0,STATIC_MAX_DURATION);
|
||||
|
||||
return;
|
||||
|
2
tcp.grc
2
tcp.grc
@ -183,7 +183,7 @@
|
||||
</param>
|
||||
<param>
|
||||
<key>freq0</key>
|
||||
<value>100e6</value>
|
||||
<value>1575420000</value>
|
||||
</param>
|
||||
<param>
|
||||
<key>if_gain0</key>
|
||||
|
@ -2,7 +2,7 @@
|
||||
##################################################
|
||||
# GNU Radio Python Flow Graph
|
||||
# Title: Top Block
|
||||
# Generated: Sun Apr 23 02:13:05 2017
|
||||
# Generated: Sun Apr 23 02:23:32 2017
|
||||
##################################################
|
||||
|
||||
if __name__ == '__main__':
|
||||
@ -62,7 +62,7 @@ class top_block(gr.top_block, Qt.QWidget):
|
||||
##################################################
|
||||
self.osmosdr_sink_0 = osmosdr.sink( args="numchan=" + str(1) + " " + "hackrf" )
|
||||
self.osmosdr_sink_0.set_sample_rate(samp_rate)
|
||||
self.osmosdr_sink_0.set_center_freq(100e6, 0)
|
||||
self.osmosdr_sink_0.set_center_freq(1575420000, 0)
|
||||
self.osmosdr_sink_0.set_freq_corr(0, 0)
|
||||
self.osmosdr_sink_0.set_gain(14, 0)
|
||||
self.osmosdr_sink_0.set_if_gain(40, 0)
|
||||
@ -73,7 +73,7 @@ class top_block(gr.top_block, Qt.QWidget):
|
||||
self.blks2_tcp_source_0 = grc_blks2.tcp_source(
|
||||
itemsize=gr.sizeof_gr_complex*1,
|
||||
addr="127.0.0.1",
|
||||
port=2345,
|
||||
port=1234,
|
||||
server=True,
|
||||
)
|
||||
(self.blks2_tcp_source_0).set_max_output_buffer(10000)
|
||||
|
28807
tro11110.17n
Normal file
28807
tro11110.17n
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user