<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    &nbsp;I am working to connect to a serial link (USB). In order to do that
    I have to write this command:<br>
    <br>
    sudo ../../tools/stm32w/serialdump-linux -b115200 -d10000 (keeping
    in mind dat<b> serialdump-linux</b>, which is in the path, is not a
    folder, it's an executable)<br>
    <br>
    To get to the root, I have used: returncode =
    subprocess.call(["/usr/bin/sudo", "/usr/bin/id"])<br>
    <br>
    Then to connect to the USB through the command above I tried the
    following: <br>
    <br>
    usb =
    Popen(['../../tools/stm32w/serialdump-linux','-b115200','-d10000'],
    stdout=PIPE, stdin=PIPE, stderr=STDOUT)<br>
    <br>
    usb.communicate()[0]<br>
    <br>
    &nbsp;But I am getting an error, it's considering that serialdump-linux
    as a folder!! <br>
    <br>
    &nbsp;Any help how I can run the command? <br>
    <br>
    &nbsp;Many thanks<br>
  </body>
</html>