python - Pyserial COM Port issue -


i using pyserial 2.6 on windows 7, , trying connect tiva c series launchpad. listed com5 under device manager, , i've downloaded , installed necessary drivers. program board using ti's ccs, , connects , works fine.

but, reason, when try access using pyserial, not recognized. run:

python -m serial.tools.list_ports 

i get:

com1 com3 com4 3 ports found 

but not find com5... tiva is. have no idea what's going on. i'm not sure what's going on... there doing wrong? linked installation instructions followed installing pyserial. there else needs done..?

thank much

well can anything. following code works me:

def _scan_com_ports(self):     """     scan available com ports. return list of tuples (num, name)     """     available = []     in range(10):         try:             s = serial.serial(i)  # if not existing exception occured             available.append((i, s.portstr))             s.close()  # explicit close 'cause of delayed gc in java             if debug:                 print("com:", + 1)         except serial.serialexception:             if debug:                 print("not open", i)             # needed cope comp witch not open             pass     return available 

probably search gives early.


Comments

Popular posts from this blog

javascript - Create a stacked percentage column -

Optimising Firebase database by automatically overwriting data -

javascript - Angular UI-Grid customTemplate directive causing rows to load slowly/? -