Hi,

I'm working on WinCE 4.2 bluetooth. From PB docs I understand that the
bluetooth stack (btd.dll) is available. I wrote a HCI transport layer driver
to link the stack and bluetooth module. I can able to establish the link by
sending SYNC and CONF packets but the connection is lost when stack tries to
send HCI command / event packets. I could not find out which layer is making
problem as I could not compile and build the whole stack.
Any help to rectify the problem is greatly appreciated.

Regards
Anand

Re: Bluetooth problem... by kmk

kmk
Wed Nov 12 15:05:39 CST 2003

Try enabling tracing on btd through Target | CE Debug Zones menu option.

/kmk
In article <uywkhvLqDHA.2592@TK2MSFTNGP10.phx.gbl>, anand@mdr-tech.com
says...
> Hi,
>
> I'm working on WinCE 4.2 bluetooth. From PB docs I understand that the
> bluetooth stack (btd.dll) is available. I wrote a HCI transport layer driver
> to link the stack and bluetooth module. I can able to establish the link by
> sending SYNC and CONF packets but the connection is lost when stack tries to
> send HCI command / event packets. I could not find out which layer is making
> problem as I could not compile and build the whole stack.
> Any help to rectify the problem is greatly appreciated.
>
> Regards
> Anand
>
>
>

Re: Bluetooth problem... by Loris

Loris
Tue Nov 18 08:23:57 CST 2003

Hello Anad.. I think we have the same problem.
The problem is maybe that the bdt service is not loaded, is correct??
I tried to call the functions:
RegisterService(TEXT("BTD"),0,TEXT("btd.dll"),0L);
ServiceIoControl(h,IOCTL_SERVICE_START,NULL,0,NULL,0,&len,NULL);
but the second not work.
Any suggestion?

best regards,
Loris

"Anand" <anand@mdr-tech.com> wrote in message
news:uywkhvLqDHA.2592@TK2MSFTNGP10.phx.gbl...
> Hi,
>
> I'm working on WinCE 4.2 bluetooth. From PB docs I understand that the
> bluetooth stack (btd.dll) is available. I wrote a HCI transport layer
driver
> to link the stack and bluetooth module. I can able to establish the link
by
> sending SYNC and CONF packets but the connection is lost when stack tries
to
> send HCI command / event packets. I could not find out which layer is
making
> problem as I could not compile and build the whole stack.
> Any help to rectify the problem is greatly appreciated.
>
> Regards
> Anand
>
>



Re: Bluetooth problem... by gregsco

gregsco
Wed Nov 19 11:30:17 CST 2003

The Bluetooth stack (btd.dll) will automatically be loaded when you boot,
if Bluetooth is in the image. If not, turn on debug zones in btd.dll and
see what happened. Also, btd.dll is not a service so
RegisterService/ServiceIoControl would not work.

Anad, for your problem turning on debug zones in btd.dll would also be the
best way to figure out what is happening. Also, do you need to write a
transport and a driver? We currently have BCSP and UART transports which
sits on top of a serial driver. In most cases, OEMs may need to
change/rewrite the serial driver but will leverage the existing transport.
I just want to make sure you are not doing more work than is needed.

Hope this helps.

Greg Scott
_____________________________________________________________
This posting is provided "AS IS" with no warranties, and confers no rights.
_____________________________________________________________

--------------------
| From: "Loris" <lorisv@libero.it>
| References: <uywkhvLqDHA.2592@TK2MSFTNGP10.phx.gbl>
| Subject: Re: Bluetooth problem...
| Date: Tue, 18 Nov 2003 15:23:57 +0100
| Lines: 33
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <Oz5mxAerDHA.3688@TK2MSFTNGP11.phx.gbl>
| Newsgroups: microsoft.public.windowsce.platbuilder
| NNTP-Posting-Host: cselt5.polito.it 130.192.31.6
| Path:
cpmsftngxa06.phx.gbl!cpmsftngxa09.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11.
phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.windowsce.platbuilder:42283
| X-Tomcat-NG: microsoft.public.windowsce.platbuilder
|
| Hello Anad.. I think we have the same problem.
| The problem is maybe that the bdt service is not loaded, is correct??
| I tried to call the functions:
| RegisterService(TEXT("BTD"),0,TEXT("btd.dll"),0L);
| ServiceIoControl(h,IOCTL_SERVICE_START,NULL,0,NULL,0,&len,NULL);
| but the second not work.
| Any suggestion?
|
| best regards,
| Loris
|
| "Anand" <anand@mdr-tech.com> wrote in message
| news:uywkhvLqDHA.2592@TK2MSFTNGP10.phx.gbl...
| > Hi,
| >
| > I'm working on WinCE 4.2 bluetooth. From PB docs I understand that the
| > bluetooth stack (btd.dll) is available. I wrote a HCI transport layer
| driver
| > to link the stack and bluetooth module. I can able to establish the link
| by
| > sending SYNC and CONF packets but the connection is lost when stack
tries
| to
| > send HCI command / event packets. I could not find out which layer is
| making
| > problem as I could not compile and build the whole stack.
| > Any help to rectify the problem is greatly appreciated.
| >
| > Regards
| > Anand
| >
| >
|
|
|


Re: Bluetooth problem... by tim

tim
Tue Dec 02 03:56:09 CST 2003

gregsco@online.microsoft.com (Greg Scott [MS]) wrote in message news:<LObSgTsrDHA.3644@cpmsftngxa07.phx.gbl>...
> The Bluetooth stack (btd.dll) will automatically be loaded when you boot,
> if Bluetooth is in the image. If not, turn on debug zones in btd.dll and
> see what happened. Also, btd.dll is not a service so
> RegisterService/ServiceIoControl would not work.
>
> Anad, for your problem turning on debug zones in btd.dll would also be the
> best way to figure out what is happening. Also, do you need to write a
> transport and a driver? We currently have BCSP and UART transports which
> sits on top of a serial driver. In most cases, OEMs may need to
> change/rewrite the serial driver but will leverage the existing transport.
> I just want to make sure you are not doing more work than is needed.
>
> Hope this helps.
>
> Greg Scott
> _____________________________________________________________
> This posting is provided "AS IS" with no warranties, and confers no rights.
> _____________________________________________________________
>

To Greg Scott,

I have some questions need your help that about Bluetooth.
My target platform OS is WinCE.Net 4.2 and has a Bluetooth module
built-in.
Currently I can use ControlPanel->Bluetooth Device Properties->Scan
Device to find another BT device's service, and that BT device can
find my device also.

1. I refer to PUBLIC\COMMON\OAK\DRIVERS\BLUETOOT