Hello,<div><br></div><div>  <span class="Apple-style-span" style="font-family: monospace; font-size: 16px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; ">This is my first post and I&#39;m writing from Brazil.</span></div>
<div><font class="Apple-style-span" face="monospace" size="4"><span class="Apple-style-span" style="font-size: 16px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"> </span></font></div><div>
<font class="Apple-style-span" face="monospace" size="4"><span class="Apple-style-span" style="font-size: 16px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;">Well,</span></font></div><div>
<font class="Apple-style-span" face="monospace" size="4"><span class="Apple-style-span" style="font-size: 16px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;">   I&#39;m developing a &quot;Sales Force System&quot; with PythonCE and PocketPyGui to a Palm Tre Pro(with Windows Mobile 6.1 Professional, with touch screen support) and in this moment I have two problems:</span></font></div>
<div><font class="Apple-style-span" face="monospace" size="4"><span class="Apple-style-span" style="font-size: 16px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"><br></span></font></div><div>
<font class="Apple-style-span" face="monospace" size="4"><span class="Apple-style-span" style="font-size: 16px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;">1) I do a W-Lan(wifi) connection and try send a file to a FTP server. In my test I&#39;m trying execute this code:</span></font></div>
<div><font class="Apple-style-span" face="monospace" size="4"><span class="Apple-style-span" style="font-size: 16px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"><br></span></font></div><div>
<font class="Apple-style-span" face="monospace" size="4"><span class="Apple-style-span" style="font-size: 16px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"># ----- Begin ----</span></font></div>
<div><font class="Apple-style-span" face="monospace" size="4"><span class="Apple-style-span" style="font-size: 16px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"><div>import ftplib</div><div>
import os</div><div><br></div><div>def upload(ftp, file):</div><div>    ext = os.path.splitext(file)[1]</div><div>    if ext in (&quot;.txt&quot;, &quot;.htm&quot;, &quot;.html&quot;):</div><div>        ftp.storlines(&quot;STOR &quot; + file, open(file))</div>
<div>    else:</div><div>        ftp.storbinary(&quot;STOR &quot; + file, open(file, &quot;rb&quot;), 1024)</div><div><br></div><div>ftp = ftplib.FTP(&quot;<a href="http://ftp.myserver.com.br">ftp.myserver.com.br</a>&quot;)</div>
<div>ftp.login(&quot;myuser&quot;, &quot;mypassword&quot;)</div><div><br></div><div>upload(ftp, &quot;0011211B.EXP&quot;)</div><div><br></div><div># ----- End ----</div><div><br></div><div>Well, when a execute this code (double-click in the windows explorer of my mobile device) the pythonCE open and try execute the code but it show me many errors(socket erros and a message: &quot;Connection reset by peer&quot;). When a execute this code in my Desktop PC it&#39;s run ok. Any Idea of how to resolve this problem or &quot;how to send/put a file in a FTP server with PythonCE&quot; ?</div>
<div><br></div><div>2) How to detect/make a GPRS connection with PythonCE ? There are a example code ? where I can find a sample ? because the &quot;sales man&quot; will operate the system out (in the &quot;street&quot;) with a 3G GPRS Connection.</div>
<div><br></div><div>PS: Sorry by terrible English.</div><div><br></div><div>-- Leandro.</div></span></font></div>