Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Simonstrator
PeerfactSim.KOM
Commits
054d0a51
Commit
054d0a51
authored
Sep 14, 2018
by
Julian Zobel
Browse files
LoRa network interface type
LoRa network header protocol
parent
4d4d15f7
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/de/tud/kom/p2psim/api/linklayer/mac/PhyType.java
View file @
054d0a51
...
...
@@ -84,7 +84,18 @@ public enum PhyType {
* WiFi for UAV communication
*/
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
;
...
...
src/de/tud/kom/p2psim/api/network/NetProtocol.java
View file @
054d0a51
...
...
@@ -35,7 +35,11 @@ public enum NetProtocol {
/**
* 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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment