Is there a way to identify the device data is being received from? (python)
Posted
by
Ed Prince
on Super User
See other posts from Super User
or by Ed Prince
Published on 2014-08-21T09:32:30Z
Indexed on
2014/08/21
10:23 UTC
Read the original article
Hit count: 286
python
|serial-port
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.
© Super User or respective owner