[Tutor] connecting to USB

BILAL Mustapha Mustapha.Bilal at imag.fr
Wed Jun 6 11:02:01 CEST 2012


  I am working to connect to a serial link (USB). In order to do that I 
have to write this command:

sudo ../../tools/stm32w/serialdump-linux -b115200 -d10000 (keeping in 
mind dat*serialdump-linux*, which is in the path, is not a folder, it's 
an executable)

To get to the root, I have used: returncode = 
subprocess.call(["/usr/bin/sudo", "/usr/bin/id"])

Then to connect to the USB through the command above I tried the following:

usb = 
stdout=PIPE, stdin=PIPE, stderr=STDOUT)


  But I am getting an error, it's considering that serialdump-linux as a 

  Any help how I can run the command?

  Many thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20120606/c9c60492/attachment.html>

More information about the Tutor mailing list