You only need to set TSNSCHED_ROOT.
Try running the example under showcases/tsn/gatescheduling/tsnsched with doubling the packet interval in both the application settings and the scheduler parameter as shown in the following diff:
levy@valardohaeris:~/workspace/inet/showcases/tsn/gatescheduling/tsnsched$ git diff omnetpp.ini
diff --git a/showcases/tsn/gatescheduling/tsnsched/omnetpp.ini b/showcases/tsn/gatescheduling/tsnsched/omnetpp.ini
index d6b32540dd..3b0d4a4a4f 100644
--- a/showcases/tsn/gatescheduling/tsnsched/omnetpp.ini
+++ b/showcases/tsn/gatescheduling/tsnsched/omnetpp.ini
@@ -19,8 +19,8 @@ record-eventlog = true
*.client*.app[*].source.packetNameFormat = "%M-%m-%c"
*.client*.app[0].source.packetLength = 1000B
*.client*.app[1].source.packetLength = 500B
-*.client*.app[0].source.productionInterval = 500us # ~16Mbps
-*.client*.app[1].source.productionInterval = 250us # ~16Mbps
+*.client*.app[0].source.productionInterval = 1000us # ~16Mbps
+*.client*.app[1].source.productionInterval = 500us # ~16Mbps
# server applications
*.server*.numApps = 2
@@ -67,10 +67,10 @@ record-eventlog = true
*.gateScheduleConfigurator.gateCycleDuration = 1ms
# 58B = 8B (UDP) + 20B (IP) + 4B (802.1 Q-TAG) + 14B (ETH MAC) + 4B (ETH FCS) + 8B (ETH PHY)
*.gateScheduleConfigurator.configuration =
- [{pcp: 0, gateIndex: 0, application: "app[0]", source: "client1", destination: "server1", packetLength: 1000B + 58B, packetInterval: 500us, maxLatency: 500us},
- {pcp: 4, gateIndex: 1, application: "app[1]", source: "client1", destination: "server2", packetLength: 500B + 58B, packetInterval: 250us, maxLatency: 500us},
- {pcp: 0, gateIndex: 0, application: "app[0]", source: "client2", destination: "server1", packetLength: 1000B + 58B, packetInterval: 500us, maxLatency: 500us},
- {pcp: 4, gateIndex: 1, application: "app[1]", source: "client2", destination: "server2", packetLength: 500B + 58B, packetInterval: 250us, maxLatency: 500us}]
+ [{pcp: 0, gateIndex: 0, application: "app[0]", source: "client1", destination: "server1", packetLength: 1000B + 58B, packetInterval: 1000us, maxLatency: 500us},
+ {pcp: 4, gateIndex: 1, application: "app[1]", source: "client1", destination: "server2", packetLength: 500B + 58B, packetInterval: 500us, maxLatency: 500us},
+ {pcp: 0, gateIndex: 0, application: "app[0]", source: "client2", destination: "server1", packetLength: 1000B + 58B, packetInterval: 1000us, maxLatency: 500us},
+ {pcp: 4, gateIndex: 1, application: "app[1]", source: "client2", destination: "server2", packetLength: 500B + 58B, packetInterval: 500us, maxLatency: 500us}]
# gate scheduling visualization
*.visualizer.gateScheduleVisualizer.displayGateSchedules = true
Regards,
levy