Hi,
Has anyone ever worked on a Python-WinCE-based program that involved serial
port management ?
Regards,
Philippe 3 2736
pcm wrote: 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
Regards,
Philippe
Fuzzyman wrote: pcm wrote: 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
Regards,
Philippe
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
pcm wrote: Fuzzyman wrote:
pcm wrote: 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
Regards,
Philippe
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 Regards, Philippe This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: ^CeFoS^ |
last post by:
Hello to everybody,
I've done an application that draws in a frame the trajectory of a
robot. The robot position is readed through the serial port, and
several commands are wrote through the same port to change the
direction of the robot.
The trajectory frame is managed by an applet, and the project works
good when the applet is called by a html document allocated in the
same local machine under W98 where the classes and the serial port...
|
by: Jorge Godoy |
last post by:
Anybody here doing Python development on PDAs running with PalmOS? What are
you using?
PipPy is still Python 1.5.2...
TIA,
--
Godoy. <godoy@ieee.org>
|
by: Adam McCarthy |
last post by:
I'm trying to get a cross compiler working for arm-wince-pe. This is
the output for the primes Pyrex example. If I compile simple Hello,
World's etc, it works fine, but for some reason Python
libraries/headers seem to produce this. I have libpython2.3.a in
/usr/local/lib/gcc-lib/arm-wince-pe/3.3.3/../../../../arm-wince-pe/lib/
and /usr/lib/python2.3/config. I've checked it using
arm-wince-pe-objdump. I also extracted it with...
|
by: vipulagarwal.in |
last post by:
hi
i hav written a code in python to send an SMS from a nokia 3310
connected to my PC...
i wanted to receive a msg on my PC. In order to do so, the PC must know
when it has to read data frm the serial port ...thus an interrupt must
be generated when the serial port receives data frm the phone .....HOW
CAN I DO THIS IN PYTHON ??
can anyone help me with this INTERRUPT HANDLING thing in PYTHON ???
thanks
|
by: Nick |
last post by:
Hi all,
I have never programmed in Python a day in my life. My group is working
on developing an application on the Dell Axim hand held that has a
tight deadline. I have heard that Python is particularly advantageous
in rapid prototyping and deployment. I would like to lean this way if I
can. Does anyone know if I can run Python on the Dell Axim handheld. It
runs Windows CE. If so, what all is needed to make this possible.
Thanks
| |
by: Bojan |
last post by:
I am working on some program that has to comunicate at low baud rates.
Problem is that data is sometime transmitted, and sometime not. There
is no pattern in that.
I tried it on HP6515 and Toradex Colibri evaluation board. HP6515 is
Pocket PC 2003, and Colibri is WM 5.0. I tried that from VS2003, and
VS2005. It is allways the same. I tried new System.IO.Ports.SerialPort
control in CF2. The problem persist.
I put some wireing connected to...
|
by: frikk |
last post by:
Hey Everyone!
I've got a question regarding the capabilities of python in a real
time environment. I'll start by saying I'm a little bit flaky when it
comes to terminology, so please correct me or ask where it seems I'm
not beings specific or using the wrong wording.
I am looking into a project for the company I work for. Essentially
it involves setting up a real time monitor / signal injector in
between a CPU board and a system...
|
by: Japan Shah |
last post by:
Hello,
I am trying to connect my Nokia 6610 using usb cable,
I have installed usb-serial driver of it.
I hv tested it with Hyperterminal and it works fine.
but when I wrote a python script I am not able to receive the responce
from the device.
|
by: Charlotte1 |
last post by:
How can I read and write a radio connected to the computer with a serial port with python, the same way a hyperterminal does ?
I wrote this:
from Tkinter import *
import serial
se = serial.Serial()
se.baudrate = 9600
se.bytesize = 8
se.parities = 0
se.stopbits = 1
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |