def cmdTty(args):
    assert args.device_index != None # you must pass it
    m3List = UsbHelper.getOrderedM3List()
    info = m3List[-1-args.device_index]
    ttyName = "/dev/%s" % info["port"]
    subprocess.check_call(["miniterm.py", ttyName, "500000"])
Exemple #2
0
def cmdTty(args):
    assert args.device_index != None  # you must pass it
    m3List = UsbHelper.getOrderedM3List()
    info = m3List[-1 - args.device_index]
    ttyName = "/dev/%s" % info["port"]
    subprocess.check_call(["miniterm.py", ttyName, "500000"])
def cmdPrintTty(args):
    assert args.device_index != None # you must pass it
    m3List = UsbHelper.getOrderedM3List()
    info = m3List[-1-args.device_index]
    print "/dev/%s"%info["port"]
Exemple #4
0
def cmdPrintTty(args):
    assert args.device_index != None  # you must pass it
    m3List = UsbHelper.getOrderedM3List()
    info = m3List[-1 - args.device_index]
    print "/dev/%s" % info["port"]