Re: To communicate with Bluetooth module
- From: Jeyanthi Jayakumar <JeyanthiJayakumar@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 23 Jan 2007 21:59:02 -0800
Thanks Greg,
I have tested with BTloader sample and gave start card it is saying
Result=1. But i don't see any debug messages. I doubt whether btd.dll is
loaded or not. But i can see the btd.dll in the Release directory. And how to
turn on the debug messages in btd.dll, that is i am not sure about the files
included for that dll.
Thanks and regards,
Jeyanthi
"Greg Scott [MS]" wrote:
You need to start the BT stack manually if this is not a PnP BT module. You.
can run "btloader start card" from the command line. The btloader sample
lives here:
public\common\oak\drivers\bluetooth\sample\btloader
To debug BT issues it is helpful to build the debug version of the module
and turn on debug zones in btd.dll.
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.
_____________________________________________________________
"Jeyanthi Jayakumar" <JeyanthiJayakumar@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message news:A456181A-05E6-4175-8100-0D382A7BFB32@xxxxxxxxxxxxxxxx
Hi,
I have connected a bluegiga Bluetooth module(WT12) to the PXA270 processor
thro' UART interface(TXD,RXD,RTS and CTS of PXA directly connected to the
same of Bluetooth module).
In the registry(common.reg) i have ,
[HKEY_LOCAL_MACHINE\Software\Microsoft\Bluetooth\HCI]
"flags"=dword:0
"name"="COM1:"
IF BSP_BLUETOOTH_BUILTIN_UART
[HKEY_LOCAL_MACHINE\Software\Microsoft\Bluetooth\Transports\BuiltIn\1]
"driver"="bthuart.dll"
"flags"=dword:4
"name"="COM1:"
"baud"=dword:1c200
"resetdelay"=dword:1388
ENDIF
[HKEY_LOCAL_MACHINE\Software\Microsoft\Bluetooth\Transports]
"BthUnivPresent"=dword:1
"baud"=dword:1c200
And i have set the BSP_BLUETOOTH_BUILTIN_UART =1 in the environment
variable.
But in my image if i give scan device, from Control panel\bluetooth
properties it is saying Bluetooth Hardware error(controller not present).
I am not able to identify what is problem? And for the serial settings
IF BSP_NOSERIAL !
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Serial]
"Irq"=dword:15 ; 21 IRQ_BTUART
"SysIntr"=dword:1C ; 28 SYSINTR_BTUART
"MemBase"=dword:40200000 ; BTUART Register
"MemLen"=dword:40
"DeviceArrayIndex"=dword:81 ; BTUART object
"Prefix"="COM"
"IClass"="{CC5195AC-BA49-48a0-BE17-DF6D1B0173DD}"
"Dll"="ms2_serial.dll"
"Order"=dword:0
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Serial2\Unimodem]
"Tsp"="Unimodem.dll"
"DeviceType"=dword:0
"FriendlyName"="Serial Cable on COM1:"
"DevConfig"=hex: 10,00, 00,00, 05,00,00,00, 10,01,00,00, 00,4B,00,00,
00,00, 08, 00, 00, 00,00,00,00
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Serial2]
"Irq"=dword:14 ; 20 IRQ_STUART
"SysIntr"=dword:1B ; 27 SYSINTR_STUART
"MemBase"=dword:40700000 ; STUART Register
"MemLen"=dword:40
"DeviceArrayIndex"=dword:82 ; STUART object
"Prefix"="COM"
"IClass"="{CC5195AC-BA49-48a0-BE17-DF6D1B0173DD}"
"Dll"="ms2_serial.dll"
"Order"=dword:0
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Serial\Unimodem]
"Tsp"="Unimodem.dll"
"DeviceType"=dword:0
"FriendlyName"="Serial Cable on COM2:"
"DevConfig"=hex: 10,00, 00,00, 05,00,00,00, 10,01,00,00, 00,4B,00,00,
00,00, 08, 00, 00, 00,00,00,00
ENDIF BSP_NOSERIAL !
By this i have configured BTUART as COM1 and STUART as COM2. And in the
boot
up time i am getting HCI open connection started and after some time HCI
CLose connection successful is coming once the image is up. My doubt is no
dirver is running for this to be active. Can anyone help me which is the
driver to be loaded and how to verify whether Bluetooth driver is active.
Thanks in advance,
- References:
- To communicate with Bluetooth module
- From: Jeyanthi Jayakumar
- Re: To communicate with Bluetooth module
- From: Greg Scott [MS]
- To communicate with Bluetooth module
- Prev by Date: Re: lanch image problem in Wince5.0
- Next by Date: Problem with Gdiapi TestCase 225: LineTO
- Previous by thread: Re: To communicate with Bluetooth module
- Next by thread: RE: To communicate with Bluetooth module
- Index(es):
Relevant Pages
|