Re: running on WinPC + comunication via USB



martin.nkm@xxxxxxxxxxxxxx schrieb:
Hello, I have two questions.
1/ If I want to use Python and let my WinPC communicate via RS-232
with external embedded computer I know there is a pyserial module,
which I can use it. But what will happen if I want to replace RS-232
by USB? I know I can have virtual COM port, but all the configuration
parameters basically refer to RS-232 parameters - baudrate, bits,
stopbits, parity. In case of USB that's a nonsense I think. Does
anybody know?

Depending on the setup - no, it's the exact same thing. If e.g. the usb-device is a usb2serial converter or otherwise offers it's serveces as a serial-like device, it should work.

Additionally, there is libusb + a python-wrapping for that.

2/ Second is a basic question. Do I need also cygwin running on my
Windows PC to get running Python scripts? Or is that Python
interpreter (Win executable) self efficient? Thanks.

No cygwin needed. In fact you need to be careful *not* to mix python and cygwin-python. They can happily co-exist - but installing 3rd-party-packages for one doesn't imply they are available for the other.

Diez
.



Relevant Pages

  • Re: using a USB HID device
    ... > I want to use Python to interface with an USB HID device (not a ... > the need for a specific driver). ... Is this possible in pure Python on ... I found that USB ...
    (comp.lang.python)
  • Re: serial, parallel and USB port
    ... From a first glance at it I think one has to compile the extension oneself. ... Why do you need to compile the whole of Python? ... MinGW compiles extensions perfectly including the USB which I have ...
    (comp.lang.python)
  • Multimedia extensions Framework
    ... It is in development phase now and the goal for it is to make the mutlimedia a snap with Python. ... It shall be fairly easy to write in Python a DVD player, USB camera mp4 capture or video/audio editing software. ... If anyone has any experience with doing USB specific bindings in Python or want to participate or give feedback, I would be more than happy to hear from you. ...
    (comp.lang.python)
  • USB HID documentation?
    ... I have a little robot project I'm programming in python using the ... Lynxmotion SSC-32 servo controller via serial. ... I've read a number of threads about the difficulty of using USB ...
    (comp.lang.python)
  • Re: Accessing a USB Device?
    ... >I have a MP3 and I want to access the songs in them. ... uphill battle accessing it from Python. ... Basically, while USB is a serial bus, it isn't like the old serial ... A driver development kit and C compiler. ...
    (comp.lang.python)