mirror of
https://gitlab.com/manzerbredes/esds.git
synced 2025-04-19 12:09:44 +00:00
Debug wired communications when receiver is off.
This commit is contained in:
parent
33ffa0b6e0
commit
18c705a11e
4 changed files with 15 additions and 12 deletions
|
@ -8,5 +8,8 @@
|
|||
[t=3.000,src=n1] Turned off
|
||||
[t=4.000,src=n1] Turned on
|
||||
[t=5.000,src=n1] Receive failed code=-1
|
||||
[t=18.000,src=n0] End
|
||||
[t=18.000,src=esds] Simulation ends
|
||||
[t=5.000,src=n1] Turned off
|
||||
[t=18.000,src=n0] End transmission
|
||||
[t=18.000,src=n0] Send 15 bytes to n1 on eth0
|
||||
[t=33.000,src=n0] End transmission
|
||||
[t=33.000,src=esds] Simulation ends
|
||||
|
|
|
@ -17,5 +17,6 @@ def execute(api):
|
|||
code, data=api.receivet("eth0",1)
|
||||
msg="Received: "+data if code == 0 else "Receive failed code="+str(code)
|
||||
api.log(msg)
|
||||
api.turn_off()
|
||||
|
||||
|
||||
|
|
|
@ -5,4 +5,6 @@ def execute(api):
|
|||
api.send("eth0","Hello World!",1,1)
|
||||
api.wait(1) # Goto t=3s
|
||||
api.send("eth0","Hello World!",15,1) # Communication should not be aborted even if receiver turned_off (e.g UDP)
|
||||
api.log("End") # Should be printed at t=18s
|
||||
api.log("End transmission") # Should be printed at t=18s
|
||||
api.send("eth0","Hello World!",15,1) # Now receiver is off
|
||||
api.log("End transmission") # Should be printed at t=33s
|
Loading…
Add table
Add a link
Reference in a new issue