Re: [PythonCE] General questions

2008-01-03 Thread Frédéric Mantegazza

Le 3/1/2008, "Alexandre Delattre" <[EMAIL PROTECTED]>
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
___
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce


Re: [PythonCE] General questions

2008-01-03 Thread Alexandre Delattre
Hi Fredéric and happy new year to all :)

> I found a little bluetooth/serial module for my panoramic head project:

>http://www.adeunis-rf.com/list_produits.php?lng=FR&gid=6&pid=ARF32+Data 
> 

> Do you think the com will be totally transparent with this module? My goal 
> is to drive a serial device, and I would like to avoid bluetooth 
> programmin stuff...

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 
s.open() # This will pop a dialog allowing to choose which bt device to connect

# Then regular serial code

Hope it helps,
Alexandre

___
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce