Is there a way to identify the device data is being received from? (python)
- by Ed Prince
Summary
I have an MT4000 device connected to my computer using the serial port ttyS0. This is broadcasting data which is being received and read by a udp listener written in Python. I am also sending data manually through the terminal using a bash script I wrote.
The Goal
Is it possible to identify the device being used? The aim is for a web-page to allow the user to select which device they wish to see the data being sent. I would rather achieve this by directly identifying the device rather than saying anything from ttyS0, in case a different device is plugged in on that port.
The Answer
Is this possible, and if so, how? Everything I have found so far, is on identifying through a specific port.