School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 300,389 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,565 people online right now. Registration is fast and FREE... Join Now!




Python Serial port Access

 

Python Serial port Access, Python can be used to read from seril port but API is problematic.

ninad.a

24 Jun, 2009 - 08:48 PM
Post #1

New D.I.C Head
*

Joined: 24 Jun, 2009
Posts: 3


Can some one please tell if this is due to Windows XP or code? The python script is an integral part of the application.
CODE
port=serial.Serial(4) #installed usb-serial COM port is COM5
throws
SerialException : could not open port:(2,'CreateFile','The system cannot find the file specified')


User is offlineProfile CardPM
+Quote Post


ninad.a

RE: Python Serial Port Access

1 Jul, 2009 - 02:07 AM
Post #2

New D.I.C Head
*

Joined: 24 Jun, 2009
Posts: 3

QUOTE(ninad.a @ 24 Jun, 2009 - 08:48 PM) *

Can some one please tell if this is due to Windows XP or code? The python script is an integral part of the application.
CODE
port=serial.Serial(4) #installed usb-serial COM port is COM5
throws
SerialException : could not open port:(2,'CreateFile','The system cannot find the file specified')



The smartRFID reader connected through serial port- can save settings from last time i.e COM<1-256->
so when running script I had to first make power connection 1ce on-off, then connect it thru USB-serial and configure it properly
thru device manager and set port in
CODE
serial.Serial(<port no.>)
and then run middleware code so that access is available.

Note: all python mdules and USB-serial driver need be installed proprly
port no.=COM<no>-1


QUOTE(ninad.a @ 24 Jun, 2009 - 08:48 PM) *

Can some one please tell if this is due to Windows XP or code? The python script is an integral part of the application.
CODE
port=serial.Serial(4) #installed usb-serial COM port is COM5
throws
SerialException : could not open port:(2,'CreateFile','The system cannot find the file specified')



The smartRFID reader connected through serial port- can save settings from last time i.e COM<1-256->
so when running script I had to first make power connection 1ce on-off, then connect it thru USB-serial and configure it properly
thru device manager and set port in
CODE
serial.Serial(<port no.>)
and then run middleware code so that access is available.

Note: all python mdules and USB-serial driver need be installed proprly
port no.=COM<no>-1

User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/7/09 09:39PM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month