From c2e6aad09f893e4c8cb5cb9243c32a0d6d0d1e12 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Thu, 9 Jun 2022 21:48:32 +0200 Subject: Init ESDS repository --- tests/simple_read_eth0_ncom_2s1r/receiver.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/simple_read_eth0_ncom_2s1r/receiver.py (limited to 'tests/simple_read_eth0_ncom_2s1r/receiver.py') diff --git a/tests/simple_read_eth0_ncom_2s1r/receiver.py b/tests/simple_read_eth0_ncom_2s1r/receiver.py new file mode 100644 index 0000000..819fc84 --- /dev/null +++ b/tests/simple_read_eth0_ncom_2s1r/receiver.py @@ -0,0 +1,12 @@ +#!/usr/bin/env python + +def execute(api): + api.log("eth0 is {}".format(api.read("eth0_ncom"))) + api.wait(624) + api.log("eth0 is {}".format(api.read("eth0_ncom"))) + api.wait(624) + # Now we are at 624*2=1248 (first sender start a communication) + api.wait(1) # Let the communication starts + api.log("eth0 is {}".format(api.read("eth0_ncom"))) # Should print 1 + api.wait(1) # Now second sender start a communication + api.log("eth0 is {}".format(api.read("eth0_ncom"))) # Should print 2 -- cgit v1.2.3