RE: bluetooth question
From: hxiaow (hxiaow_at_discussions.microsoft.com)
Date: 06/11/04
- Next message: John Spaith [MS]: "Re: SSL/https not working"
- Previous message: hxiaow: "RE: bluetooth question"
- In reply to: Greg Scott [MS]: "RE: bluetooth question"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 11 Jun 2004 08:27:01 -0700
Now I understand BT better than before.Thank Gregd Scott very much!
Hardware:
I connect BT module tn COM2 of my PC.
Software:(Platform Builder)
I add "BT UART-only driver" from PB catalog into my platform of "EMULATOR: X86 Win32 (WCE emulator) Debug".
Then I add the line "set BSP_BLUETOOTH_BUILTIN_UART=1" in the "Emulator.bat" file.(Is it correct?)
Then I build the platform and download the image. After I double-kick the icon of "bluetooth *" in the control panel,but I receive an error imformation that "bluetooth controller error:10050".
I check that my BT does connect to the COM2.But I can't find the "bthuart.dll" in my directory "E:\WINCE420\PUBLIC\tty\RelDir\EMULATOR_X86Debug". I doubt whether the BSP_BLUETOOTH_BUILTIN_UART variable has been set to "1".(Do I doubt right?)
Where did I take an error operation?
Or where else must I modify except the following operations ?
>
"Greg Scott [MS]" wrote:
> In most cases, you should be able to use either Winsock APIs or Virtual COM
> port APIs. Both these APIs are on top of RFCOMM. The BT samples should be
> everything you need to figure this out.
>
> If you only care about enabling BT on serial interface do this:
>
> set SYSGEN_BTH_UART_ONLY=1 (or "BT UART-only driver" from PB catalog)
> set BSP_BLUETOOTH_BUILTIN_UART=1
>
> This will put BT on COM2 by default. Look at registry in common.reg
> between:
> IF BSP_BLUETOOTH_BUILTIN_UART
> ....
> ENDIF
>
> You can change COM port, baud, etc from here in registry.
>
> 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: bluetooth question
> | thread-index: AcROrsU30egh5pwKSASfrhnxDN5EOQ==
> | X-WBNR-Posting-Host: 207.46.71.12
> | From: =?Utf-8?B?aHhpYW93?= <hxiaow@discussions.microsoft.com>
> | References: <C4C5F333-DB1E-43F9-B7AF-2651C3ADD0DB@microsoft.com>
> <ApIdyhWTEHA.3468@cpmsftngxa10.phx.gbl>
> | Subject: RE: bluetooth question
> | Date: Wed, 9 Jun 2004 22:50:01 -0700
> | Lines: 19
> | Message-ID: <D05266CF-CAD2-4C58-8E3C-151CD7D3A7E5@microsoft.com>
> | 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 127.0.0.1
> | Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
> | Xref: cpmsftngxa10.phx.gbl microsoft.public.windowsce.platbuilder:51017
> | X-Tomcat-NG: microsoft.public.windowsce.platbuilder
> |
> | Thanks very much!!
> |
> | 1. I am trying to use the Microsoft Bluetooth stack,not the third-part
> stack. Does it mean that I should call the btd.dll and btdrt.dll?(or use
> btd.lib and btdrt.lib?)Which way I can call the stack then??
> |
> | And should I use the transport driver required for my Bluetooth hardware,
> UART: bthuart.dll?
> |
> | 2. My "contain" means I can develop my application furtherly based on
> the bluetooth stack which is offered by WinCE 4.2. Can I develop my app
> based on the RFCOMM layer?
> |
> | 3. Bluetooth hardware is typically using a serial interface. I want to
> connect BT hardware to physical COM1, because this way is easy for me. If
> BT stack needs to use COM1,where I can set the registry? Where I can set
> the bt port?
> |
> |
> | If I want to use BT virtual COM ports then I need to register a COM port
> (via
> | RegisterDevice) .In this way ,what physical interface does the BT module
> connect to? ----It is not the physical COM1,is it?
> |
> | :-)
> | I have read the documentation in Platform Builder and seen the samples in
> public\common\oak\drivers\bluetooth\sample.Now I have some conception about
> the samples.
> | :-)
> |
> |
> |
>
>
- Next message: John Spaith [MS]: "Re: SSL/https not working"
- Previous message: hxiaow: "RE: bluetooth question"
- In reply to: Greg Scott [MS]: "RE: bluetooth question"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|