[PythonCE] General questions

Frédéric Mantegazza frederic.mantegazza at gbiloba.org
Thu Jan 3 13:46:36 CET 2008


Le 3/1/2008, "Alexandre Delattre" <alexandre.delattre at enst-bretagne.fr>
a écrit:

>Hi Fredéric and happy new year to all :)

Thanks! Meilleurs vouex à toi également !

>I've used only ceserial with bluetooth in little projects like winamp/bmpx remote controller, and a sms sender via a bluetooth phone,
>and so far it seems to work like a regular serial port.
>However, there's some little tricks to make it work at first :
>
>1) You must create an ongoing port in your bluetooth settings, by default the outgoing port is COM6
>2) In your code:
>
>from ceserial import Serial
>
>s = Serial("COM6:") # "COM6" only will not work, since it is based on the CreateFileW WinCE API function

Is it possible to use this syntax:

    s = Serial(5)

(0 = COM1, so 5 = COM6) ?

>s.open() # This will pop a dialog allowing to choose which bt device to connect

No way to automatically connect to a specific bt device?

># Then regular serial code
>
>Hope it helps,

Yes :o) If it is as simple as you described, I'll go this way and use bt
instead of wired serial port...

--
   Frédéric


More information about the PythonCE mailing list