@@ -0,0 +1,624 @@
+#!/bin/python3%0A%0A# Simple script o open a serial port on Linux and display status%0A# www.xanthium.in%0A# Rahul.S%0A%0A# Make script executable  using chmod +x command %0A%0Aimport serial%0A%0ASerialPortName = input('%5CnEnter Port Name -%3E') # Enter Portname ttyUSBx /ttyACMx%0ASerialPortName = '/dev/' + SerialPortName       # create Full name by adding /dev/%0A%0ASerialPortObj = serial.Serial(SerialPortName)   # open the port with default settings%0A%0Aprint ('%5CnStatus -%3E ',SerialPortObj)            #display the status of the port%0A%0ASerialPortObj.close()                           #close the port%0A%0Aprint (f'%5CnSerial Port %7BSerialPortName%7D closed%5Cn')

Create SerTest.py