diff --git a/modules/uhd/uhd_usrp_continous/uhd_io_continous.cpp b/modules/uhd/uhd_usrp_continous/uhd_io_continous.cpp index 359432f3aaa36d30d65546b27d3172bb7cd1426f..2852c2db34cab558630d3263ecbcae6014286953 100644 --- a/modules/uhd/uhd_usrp_continous/uhd_io_continous.cpp +++ b/modules/uhd/uhd_usrp_continous/uhd_io_continous.cpp @@ -278,7 +278,7 @@ int do_iio(const cmdlineParser & args) fprintf(stderr, "Warning: Error code 0x%x was returned during streaming.\n", error_code); fputs(error_string,stderr); //UHD_DO(uhd_rx_streamer_issue_stream_cmd(rx_streamer, &rx_stream_cmd)); - stop_signal_called = true; + //stop_signal_called = true; } } } diff --git a/projetcs/usrp_fmradio.tbj b/projetcs/usrp_fmradio.tbj new file mode 100644 index 0000000000000000000000000000000000000000..03c66ab09f3cb1ab5226e5f62f198302d2d540ee --- /dev/null +++ b/projetcs/usrp_fmradio.tbj @@ -0,0 +1,298 @@ +{ + "mod0": { + "mod_fm": { + "input_subjects": { + "sound": { + "instance_value": 1, + "tooltip": "Sound Input", + "type": "byte" + }, + "tmstamp_in": { + "instance_value": "", + "tooltip": "tmstamp_in", + "type": "uint64" + } + }, + "instance": { + "additional_args": "nice=2;", + "exec": "modules/mod_fm", + "instance_value": 1 + }, + "name": { + "name": "mod_fm" + }, + "output_subjects": { + "signal": { + "instance_value": 2, + "tooltip": "FM Signal", + "type": "vector" + }, + "tmstamp_out": { + "instance_value": "", + "tooltip": "tmstamp_out", + "type": "uint64" + } + }, + "parameters": { + "channels": { + "default": 1, + "instance_value": 1, + "tooltip": "Channels", + "type": "int" + }, + "in_spr": { + "default": 8000, + "instance_value": "16000", + "tooltip": "Input Sample Rate", + "type": "int" + }, + "out_spr": { + "default": 2500000, + "instance_value": 2500000, + "tooltip": "Output Sample Rate", + "type": "int" + }, + "sptype": { + "default": 0, + "instance_value": 0, + "range": { + "0": "16 bit Intel", + "1": "16 bit Moto", + "2": "int8", + "3": "uint8" + }, + "tooltip": "sample point format", + "type": "enum" + } + } + } + }, + "mod1": { + "source_soundcard": { + "input_subjects": { + "timestamp_in": { + "instance_value": "", + "tooltip": "timestamp ref", + "type": "uint64" + } + }, + "instance": { + "additional_args": "nice=1;", + "exec": "modules/source_soundcard", + "instance_value": 2 + }, + "name": { + "name": "soundcard" + }, + "output_subjects": { + "timestamp": { + "instance_value": "", + "tooltip": "timestamp in total bytes", + "type": "uint64" + }, + "wav": { + "instance_value": 1, + "tooltip": "Output Sample Points", + "type": "bytes" + } + }, + "parameters": { + "autostart": { + "default": 0, + "instance_value": 0, + "tooltip": "auto start", + "type": "int" + }, + "batch_size": { + "default": 0, + "instance_value": "0", + "range": { + "0": "Immediate", + "Others": "frame points for each channel" + }, + "tooltip": "channel batch size", + "type": "int" + }, + "channel": { + "default": 2, + "instance_value": "1", + "tooltip": "channels", + "type": "int" + }, + "device": { + "default": "default", + "instance_value": "default", + "tooltip": "device name", + "type": "string" + }, + "hide": { + "default": 0, + "instance_value": 0, + "tooltip": "hide window when start", + "type": "int" + }, + "sample_rate": { + "default": 44100, + "instance_value": "16000", + "range": { + "desc": "8000~192000" + }, + "tooltip": "sample rate of soundcard", + "type": "int" + } + } + } + }, + "mod2": { + "uhd_usrp_continous": { + "input_subjects": { + "wav_tx": { + "instance_value": 2, + "tooltip": "TX wav,IQ", + "type": "short[2]" + } + }, + "instance": { + "additional_args": "OUTD=1;nice=0;", + "exec": "modules/uhd_usrp_continous", + "instance_value": 4 + }, + "name": { + "name": "UHD_连续收发" + }, + "output_subjects": { + "wav_rx": { + "instance_value": 0, + "tooltip": "RX wav,IQ", + "type": "short[2]" + } + }, + "parameters": { + "dev_args": { + "default": "send_frame_size=1028,recv_frame_size=1028", + "instance_value": "send_frame_size=1028,recv_frame_size=1028", + "tooltip": "设备初始化参数.", + "type": "string" + }, + "rx_agc": { + "default": 0, + "instance_value": 0, + "range": "0=off,1=on", + "tooltip": "接收AGC开关", + "type": "int" + }, + "rx_atn": { + "default": "RX2", + "instance_value": "RX2", + "range": "TX/RX,RX2", + "tooltip": "接收天线名称", + "type": "string" + }, + "rx_bw": { + "default": "1.0", + "instance_value": "0.4", + "tooltip": "接收滤波器带宽(MHz)", + "type": "double" + }, + "rx_channel": { + "default": "0", + "instance_value": "0", + "range": "0,1", + "tooltip": "接收通道号", + "type": "int" + }, + "rx_frame": { + "default": "10000", + "instance_value": "10000", + "range": "200-10000", + "tooltip": "接收接口单次样点数", + "type": "int" + }, + "rx_gain": { + "default": 30, + "instance_value": "0", + "range": "0-100", + "tooltip": "接收增益(dB)", + "type": "double" + }, + "rx_on": { + "default": "0", + "instance_value": "0", + "tooltip": "接收开关", + "type": "int" + }, + "rx_rf": { + "default": "1000.0", + "instance_value": "1001", + "range": "0-6000", + "tooltip": "接收频率(MHz)", + "type": "double" + }, + "sprate": { + "default": 1, + "instance_value": "2.5", + "tooltip": "采样率(MHz)", + "type": "int" + }, + "tx_atn": { + "default": "TX/RX", + "instance_value": "TX/RX", + "tooltip": "发射天线名称", + "type": "string" + }, + "tx_bw": { + "default": "1.0", + "instance_value": "0.4", + "tooltip": "发射滤波器带宽(MHz)", + "type": "double" + }, + "tx_channel": { + "default": "0", + "instance_value": "0", + "tooltip": "发射通道", + "type": "int" + }, + "tx_frame": { + "default": "10000", + "instance_value": "10000", + "range": "200-10000", + "tooltip": "发射接口单次样点数", + "type": "int" + }, + "tx_gain": { + "default": 0, + "instance_value": 0, + "range": "0-100", + "tooltip": "发射增益(dB)", + "type": "double" + }, + "tx_on": { + "default": "0", + "instance_value": "1", + "tooltip": "发射开关", + "type": "int" + }, + "tx_rf": { + "default": "2000.0", + "instance_value": "1000", + "range": "0-6000", + "tooltip": "发射频率(MHz)", + "type": "double" + } + } + } + }, + "pos0": { + "x": 1701, + "y": 1596 + }, + "pos1": { + "x": 1451, + "y": 1425 + }, + "pos2": { + "x": 1969, + "y": 1470 + }, + "total_mods": 3 +}