RE: BthReadLocalAddr return ERROR_SERVICE_NOT_ACTIVE



You should only see this error code in the following scenarios:

1) The BT stack is not in your image (i.e. SYSGEN_BTH not set).
2) There is currently no BT hardware in the system or the stack has been
programatically stopped (via "btloader stop card")
3) It is too early in the boot process and btd.dll has not loaded yet.

If OBEX and other services are working fine none of the above cases should
be true. That is strange.

It is expected that BthReadLocalAddr will fail if the BT stack has not
loaded yet. You can listen on the following named event to get a
notification when the BT stack comes up:

In bt_api.h:
#define BTH_NAMEDEVENT_STACK_INITED
L"system/events/bluetooth/StackInitialized"

I hope this helps.

Greg Scott
Software Design Engineer, Windows CE
Microsoft Corporation
_____________________________________________________________
This posting is provided "AS IS" with no warranties, and confers no rights.
_____________________________________________________________

--------------------
| Thread-Topic: BthReadLocalAddr return ERROR_SERVICE_NOT_ACTIVE
| thread-index: AcVLzQvifRFxJ71GRgCsOlgy0GdRwA==
| X-WBNR-Posting-Host: 81.208.46.106
| From: =?Utf-8?B?bWFyY29z?= <marcos@xxxxxxxxxxxxxxxxxxxxxxxxx>
| Subject: BthReadLocalAddr return ERROR_SERVICE_NOT_ACTIVE
| Date: Thu, 28 Apr 2005 01:34:08 -0700
| Lines: 21
| Message-ID: <494C84EB-A7D1-4819-AF38-FE12C5176FE3@xxxxxxxxxxxxx>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.windowsce.platbuilder
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.windowsce.platbuilder:18362
| X-Tomcat-NG: microsoft.public.windowsce.platbuilder
|
| Hi
| I'm using the microsoft stack with big satisfaction
| with an uart hci module by ZeeVo
|
| anyway sometimes the BthReadLocalAddr returns ERROR_SERVICE_NOT_ACTIVE
| even if the stack is running and is working fine with
| port emulation , obex and headset gateway.....
|
| maybe does it exist some bug fix or qfe about the BthReadLocalAddr ?
|
| it seems that if I call the BthReadLocalAddr after few seconds after the
| system boot the function fails and it continues to fail on the next calls
|
| while if I call it later, it works always fine
|
|
|
| best regards
|
| --
| Marco
|

.



Relevant Pages

  • Re: Bluetooth stacks
    ... \par X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 ... \par install a 3rd-party>stack on the device. ... \par Microsoft stack is used on the Pocket PC Phone systems. ... \par> Microsoft Bluetooth Stack and other have Widcomm/Broadcom Bluetooth stack. ...
    (microsoft.public.pocketpc.developer)
  • Re: push pop ebp
    ... and that not using the stack seems ... suggests "Windows bug" of some kind... ... SEH is typically generated automatically by a compiler when, ... And, as this is Microsoft, then the prospect of a "oops, didn't ...
    (alt.lang.asm)
  • Re: PB 4.1 - how to FTP without WinInet library ?
    ... It has to do with how Windows CE catches stack overruns. ... © 2003 Microsoft Corporation. ... not changing the scope or type of buffer. ... product started to work normally with Httplite DLL, ...
    (microsoft.public.windowsce.platbuilder)
  • RE: Bluetooth communication with PC (activesync)
    ... Windows Mobile Smartphones use the Microsft Windows CE ... stack and are able to use ActiveSync with no problems. ... So make sure you configure ActiveSync to use the COM port before ... Microsoft Corporation ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Why cant I inherit from DateTime?
    ... I fail to see how an Int32 which is ... However, if the jitter didn't optimize some ValueTypes, .NET would have the ... >> An actual DateTime instance is a double on the Intel FPU stack. ...
    (microsoft.public.dotnet.languages.csharp)