Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #44144 > unrolled thread

Re: Serial Port Issue

Started bychandan kumar <chandan_psr@yahoo.co.in>
First post2013-04-23 14:02 +0800
Last post2013-04-23 14:02 +0800
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  Re: Serial Port Issue chandan kumar <chandan_psr@yahoo.co.in> - 2013-04-23 14:02 +0800

#44144 — Re: Serial Port Issue

Fromchandan kumar <chandan_psr@yahoo.co.in>
Date2013-04-23 14:02 +0800
SubjectRe: Serial Port Issue
Message-ID<mailman.952.1366697062.3114.python-list@python.org>

[Multipart message — attachments visible in raw view] — view raw

Thanks Phil,You are right .with Port=20 it started working.
Regards,Chandan.

--- On Mon, 22/4/13, Phil Birkelbach <phil@petrasoft.net> wrote:

From: Phil Birkelbach <phil@petrasoft.net>
Subject: Re: Serial Port Issue
To: python-list@python.org
Cc: "chandan kumar" <chandan_psr@yahoo.co.in>
Date: Monday, 22 April, 2013, 8:43 PM

Have you tried 'port=20'?
The documentation says that the port numbering starts at zero.  I don't use Windows so I can't test it for you.
You could also try port="COM21"
Phil
On Apr 22, 2013, at 4:34 AM, chandan kumar wrote:
Hi,
I'm new to python and trying to learn serial communication using python.In this process i'm facing serial port issues.Please find the attached COMPorttest.py file ,correct me if anything wrong in the code.With my code it's always goes in to exception.I noted down the the COM port number  from windows device manager list. 
Operating system: XPPython Ver: 2.5Pyserial: 2.5
Even i tried from python shell passing below
 commands
import serialser=ser=serial.Serial(port=21,baudrate=9600)
I observe below error on python shell
File "C:\Python25\lib\serial\serialwin32.py", line 55, in open    raise SerialException("could not open port: %s" % msg)SerialException: could not open port: (2, 'CreateFile', 'The system cannot find the file specified.')
Thanks in advance.
Best Regards,Chandan.


<COMPortTest.py><DeviceManager.PNG>-- 
http://mail.python.org/mailman/listinfo/python-list

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web