I am using Python v2.7 on Win 7 PC.
I have my robot connected to computer and COM 4 pops out in device manager. My plan is to send API to robot through COM 4.
Here is the question, how could python identify which serial port is for which device? So far, I can list all the available ports in python, but I need to specifically talk to COM 4 to communicate with robot.
As a newie, any help would be appreciated.
ser = serial.Serial(3)   # open COM 4
print ser.name    # check which sport was really used and 'ser' is the serial object
Here is the python code to open specific serial port.
Serial Port Identity in Python