> I tried this link
> "http://mail.python.org/pipermail/pythonce/attachments/20060922/5af92a01/at
>tachment-0003.py ", but when I import ceserial, pythonce gave me a
> "SyntasError:
> invalid synax"
Just rename the file as something like ceserial.py
Importing files with '-' on the
adrian wong gmail.com> writes:
>
> Hello
>
> I would like to access my serial port on my pocket pc. Would someone
> sent me the ceserial.py codes and give me a few pointers on "how to"
> do a "Hello World " type python program to strart. I'm very new to
> python and very, very very new to pytho
Hello
I would like to access my serial port on my pocket pc. Would someone
sent me the ceserial.py codes and give me a few pointers on "how to"
do a "Hello World " type python program to strart. I'm very new to
python and very, very very new to pythonce. I tried this link
"http://mail.python.org/p
Ben,Thanks for the code. Here's some not very formatted stdout that I get when I run my test for your code. I'm not sure what to make of the strange characters that I get from the buffer output. Do you think it's binary? I tried to meld your code into the
pygarmin.py code with some success. T
I did get things mostly working. I've attached what I have done. I
had problems with losing data at higher baud rates, so I buffered data
in read(). If this is not the desired behavior it is easy to change
(just look in the source).
You also need ctypes installed.
Good Luck,
Ben
#some minor m
[EMAIL PROTECTED]>> To: <pythonce@python.org>> Sent: Wednesday, June 21, 2006 4:54 AM> Subject: Re: [PythonCE] serial port access
>>> Thanks Gonzalo for your help. I have read both the ctypes and> microsoft documentation. My understandin
AIL PROTECTED]> wrote:
>
> You need to use the wide-character variants of Windows APIs, i.e.
> CreateFileW
>
> Luke
>
> - Original Message -
> From: "Benjamin McBride" <[EMAIL PROTECTED]>
> To:
> Sent: Wednesday, June 21, 2006 4:54 AM
> Subject:
You need to use the wide-character variants of Windows APIs, i.e.
CreateFileW
Luke
- Original Message -
From: "Benjamin McBride" <[EMAIL PROTECTED]>
To:
Sent: Wednesday, June 21, 2006 4:54 AM
Subject: Re: [PythonCE] serial port access
Thanks Gonzalo for your help.
Thanks Gonzalo for your help. I have read both the ctypes and
microsoft documentation. My understanding is that I need to use the
CreateFile API function from the coredll to get a handle to the comm
port. When I use ctypes:
>>> windll.coredll.CreateFile
I get an AttributeError saying the Creat
Have you read the ctypes docs?
http://starship.python.net/crew/theller/ctypes/tutorial.html
You have to read the Microsoft docs too, search what dynamic libraries
to use and what functions to call. Study the example I posted, you have
to call these functions using ctypes:
(openfile, readfile,
I've got ctypes installed. However, I have not been able to find any
examples of how I might use ctypes for serial port access. Any
suggestions would be appreciated.
Thanks,
Ben
On 6/20/06, Gonzalo Monzón <[EMAIL PROTECTED]> wrote:
> Hi Benjamin,
>
> You can use ctypes for direct access to ser
Hi Benjamin,
You can use ctypes for direct access to serial ports via windows apis
(openfile, readfile, writefile...)
Note that manufacturers can have specific implementations, even they
must agree to PPC implementation, but you can found small differences.
http://www.codeproject.com/system/si
Hi All,
I need to access the serial port for my PPC application. I have been
unable to locate information on this. I'm using Python 2.4.3 and PPC
2003. Previously I've used pyserial, but it appears that pyserial does
not work on Windows CE.
Thanks for any suggesti
13 matches
Mail list logo