Read/write seriel?
Andy Jewell
andy at wild-flower.co.uk
Mon Feb 3 16:56:02 EST 2003
claus
You don't say which OS you use. The answer is different for each:
Linux:
ser=open("/dev/cua0","r") # depends on distro, could be e.g. ttyS0
Try 'man -k serial'
Windows
ser=open("com1","r")
Other OSes will differ significantly, and many restrict access to such devices
for security reasons. Try googling for your OS + serial...
Happy hunting,
-andyj
On Monday 03 Feb 2003 1:51 pm, Claus Hemdrup wrote:
> How do I read/write the seriel port?
>
> Claus
More information about the Python-list
mailing list