Skip to content

DrYerzinia/polarcube-gnuradio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Polarcube GNU Radio Blocks/Flowgraphs/ClientSW

Installation

You will need swig and pyephem installed:

sudo apt-get install gnuradio build-essential cmake git doxygen pkg-config libuhd-dev python-pip swig libyaml-dev
sudo pip2 install pyephem
sudo pip2 install prettytable Mako pyaml dateutils --upgrade

All important blocks needed for flowgraphs are in blocks/gr-spacegrant.

To complie cd into that directory and do:

mkdir build
cd build
cmake ..
make
sudo make install
sudo ldconfig

Flowgraphs

Located in the GRC directory.

  • general_test includes flowgraphs for testing various parts of the polarcube flowgraphs with different SDR's etc.
  • polarcube includes flowgraphs for communicating with polarcube with different SDRs.

Using the USRP2_WBX_Tun_TapNode:

  • gnuradio-companion must be run as sudo for the TUNTAP device to work
  • Remeber to setup AX.25 addressing and RX address filtering.
  • UFTP requires libssl-dev to compile
  • To get both ends to hear eachother some small Manual Frequency Correction may be required.
  • The following network configurations depend on your IP.
    • sudo ifconfig tun0 192.168.200.1
      • 192.168.200.1 is the IP your device will have
    • sudo ip route add 192.168.200.0/24 dev tun0
      • 192.168.200.0/24 is the IP block you want to assign for the tunnel device network
    • sudo ip link set dev tun0 mtu 256
      • AX.25 Link layer can't handle packet sizes over 256
    • ./uftp -I tun0 -H 192.168.0.2 -M 192.168.0.2 -r 2 test.txt
    • ./uftpd -I tun0
      • You must specify interface on server side or it fails
  • Alternate network configuration
    • sudo ifconfig tun0 1.1.1.2
    • sudo ip route add 1.1.1.0/24 dev tun0
    • sudo ip link set dev tun0 mtu 256
    • uftp -I tun0 -s 10 -r 2:2:2 -b 600 file_name
  • Alternate CDH configuration
    • stty -F /dev/ttyS2 115200 -crtscts -ixon
    • slattach -L -m -s 115200 -p slip /dev/ttyS2
    • ifconfig sl0 1.1.1.1 pointopoint 1.1.1.2 mtu 256 multicast up
    • by default UFTP stores files in /tmp if you dont give it a remote directory
  • You should be able to ping between devices as well as run UFTP without issues using this configuration.

Interface

In addition to using UFTP there are some python scripts for more efficent lower overhead data transfer.

NOTES

command for downlink at 115200 ./downlink_tx_arm -I sl0 -f F9LM.jpg -s 1.1.1.2 -w 40000 ./li_control -u 115200 -d 115200 -t 138

863 packets 196 bytes

50ms 52s 32 lost 50ms 52s 27 lost 45ms 48s 36 lost 40ms 44s 32 lost 3 resets

TODO

Radio Firmware

  • LI2 configuration changes from ground
  • SPI transactions

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published