Python Forum
Serial port Auto detection GUI Tour
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Serial port Auto detection GUI Tour
#1
Dear All I have decided to start a education lesson for those who come to serial port and Serial Port GUI like auto port detection while learning my self
This is step by step tour without hard coding abd easy to understand beginner who comes to this forum

The very simple code for Serial port detection

1 Install pySerial using pip install

we can detect serial port using three codes as showing follows

import serial.tools.list_ports


ports = list(serial.tools.list_ports.comports())
for p in ports:
    print (p)
Once you run the code you can see that in python shell the connected serial port name in my case I used Adrduno Uno CH340 Driver

COM15 - USB-SERIAL CH340 (COM15)
Using above three code we can check the what are device connected for the serial port

next STEP is create a simple GUI using Tkinter

Any one else can cognitive this tour using very simple code which beginner can understand
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [Tkinter] Serial Port data readout macellan85 3 7,753 Jun-19-2020, 12:32 PM
Last Post: deanhystad
  Read Data from Serial port PA3040 2 2,923 Feb-25-2020, 04:13 PM
Last Post: Denni

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020