Commit 054d0a51 authored by Julian Zobel's avatar Julian Zobel
Browse files

LoRa network interface type

LoRa network header protocol
parent 4d4d15f7
...@@ -84,7 +84,18 @@ public enum PhyType { ...@@ -84,7 +84,18 @@ public enum PhyType {
* WiFi for UAV communication * WiFi for UAV communication
*/ */
WIFI_UAV_NET(NetInterfaceName.WIFI_UAV_NET, 0.01, 5 * Rate.Mbit_s, WIFI_UAV_NET(NetInterfaceName.WIFI_UAV_NET, 0.01, 5 * Rate.Mbit_s,
500 * Time.MICROSECOND, 2334, true); 500 * Time.MICROSECOND, 2334, true),
/**
* LoRa for LPWAN communication
*
* Assuming the following defaults: zero link-layer packet loss, 0.3 kbit/s BW,
* 500us latency, 1kByte MTU
*/
LORA(NetInterfaceName.LORA, 0, 1 * Rate.kbit_s,
500 * Time.MICROSECOND, 1024, true);
private double defaultDropProbability; private double defaultDropProbability;
......
...@@ -35,7 +35,11 @@ public enum NetProtocol { ...@@ -35,7 +35,11 @@ public enum NetProtocol {
/** /**
* Common known IPv4 network protocol, with a 20 byte header * Common known IPv4 network protocol, with a 20 byte header
*/ */
IPv4(20); IPv4(20),
/**
* LoRaWAN with 12 byte header
*/
LORA(12);
private final int headerSize; private final int headerSize;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment