Loading ...
Sorry, an error occurred while loading the content.

Re: [softrock40] Re: SDR-Shell with transmit for Softrock rxtx series...

Expand Messages
  • Rob Frohne
    Hi Alex, Did you svn the sdr-for-if branch? It also appears that Glen has some further changes. (See later messages in this thread.) 73, Rob ... -- Rob
    Message 1 of 6 , Dec 24, 2009
    • 0 Attachment
      Hi Alex,

      Did you svn the sdr-for-if branch?

      It also appears that Glen has some further changes.  (See later messages in this thread.)

      73,

      Rob

      On 12/24/2009 01:08 AM, alexle188 wrote:
       

      Hi Rob,

      Thanks for the information. I svn'ed the code and compiled with just adding:

      #include <stdlib.h>

      in the file main_widgets. cpp

      There is no readme in the "trunk" that I svn'ed.

      Would it be possible for you to create a START_TX script, similar to your START_RX script, to set everything up?

      FYI, I have modified your START_RX script for my setup, and it is appended below.

      73's

      Alex

      ============ ========= ========= ========= ========= =========
      start_rx script
      ============ ========= ========= ========= ========= =========

      #!/bin/bash

      # define name used in the RMI registry
      NAME=SDR-SHELL
      export SDR_DEFRATE= 96000
      export JACK_BUFFER= 2048
      export LD_LIBRARY_PATH= /usr/local/ lib

      # start usbsoftrock daemon
      echo "starting usbsoftrock. .."

      usbsoftrock -a -d &

      # start jackd
      echo "starting jackd ..."

      pasuspender -- jackd -s -dalsa -Phw:0 -Chw:1 -r$SDR_DEFRATE -p${JACK_BUFFER} -n3&

      sleep 5
      # start RX DttSP
      echo "starting DttSP ${NAME}_RX ..."
      /usr/local/bin/ sdr-core --spectrum --metering --client-name= ${NAME}_RX --buffsize=$ {JACK_BUFFER} --ringmult=4 --command-port= 19001 --spectrum-port= 19002 --meter-port= 19003&

      sleep 5
      # connect receiver
      echo "connecting receiver ..."
      jack_connect system:capture_ 1 ${NAME}_RX:il
      sleep 2
      jack_connect system:capture_ 2 ${NAME}_RX:ir
      sleep 2
      jack_connect ${NAME}_RX:ol system:playback_ 1
      sleep 2
      jack_connect ${NAME}_RX:or system:playback_ 2
      sleep 2

      # start sdr-shell
      ./sdr-shell

      sleep 2
      sdrpid=`ps -ef|grep sdr-core|head -n1|awk -vORS='' '{print $2}'`
      echo "Killing sdr-core pid $sdrpid"
      kill $sdrpid >/dev/null

      sleep 2
      jackpid=`ps -ef|grep jackd|head -n1|awk -vORS='' '{print $2}'`
      echo "Killing jackd pid $sdrpid"
      kill $jackpid >/dev/null

      sleep 2
      usbsoftrockpid= `ps -ef|grep usbsoftrock| head -n1|awk -vORS='' '{print $2}'`
      echo "Killing usbsoftrock pid $usbsoftrockpid"
      kill $usbsoftrockpid >/dev/null


      -- 
      Rob Frohne, Ph.D., P.E.
      E.F. Cross School of Engineering
      Walla Walla University
      100 SW 4th Street
      College Place, WA 99324
      (509) 527-2075			 http://people.wallawalla.edu/~rob.frohne
      
    Your message has been successfully submitted and would be delivered to recipients shortly.