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

Re: [irlp-embedded] sending morse code using your embedded node

Expand Messages
  • Aaron Morrison
    Craig, Here s a slight modification/enhancement. This version will only call the cwpcm program for each parameter on the command line, and will handle any
    Message 1 of 3 , Oct 10, 2009
    • 0 Attachment
      Craig,

      Here's a slight modification/enhancement. This version will only call
      the cwpcm program for each parameter on the command line, and will
      handle any number of words on the command line (i.e. more than 9)


      --am
      Aaron AE4KO


      #!/bin/bash
      $BIN/aux1on
      usleep 700000
      while [ ! -z "$1" ]; do
      echo "$1" | cwpcm -sf -l 007 -p 1000 > /dev/dsp
      shift
      done
      usleep 250000
      $BIN/aux1off
      exit


      On 10 Oct 2009, at 15:26, craiginhouston wrote:

      >
      > I can't decide which is more fun - talking all around the world with
      > my embedded irlp node or fooling around with linux making the node
      > do interesting things.
      >
      > I found out that Dave Cameron has a cw binary on the embedded nodes
      > called "cwpcm" and it is located in the /home/irlp/bin folder.
      >
      > You can find the arguments for the cwpcm in this file
      >
      > /home/irlp/features/morse_id/id_now
      >
      > I wrote a script called "morse" below that will take up to 9 words
      > and then transmit the cw out your node transmitter.
      >
      > after putting this script on your node all you have to do is log in
      > as user repeater and type a command such as this:
      >
      > morse cq cq de wd5bdx net tonight at ten pm
      >
      > Have fun!
      >
      > Craig
      >
      > ----------------------------------
      >
      > #!/bin/bash
      > $BIN/aux1on
      > usleep 700000
      > echo "$1" | cwpcm -sf -l 007 -p 1000 > /dev/dsp
      > echo "$2" | cwpcm -sf -l 007 -p 1000 > /dev/dsp
      > echo "$3" | cwpcm -sf -l 007 -p 1000 > /dev/dsp
      > echo "$4" | cwpcm -sf -l 007 -p 1000 > /dev/dsp
      > echo "$5" | cwpcm -sf -l 007 -p 1000 > /dev/dsp
      > echo "$6" | cwpcm -sf -l 007 -p 1000 > /dev/dsp
      > echo "$7" | cwpcm -sf -l 007 -p 1000 > /dev/dsp
      > echo "$8" | cwpcm -sf -l 007 -p 1000 > /dev/dsp
      > echo "$9" | cwpcm -sf -l 007 -p 1000 > /dev/dsp
      > usleep 250000
      > $BIN/aux1off
      > exit
      >
      >
      >
      >
      >
      > ------------------------------------
      >
      > Yahoo! Groups Links
      >
      >
      >
    • Keith VE7GDH
      Aaron AE4KO wrote... ... And another. This will get the text from the file morse_text instead of from the keyboard. #!/bin/bash # Sends morse from file...
      Message 2 of 3 , Oct 11, 2009
      • 0 Attachment
        Aaron AE4KO wrote...

        > Here's a slight modification/enhancement...

        And another. This will get the text from the file "morse_text" instead
        of from the keyboard.

        #!/bin/bash
        # Sends morse from file...
        $BIN/aux1on
        usleep 700000
        cat "morse_text" | cwpcm -sf -l 007 -p 800 > /dev/dsp
        usleep 250000
        $BIN/aux1off
        exit

        Keith VE7GDH
        Node 1148
      Your message has been successfully submitted and would be delivered to recipients shortly.