Re: [Omnetpp-l] TSNsched problem

116 views
Skip to first unread message

Levente Mészáros

unread,
Jun 7, 2022, 3:48:20 AM6/7/22
to OMNeT++ Discussion List
Can you check if the output.json file is produced? Maybe your current working directory should be set to where it is.

Regards,
levy

On Tue, Jun 7, 2022 at 8:44 AM lee <ghjk1...@gmail.com> wrote:
Dear all:
I'm using inet 4.4 TSNschedGateScheduleConfigurator , i was able to deserialize the input and the constraint was met, but i met with this problem


22.PNG

How can i solve it?

Best,
lee

--
You received this message because you are subscribed to the Google Groups "OMNeT++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/omnetpp/088704f5-90ae-4f3e-aa16-3b63e03c2885n%40googlegroups.com.

lee

unread,
Jun 7, 2022, 4:41:21 AM6/7/22
to OMNeT++ Users
When I change the output file name to “-TSNeched-output.json”in TSNschedGateScheduleConfigurator

23.PNG
It generate the output.json,but ran with the above problem.
When I change the output file name to “output.json”in TSNschedGateScheduleConfigurator

25.PNG
it can't generate the output.json,and ran with this problem
24.PNG
which directory should i use? or it can be something wrong with the TSNsched?

levy 在 2022年6月7日 星期二下午3:48:20 [UTC+8] 的信中寫道:

Levente Mészáros

unread,
Jun 7, 2022, 5:30:24 AM6/7/22
to OMNeT++ Discussion List
There is a ClassCastException in your second screenshot, it seems to me that there is another problem under the hood.

I can't tell you what's wrong with your example from this information, but the way INET uses TSNsched is quite simple. INET produces an JSON file from the network configuration, which is then read by TSNsched when it is run as a command line tool. You can run the exact same command from your terminal that INET executes during the initialization of the simulation. The result is another JSON file, which is read by INET during the initialization phase of the simulation. Finally, INET configures all TSN related modules and applications according to the schedule computed by TSNsched.

Regards,
levy

lee

unread,
Jun 7, 2022, 6:12:11 AM6/7/22
to OMNeT++ Users
Dear levy:
When I change the output file name to “output.json”in TSNschedGateScheduleConfigurator
i ran with the invehicle example in inet 4.4, this is the whole exception

best,
lee

26.PNG

levy 在 2022年6月7日 星期二下午5:30:24 [UTC+8] 的信中寫道:

lee

unread,
Jun 7, 2022, 6:32:55 AM6/7/22
to OMNeT++ Users
27.PNG
Dear levy:
Should i need to set the TSNsched output file path?

lee 在 2022年6月7日 星期二下午6:12:11 [UTC+8] 的信中寫道:

Levente Mészáros

unread,
Jun 7, 2022, 7:14:51 AM6/7/22
to OMNeT++ Discussion List
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

lee

unread,
Jun 7, 2022, 7:38:36 AM6/7/22
to OMNeT++ Users
Dear levy:
I double the packet interval and  in both the application settings and the scheduler parameter
and it just can't simulating.

best, 
lee


levy 在 2022年6月7日 星期二下午7:14:51 [UTC+8] 的信中寫道:

Levente Mészáros

unread,
Jun 7, 2022, 7:50:37 AM6/7/22
to OMNeT++ Discussion List
I cannot help if you barely provide any details.

lee

unread,
Jun 7, 2022, 8:02:33 AM6/7/22
to OMNeT++ Users
28.PNG
 I double the packet interval and  in both the application settings and the scheduler parameter,and use run as /omnet++ simulation and the simulating figure is not show
i use the command line opp_run omnetpp.ini
30.PNG
and shows the result
29.PNG

best,
lee
levy 在 2022年6月7日 星期二下午7:50:37 [UTC+8] 的信中寫道:

Levente Mészáros

unread,
Jun 7, 2022, 8:11:50 AM6/7/22
to OMNeT++ Discussion List
Try running the simulation from the command line as shown in the attachment.

tsnsched.log

lee

unread,
Jun 7, 2022, 9:12:58 AM6/7/22
to OMNeT++ Users
Dear levy:
it works,
Thank you

Best,
lee

levy 在 2022年6月7日 星期二下午8:11:50 [UTC+8] 的信中寫道:
Message has been deleted

lee

unread,
Jun 8, 2022, 7:49:09 AM6/8/22
to OMNeT++ Users
Dear levy:
when i running on the inet/showcases/combiningfeatures/invechicle/, i ran the simulation on general  ethernet
i got the following error.
31.PNG
How can i parameterize the frontswitch module?

best,
lee
lee 在 2022年6月7日 星期二下午9:12:58 [UTC+8] 的信中寫道:
Reply all
Reply to author
Forward
0 new messages