[Tutor] a serial communication program

Khai Nguyen knguyen@seri.co.uk
Tue Apr 22 06:51:03 2003


This is a multi-part message in MIME format.

------_=_NextPart_001_01C308BC.B6E4548B
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi all,
=20
I have used python for around 4 months and have used its feature directory,=
 list, etc. for writing small programmes for my daily use   .. Since a mont=
h I have started studying PYTHONCARD and am very impressed.  I have never r=
eached that far in other language in such a short term.=20
=20
I like to use Python to rewrite a terminal program written on window2000. F=
or this application a simultaneous activation of both serial ports is requi=
red. Data communication on the two ports are independent.
=20
Could you give me some idea which way is the easiest to tackle this problem=
. Is there any serial module library I can use directly for this purpose?=
 =20
Kind regards
=20
Khai Nguyen


.


------_=_NextPart_001_01C308BC.B6E4548B
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" xmlns:w=3D"urn:sc=
hemas-microsoft-com:office:word" xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; charset=3Diso-8859-=
1">


<meta name=3DProgId content=3DWord.Document>
<meta name=3DGenerator content=3D"Microsoft Word 9">
<meta name=3DOriginator content=3D"Microsoft Word 9">
<link rel=3DFile-List href=3D"cid:filelist.xml@01C308C5.188EFF30">
<!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:View>Normal</w:View>
  <w:Zoom>0</w:Zoom>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:EnvelopeVis/>
 </w:WordDocument>
</xml><![endif]-->
<style>
<!--
 /* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-parent:"";
	margin:0cm;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";}
p.MsoAutoSig, li.MsoAutoSig, div.MsoAutoSig
	{margin:0cm;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";}
span.EmailStyle15
	{mso-style-type:personal-compose;
	mso-ansi-font-size:10.0pt;
	mso-ascii-font-family:Arial;
	mso-hansi-font-family:Arial;
	mso-bidi-font-family:Arial;
	color:black;}
@page Section1
	{size:595.3pt 841.9pt;
	margin:72.0pt 90.0pt 72.0pt 90.0pt;
	mso-header-margin:35.4pt;
	mso-footer-margin:35.4pt;
	mso-paper-source:0;}
div.Section1
	{page:Section1;}
-->
</style>
</head>

<body lang=3DEN-GB style=3D'tab-interval:36.0pt'>

<div class=3DSection1>

<p class=3DMsoNormal><span class=3DEmailStyle15><font size=3D2 color=3Dblack
face=3DArial><span style=3D'font-size:10.0pt;mso-bidi-font-size:12.0pt;font=
-family:
Arial'>Hi all,<o:p></o:p></span></font></span></p>

<p class=3DMsoNormal><span class=3DEmailStyle15><font size=3D2 color=3Dblack
face=3DArial><span style=3D'font-size:10.0pt;mso-bidi-font-size:12.0pt;font=
-family:
Arial'><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></span></font><=
/span></p>

<p class=3DMsoNormal><span class=3DEmailStyle15><font size=3D2 color=3Dblack
face=3DArial><span style=3D'font-size:10.0pt;mso-bidi-font-size:12.0pt;font=
-family:
Arial'>I have used python for around 4 months and have used its feature dir=
ectory,
list, etc. for writing small programmes for my daily use <span
style=3D"mso-spacerun: yes">&nbsp;</span><span style=3D"mso-spacerun:
yes">&nbsp;</span>.. Since a month I have started studying PYTHONCARD and am
very impressed.<span style=3D"mso-spacerun: yes">&nbsp; </span>I have never
reached that far in other language in such a short term. <o:p></o:p></span>=
</font></span></p>

<p class=3DMsoNormal><span class=3DEmailStyle15><font size=3D2 color=3Dblack
face=3DArial><span style=3D'font-size:10.0pt;mso-bidi-font-size:12.0pt;font=
-family:
Arial'><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></span></font><=
/span></p>

<p class=3DMsoNormal><span class=3DEmailStyle15><font size=3D2 color=3Dblack
face=3DArial><span style=3D'font-size:10.0pt;mso-bidi-font-size:12.0pt;font=
-family:
Arial'>I like to use Python to rewrite a terminal program written on window=
2000.
For this application a simultaneous activation of both serial ports is requ=
ired.
Data communication on the two ports are independent.<o:p></o:p></span></fon=
t></span></p>

<p class=3DMsoNormal><span class=3DEmailStyle15><font size=3D2 color=3Dblack
face=3DArial><span style=3D'font-size:10.0pt;mso-bidi-font-size:12.0pt;font=
-family:
Arial'><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></span></font><=
/span></p>

<p class=3DMsoNormal><span class=3DEmailStyle15><font size=3D2 color=3Dblack
face=3DArial><span style=3D'font-size:10.0pt;mso-bidi-font-size:12.0pt;font=
-family:
Arial'>Could you give me some idea which way is the easiest to tackle this
problem. Is there any serial module library I can use directly for this
purpose? <o:p></o:p></span></font></span></p>

<p class=3DMsoNormal><span class=3DEmailStyle15><font size=3D2 color=3Dblack
face=3DArial><span style=3D'font-size:10.0pt;mso-bidi-font-size:12.0pt;font=
-family:
Arial'><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></span></font><=
/span></p>

<p class=3DMsoNormal><span class=3DEmailStyle15><font size=3D2 color=3Dblack
face=3DArial><span style=3D'font-size:10.0pt;mso-bidi-font-size:12.0pt;font=
-family:
Arial'>Kind regards<o:p></o:p></span></font></span></p>

<p class=3DMsoNormal><span class=3DEmailStyle15><font size=3D2 color=3Dblack
face=3DArial><span style=3D'font-size:10.0pt;mso-bidi-font-size:12.0pt;font=
-family:
Arial'><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></span></font><=
/span></p>

<p class=3DMsoNormal><span class=3DEmailStyle15><font size=3D2 color=3Dblack
face=3DArial><span style=3D'font-size:10.0pt;mso-bidi-font-size:12.0pt;font=
-family:
Arial'>Khai Nguyen<o:p></o:p></span></font></span></p>

</div>

<CODE><FONT SIZE=3D3><BR>
<BR>
.<BR>
</FONT></CODE>
</body>

</html>

------_=_NextPart_001_01C308BC.B6E4548B--