Advertisement
Guest User

tetra.sh

a guest
Feb 2nd, 2016
642
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3.  
  4. function telive {
  5. /usr/bin/xterm -font fixed -bg black -fg white -geometry 203x60 -e "cd /tetra/telive && ./rxx" &>/dev/null &
  6. }
  7.  
  8. function tetrad {
  9. #start tetrad
  10. cd /tetra/bin
  11. ./tetrad &
  12. }
  13.  
  14.  
  15.  
  16.  
  17.  
  18. function onechannel {
  19. #start telive in xterm
  20. telive
  21. #start tetrad
  22. tetrad
  23.  
  24. #the actual osmocom TETRA receiver
  25. cd /tetra/osmo-tetra-sq5bpf-git/src
  26. ./receiver1 1 &
  27.  
  28. #start the flowgraph
  29. cd /tetra/graphs
  30. ./1ch.py
  31. }
  32.  
  33.  
  34.  
  35. function twochannel {
  36. #start gnuradio -> UDP for first channel
  37. cd /tetra/osmo-tetra-sq5bpf-git/src
  38. ./receiver1 1 &
  39.  
  40. #start gnuradio -> UDP for second channel
  41. cd /tetra/osmo-tetra-sq5bpf-git/src
  42. ./receiver1 2 &
  43.  
  44. #start telive
  45. #needed only once because we are monitoring a single network
  46. telive
  47.  
  48. #start the flowgraph
  49. cd /tetra/graphs
  50. ./2ch.py
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement