Re: serial module

2012-05-22 Thread Grant Edwards
On 2012-05-22, Paul Rubin wrote: > John Nagle writes: >>If a device is registered as /dev/ttyUSBnn, one would hope that >> the Linux USB insertion event handler, which assigns that name, >> determined that the device was a serial port emulator. Unfortunately, >> the USB standard device class

Re: serial module

2012-05-22 Thread Grant Edwards
On 2012-05-22, John Nagle wrote: > On 5/22/2012 8:42 AM, Grant Edwards wrote: >> On 2012-05-22, Albert van der Horst wrote: > >>> It is anybody's guess what they do in USB. >> >> They do exactly what they're supposed to regardless of what sort of >> bus is used to connect the CPU and the UART (IS

Re: serial module

2012-05-22 Thread John Nagle
On 5/22/2012 2:07 PM, Paul Rubin wrote: John Nagle writes: If a device is registered as /dev/ttyUSBnn, one would hope that the Linux USB insertion event handler, which assigns that name, determined that the device was a serial port emulator. Unfortunately, the USB standard device classes (

Re: serial module

2012-05-22 Thread Paul Rubin
John Nagle writes: >If a device is registered as /dev/ttyUSBnn, one would hope that > the Linux USB insertion event handler, which assigns that name, > determined that the device was a serial port emulator. Unfortunately, > the USB standard device classes > (http://www.usb.org/developers/defi

Re: serial module

2012-05-22 Thread John Nagle
On 5/22/2012 8:42 AM, Grant Edwards wrote: On 2012-05-22, Albert van der Horst wrote: It is anybody's guess what they do in USB. They do exactly what they're supposed to regardless of what sort of bus is used to connect the CPU and the UART (ISA, PCI, PCI-express, USB, Ethernet, etc.).

Re: serial module

2012-05-22 Thread Ron Eggler
Grant Edwards wrote: > On 2012-05-19, Paul Simon wrote: >> "Ron Eggler" wrote: > >>> [...] my code looks like this: > >>> #!/usr/bin/python > [...] >>>port='/dev/ttyUSB0', > >> Sounds like you may be using this on a Windows machine. > > I don't think so. :) Nope it's Linmux but nev

Re: serial module

2012-05-22 Thread Grant Edwards
On 2012-05-19, Paul Simon wrote: > "Ron Eggler" wrote: >> [...] my code looks like this: >> #!/usr/bin/python [...] >>port='/dev/ttyUSB0', > Sounds like you may be using this on a Windows machine. I don't think so. :) -- Grant Edwards grant.b.edwardsYow! Hello

Re: serial module

2012-05-22 Thread Grant Edwards
On 2012-05-18, Ron Eggler wrote: > I'm trying to connect to a serial port and always get the error > "serial.serialutil.SerialException: Port is already open." which is > untrue. It is true. > I have no serial port open yet, my code looks like this: > #!/usr/bin/python > import time > import se

Re: serial module

2012-05-22 Thread Grant Edwards
On 2012-05-22, Albert van der Horst wrote: >># configure the serial connections (the parameters differs on the device >># you are connecting to) >>ser = serial.Serial( >>port='/dev/ttyUSB0', >>baudrate=19200, >>parity=serial.PARITY_ODD, >>stopbits=serial.STOPBITS_T

Re: serial module

2012-05-22 Thread Albert van der Horst
In article , Ron Eggler wrote: >Hoi, > >I'm trying to connect to a serial port and always get the error >"serial.serialutil.SerialException: Port is already open." whcih is untrue. >I have no serial port open yet, my code looks like this: >#!/usr/bin/python >import time >import serial > ># config

Re: serial module

2012-05-18 Thread Paul Simon
Sounds like you may be using this on a Windows machine. the code is functional, it is best practice to close the port first before openiing it. If due to an error, usually not syntax, the port will stay stuck open until the program is closed and reopened. I have used the Python serial port (

Re: serial module

2012-05-18 Thread Chris Rebert
On Fri, May 18, 2012 at 2:53 PM, Ron Eggler wrote: > Hoi, > > I'm trying to connect to a serial port and always get the error > "serial.serialutil.SerialException: Port is already open." whcih is untrue. > I have no serial port open yet, my code looks like this: > #!/usr/bin/python > import time >

serial module

2012-05-18 Thread Ron Eggler
Hoi, I'm trying to connect to a serial port and always get the error "serial.serialutil.SerialException: Port is already open." whcih is untrue. I have no serial port open yet, my code looks like this: #!/usr/bin/python import time import serial # configure the serial connections (the parameters

Re: Using python Serial module on windows

2008-10-06 Thread Holger
Turns out there's a windows package that works bautifully with activestate python: pyserial-2.4.win32.exe Thank you. -- http://mail.python.org/mailman/listinfo/python-list

Re: Using python Serial module on windows

2008-10-06 Thread Diez B. Roggisch
Holger wrote: > Hi > > I'm using python Serial from: > http://switch.dl.sourceforge.net/sourceforge/pyserial/pyserial-2.4.tar.gz > > to implement ymodem and other protocols on the PC com port > > And it works like a charm in cygwin, but when I try to use it directly > in python under windows us

Using python Serial module on windows

2008-10-06 Thread Holger
Hi I'm using python Serial from: http://switch.dl.sourceforge.net/sourceforge/pyserial/pyserial-2.4.tar.gz to implement ymodem and other protocols on the PC com port And it works like a charm in cygwin, but when I try to use it directly in python under windows using active state python installat

Re: serial module NEWBE HELP!

2005-03-29 Thread Peter Hansen
Ron wrote: Is this built into any of the python versions? Need it! Using 2.3.5 and doesn't seem to have it.Newbe needs help!email[EMAIL PROTECTED] Thanks Ron PySerial has never been built in to any standard v distribution of Python, but it's an easy download and the web page is the first hit

serial module NEWBE HELP!

2005-03-29 Thread Ron
Is this built into any of the python versions? Need it! Using 2.3.5 and doesn't seem to have it.Newbe needs help!email[EMAIL PROTECTED] Thanks Ron -- http://mail.python.org/mailman/listinfo/python-list