Re: BlueTooth

From: Mathias Ellinger (me_at_nospam.de)
Date: 09/16/04


Date: Thu, 16 Sep 2004 09:26:28 -0700

Markus Keller wrote:

> Hallo zusammen!
>
> Würde gerne eine App. schreiben die mit meinem Handy per Bluetooth
> kommunizieren kann. Wie gehe ich da am besten vor ?
> Danke für eure Hilfe!
>
> Gruss Markus

hallo Markus,

ich mache seit Jahren Bluetooth (bei einem deutschen Hersteller) und habe dafür High Level API's unde dergleichen entwickelt.
Unter Windows mit dem MS Stack ist nur SP2 in die engere Wahl zu nehmen.
Direkt abbildbar zu .NET ist nur die bluetoothapi.h aus dem MSSDK. Da hat man aber nur
Device Inquiry, Service Inquiry, Authentication. Für Verbindungsorientierte
Sachen muß man Sockets bemühen. Es gehen keine .NET Socket API's weil die Bluetooth
Sachen einen anderen Socketprovider benutzten der nicht abbildbar ist. Kann
mich aber auch irren. D.H. für alle RFCOMM/L2CAP Verbindungen muß man eine
unmanaged DLL als Wrapperklasse schreiben.

Damit ist hat man aber noch keine sinnvolle Verbindungen zum Handy. Filetransfer,
Senden von Visitenkarten, Bildern etc läuft über OBEX. Das ist ein Profile
welches RFCOMM als Transportmedium benutzt. Obex ist unter SP2 in der Datei
FSQUIRT.EXE enthalten und damit API mäßig nicht zu benutzen (Im Gegensatz zu Windows CE).

Muß man es also selber schreiben oder die SourceForge ObenObex Variante portieren.
(Ich mache meine eigene C# Lösung).

Aus meine Sicht ist die Bluetoothimplementation von MS grottenschlecht.
Zuviele unterschiedliche API's mit verschiedenen Konzepten. Zu kompliziert
zu bedienen. Unter anderen ist die Bedienung mittels der Socket API viel zu
unlogisch. (Unter Windows CE ist es noch schlimmer - COM Klassen, Socket API, normale
API ...).

Ich bin am arbeiten an einer Lösung die mittels Plugins die verschieden
Bluetooth API Provider abstrahieren kann. Das ist aber just for Fun und hat
keine Priorität für mich.

elli



Relevant Pages

  • Re: hardware detection
    ... if I click on the generic bluetooth radio and properties I get the MAC ... if you could suggest a good book for extracting hardware information ... that I need to open a socket of some kind which I have never done and I ...
    (microsoft.public.vc.mfc)
  • Re: about bluetooth status detect???
    ... API to retrieve system state information, ... stack you can P/Invoke the BthGetMode API, ... I'v developed a programme by Vb & .Net and it works well in wm5.0. ... In the programme bluetooth working as a COM port.But there is a problem: ...
    (microsoft.public.pocketpc.developer)
  • Re: Working embedded Bluetooth API
    ... Or you want to *call* the Bluetooth API? ... If you are the device vendor and are trying to get Bluetooth working at the ... the point is do i have to reference the dll in code like ...
    (microsoft.public.windowsce.embedded.vb)
  • Re: BlueTooth
    ... Hallo Markus, ... "This class currently only supports devices which use the Microsoft ... Bluetooth stack such as the Orange SPV E200, ...
    (microsoft.public.de.german.entwickler.dotnet.csharp)
  • RE: Bluetooth SD & Wince5.0
    ... There is a BT SDIO driver that ships with Windows CE 5.0. ... I didn't realize Socket had a CE 5.0 BT SDIO ... I'm not sure what Bluetooth Manager version 2.3-02 is. ...
    (microsoft.public.windowsce.platbuilder)

Loading