This is the lookup table linking the transport block size index (determined by modulation and coding scheme) and the number of resource blocks to an LTE transport block size. It's taken from 3GPP [TS 36.213][36.213] (Table 7.1.7.2.1-1) at version 15.0.0. Multiply a TBS by 1000 to get the max throughput in bps.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| user www-data; | |
| worker_processes auto; | |
| pid /run/nginx.pid; | |
| events { | |
| worker_connections 768; | |
| } | |
| http { | |
| sendfile on; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM ubuntu:16.04 | |
| RUN apt-get update && apt-get install -y gnuradio-dev \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN apt-get update && apt-get install -y git cmake \ | |
| && git clone git://github.com/BastilleResearch/gr-lora.git \ | |
| && cd gr-lora \ | |
| && mkdir build \ | |
| && cd build \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import subprocess | |
| from time import sleep | |
| from mininet.net import Mininet | |
| from mininet.node import Host, Switch | |
| from mininet.cli import CLI | |
| from mininet.link import TCLink | |
| from mininet.log import setLogLevel | |
| from mininet.topo import Topo |
Dead simple serial-over-LoRa pipe using Pycom modules.
Note that this example is only half-duplex. You will need to implement some kind of flow control / media access control to be able to use it like a full duplex pipe.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /usr/bin/env python | |
| import threading | |
| from scapy.all import * | |
| import matplotlib as mpl | |
| import matplotlib.pyplot as plt | |
| import matplotlib.style | |
| from matplotlib import animation | |
| import numpy as np |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Put this file somewhere on your path | |
| # run `source ros-mdns {master-hostname}` | |
| export ROS_MASTER_URI=http://$1.local:11311 | |
| export ROS_HOSTNAME=$(hostname).local |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import numpy as np | |
| from matplotlib.cm import get_cmap | |
| import rospy | |
| import sensor_msgs.msg as sensor_msgs | |
| import std_msgs.msg as std_msgs | |
| def point_cloud(points, parent_frame): | |
| """ Creates a point cloud message. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import numpy as np | |
| import geometry_msgs.msg as geo_msgs | |
| import rospy | |
| import mesh_msgs.msg as mesh_msgs | |
| def publish_mesh(pub): | |
| mesh = mesh_msgs.TriangleMeshStamped() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Args: source destination | |
| # Needs rsync and inotify-tools | |
| # Hidden files and folders are excluded via regex (inotifywait) and patterns (rsync) | |
| while true; do | |
| rsync -avz --exclude ".*" --exclude ".*/" $1 $2 | |
| inotifywait -r -e modify,attrib,close_write,move,create,delete --exclude="\/\." $1 | |
| done |
