Python + WinCE + serial port

P

pcm

Hi,

Has anyone ever worked on a Python-WinCE-based program that involved serial
port management ?

Regards,

Philippe
 
F

Fuzzyman

pcm said:
Hi,

Has anyone ever worked on a Python-WinCE-based program that involved serial
port management ?

Because of the size of the runtime and the fragility of the GUI
toolkits, there has been little serious development with PythonCE.
(Little not none - and it's great to have Python available.)

There is no built in support for the serial port in PythonCE (AFAIK).
Your best bet is using ctypes (for which a PythonCE port has been done)
and the microsoft API.

Fuzzyman
http://www.voidspace.org.uk/python/index.shtml
 
P

pcm

Fuzzyman said:
Because of the size of the runtime and the fragility of the GUI
toolkits, there has been little serious development with PythonCE.
(Little not none - and it's great to have Python available.)

There is no built in support for the serial port in PythonCE (AFAIK).
Your best bet is using ctypes (for which a PythonCE port has been done)
and the microsoft API.

Fuzzyman
http://www.voidspace.org.uk/python/index.shtml




Thanks, does that mean that I need to write an extension to the WinCE API or
is that built-into the Python package ?

Regards,
Philippe
 
F

Fuzzyman

pcm said:
Thanks, does that mean that I need to write an extension to the WinCE API or
is that built-into the Python package ?

(Sorry for late reply.)

There is a version of ctypes *compiled* for PythonCE (from the PythonCE
sourceforge page).

Using ctypes you should be able to use the Microsoft Win32 API to
access the serial port from *pure Python* code.

You will need to use the Microsoft docs to see which calls to make.

Fuzzyman
http://www.voidspace.org.uk/python/index.shtml
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top