From f4ff01b45d7c3a127a8856f9e001c39fb38e0aac Mon Sep 17 00:00:00 2001 From: Tom Clark Date: Thu, 9 Jun 2022 14:27:46 +0200 Subject: [PATCH] ENH: add port poller to tell the port address of the receiver on an rPi --- poll.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 poll.py diff --git a/poll.py b/poll.py new file mode 100644 index 00000000..a44e0d54 --- /dev/null +++ b/poll.py @@ -0,0 +1,13 @@ +import os + + +# On an rpi, you get many addresses because it has lots of ports. +# Run this address to find which port is connected to the gateway receiver +input("Make sure device is removed, then press a key...") +b4 = os.listdir("/dev") +input("Now plug in the device, then hit any key...") +after = os.listdir("/dev") +print("Newly plugged in devices:\n") +for line in after: + if line not in b4: + print(line)