Re: SDIO Bluetooth in WinCE 5.0
From: Ikhsan Ramdan (IkhsanRamdan_at_discussions.microsoft.com)
Date: 09/09/04
- Next message: sienaman: "Re: pcmcia irq detection and assignment"
- Previous message: Susan: "RE: Bluetooth SD & Wince5.0"
- In reply to: Greg Scott [MS]: "Re: SDIO Bluetooth in WinCE 5.0"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 8 Sep 2004 17:55:09 -0700
Mst probably my driver miss the interrupt. So far, I have not received any
interrupt from SDIO card. I will get back to you as soon as I can fix the
interrupt.
rgds,
Ikhsan
"Greg Scott [MS]" wrote:
> It looks like we are not getting a response to the HCI_Reset command. The
> BT stack will send this command, wait 4 seconds for a response, send it
> again if no response was received and repeat this 3 times total before
> giving up. This is what happened in your case.
>
> The Bluetooth stack is expecting a command complete packet to be received
> for this HCI_Reset command. Could your driver be missing interrupts?
>
> Greg Scott
> Software Design Engineer, Windows CE
> Microsoft Corporation
> _____________________________________________________________
> This posting is provided "AS IS" with no warranties, and confers no rights.
> _____________________________________________________________
>
> --------------------
> | Thread-Topic: SDIO Bluetooth in WinCE 5.0
> | thread-index: AcSVQdZAvV3z9e8aSOSKEVn2gbvFlw==
> | X-WBNR-Posting-Host: 203.126.136.220
> | From: "=?Utf-8?B?SWtoc2FuIFJhbWRhbg==?="
> <IkhsanRamdan@discussions.microsoft.com>
> | References: <MPG.1b9191d886748ca098968a@msnews.microsoft.com>
> <p#lLpuUiEHA.2396@cpmsftngxa10.phx.gbl>
> <MPG.1b9447febe40936a98968e@msnews.microsoft.com>
> <822C448D-2F36-4129-8E17-5EC6BDF437CD@microsoft.com>
> <#2zHCP5iEHA.1140@tk2msftngp13.phx.gbl>
> <18C7B8D5-1A05-417E-AA32-CAE9C8614384@microsoft.com>
> <k7OMdNqjEHA.2632@cpmsftngxa10.phx.gbl>
> | Subject: Re: SDIO Bluetooth in WinCE 5.0
> | Date: Tue, 7 Sep 2004 18:19:07 -0700
> | Lines: 349
> | Message-ID: <0E3CD113-FECE-4E75-AB1D-D8791A46C863@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 10.40.1.29
> | Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
> | Xref: cpmsftngxa10.phx.gbl microsoft.public.windowsce.platbuilder:54762
> | X-Tomcat-NG: microsoft.public.windowsce.platbuilder
> |
> | Hi Scott, Seung Yi
> |
> | I have actually added SYSGEN_BTH and SYSGEN_SDBUS. After I insert the
> card,
> | I got the following debug message (I only put debug messages after the
> device
> | complete sending CMD52 many times):
> |
> | +++ SDCard: CMD52 CMDArg: 0x10002801 TransferClass:2 ResponseType: R5
> | +++ SDCard: Calling Send Handler for HC:i.MX21. Slot:0,
> Request:0x00282620
> | SDHBusRequestHandler - CMD: 0x34 ARG: 0x10002801, TxClass: 2
> | SDHBusRequestHandler - CMDAT Reg: 0x00000201, CMD:52n
> | SDCard: SDBusRequest-
> | --- SDBusDriver: HandleBusRequestComplete, Completing Request: 0x00282620
> ,
> | on dev Bluetooth Card
> | --- SDBusDriver: CMD52 CMDArg: 0x10002801 TransferClass:2 ResponseType:
> R5
> | Complete
> | --- SDBusDriver: Response Dump:
> ----------------------------------------------------------------------------
> ------------
> | SDOutputBuffer: 0x00282640 , Size: 6 bytes
> | 0x00000000 00 01 10 00 00 34 .....4
>
> |
> ----------------------------------------------------------------------------
> ------------
> | SDCard: +SDFreeToMemList
> | SDCard: -SDFreeToMemList
> | SDBus: Freed request 0x00282620
> | HandleBusRequestComplete- Completed queue is now empty
> | WAIT FOR EVENT ...
> | SDCard: +SDFreeToMemList
> | SDCard: -SDFreeToMemList
> | SDCard: SendSynchCommandRequest-
> | SDCard: +SDFreeToMemList
> | SDCard: -SDFreeToMemList
> | SDCard: SDReadWriteRegistersDirect-
> | [TRP]
> | [SDIO] ENINTRD register: 1
> | SDCard: SDReadWriteRegistersDirect+
> | SDCard: +SDAllocateFromMemList
> | SDCard: -SDAllocateFromMemList
> | SDCard: SendSynchCommandRequest+
> | SDCard: +SDAllocateFromMemList
> | SDCard: -SDAllocateFromMemList
> | SDCard: SDBusRequest+
> | SDCard: +SDAllocateFromMemList
> | SDCard: -SDAllocateFromMemList
> | SDBus: Allocated request 0x00282620
> | SDBusDriver: Submitting bus request:0x00282620 to device Bluetooth Card
> | +++ SDCard: CMD52 CMDArg: 0x10002601 TransferClass:2 ResponseType: R5
> | +++ SDCard: Calling Send Handler for HC:i.MX21. Slot:0,
> Request:0x00282620
> | SDHBusRequestHandler - CMD: 0x34 ARG: 0x10002601, TxClass: 2
> | SDHBusRequestHandler - CMDAT Reg: 0x00000201, CMD:52n
> | SDCard: SDBusRequest-
> | --- SDBusDriver: HandleBusRequestComplete, Completing Request: 0x00282620
> ,
> | on dev Bluetooth Card
> | --- SDBusDriver: CMD52 CMDArg: 0x10002601 TransferClass:2 ResponseType:
> R5
> | Complete
> | --- SDBusDriver: Response Dump:
> ----------------------------------------------------------------------------
> ------------
> | SDOutputBuffer: 0x00282640 , Size: 6 bytes
> | 0x00000000 00 00 10 00 00 34 .....4
>
> |
> ----------------------------------------------------------------------------
> ------------
> | SDCard: +SDFreeToMemList
> | SDCard: -SDFreeToMemList
> | SDBus: Freed request 0x00282620
> | HandleBusRequestComplete- Completed queue is now empty
> | WAIT FOR EVENT ...
> | SDCard: +SDFreeToMemList
> | SDCard: -SDFreeToMemList
> | SDCard: SendSynchCommandRequest-
> | SDCard: +SDFreeToMemList
> | SDCard: -SDFreeToMemList
> | SDCard: SDReadWriteRegistersDirect-
> | [TRP]
> | [SDIO] INTRD register: 0
> | [HCI]
> | WT: Started
> | [HCI]
> | PACKET TRACK :: Created packet 0x00662370
> | [HCI]
> | FormatPacketNoArgs:: op 0c03
> | [HCI]
> | SchedulePacket:: [call 0822fd6c device 00661ab8] packet 0x00662370 op
> 0c03
> | [HCI]
> | hci_connect_transport:: waiting for reset response
> | [HCI]
> | RT: Started
> | [HCI]
> | WT: Initialization complete - waiting for communications...
> | [HCI]
> | Writer: go to sleep
> | [HCI]
> | Writer: woke up
> | [HCI]
> | RT: Reader thread properly initialized - max packet 65540 bytes
> | [TRP]
> | [SDIO] HCI_ReadPacket
> | [TRP]
> | [SDIO] HCI_WritePacket type 0x01 len 3
> | [TRP]
> | 0000 03 0c 00 | ...
> | SDCard: SendSynchCommandRequest+
> | SDCard: +SDAllocateFromMemList
> | SDCard: -SDAllocateFromMemList
> | SDCard: SDBusRequest+
> | SDCard: +SDAllocateFromMemList
> | SDCard: -SDAllocateFromMemList
> | SDBus: Allocated request 0x00282620
> | SDBusDriver: Submitting bus request:0x00282620 to device Bluetooth Card
> | +++ SDCard: CMD53 CMDArg: 0x90000007 TransferClass:1 ResponseType: R5
> | +++ SDCard: Write Data Transfer : NumBlocks:1 BytesPerBlock:7
> | +++ SDCard: Write Data Dump:
> ----------------------------------------------------------------------------
> ------------
> | SDOutputBuffer: 0x00662548 , Size: 7 bytes
> | 0x00000000 07 00 00 01 03 0C 00 .......
>
> |
> ----------------------------------------------------------------------------
> ------------
> | +++ SDCard: Calling Send Handler for HC:i.MX21. Slot:0,
> Request:0x00282620
> | SDHBusRequestHandler - CMD: 0x35 ARG: 0x90000007, TxClass: 1
> | SDHBusRequestHandler - CMDAT Reg: 0x00000219, CMD:53n
> | SDCard: SDBusRequest-
> | --- SDBusDriver: HandleBusRequestComplete, Completing Request: 0x00282620
> ,
> | on dev Bluetooth Card
> | --- SDBusDriver: CMD53 CMDArg: 0x90000007 TransferClass:1 ResponseType:
> R5
> | Complete
> | --- SDBusDriver: Response Dump:
> ----------------------------------------------------------------------------
> ------------
> | SDOutputBuffer: 0x00282640 , Size: 6 bytes
> | 0x00000000 00 00 10 00 00 35 .....5
>
> |
> ----------------------------------------------------------------------------
> ------------
> | --- SDBusDriver: Write Transfer Complete: NumBlocks:1 BytesPerBlock:7
> | SDCard: +SDFreeToMemList
> | SDCard: -SDFreeToMemList
> | SDBus: Freed request 0x00282620
> | HandleBusRequestComplete- Completed queue is now empty
> | SDCard: +SDFreeToMemList
> | SDCard: -SDFreeToMemList
> | SDCard: SendSynchCommandRequest-
> | [TRP]
> | [SDIO] CSdioDevice::SDSend - CardStatus from response = 0x1000
> | [HCI]
> | Writer: go to sleep
> | [HCI]
> | Writer: woke up
> | [HCI]
> | Writer : no packets
> | [HCI]
> | Writer: go to sleep
> | WAIT FOR EVENT ...
> | [HCI]
> | hci_connect_transport:: got reset response (before lock)
> | [HCI]
> | hci_connect_transport:: got reset response (in)
> | [HCI]
> | RetireCall:: [call 0822fd6c device 00661ab8] packet 00000000
> | [HCI]
> | RetireCall:: found sent packet
> | [HCI]
> | PACKET TRACK :: Destroyed packet 0x00662370
> | [HCI]
> | RetireCall:: going into callback
> | [HCI]
> | RetireCall:: came from callback
> | [HCI]
> | RetireCall:: ERROR_SUCCESS
> | [HCI]
> | PACKET TRACK :: Created packet 0x00662370
> | [HCI]
> | FormatPacketNoArgs:: op 0c03
> | [HCI]
> | SchedulePacket:: [call 0822fd6c device 00661ab8] packet 0x00662370 op
> 0c03
> | [HCI]
> | Writer: woke up
> | [HCI]
> | hci_connect_transport:: waiting for reset response
> | [TRP]
> | [SDIO] HCI_WritePacket type 0x01 len 3
> | [TRP]
> | 0000 03 0c 00 | ...
> | SDCard: SendSynchCommandRequest+
> | SDCard: +SDAllocateFromMemList
> | SDCard: -SDAllocateFromMemList
> | SDCard: SDBusRequest+
> | SDCard: +SDAllocateFromMemList
> | SDCard: -SDAllocateFromMemList
> | SDBus: Allocated request 0x00282620
> | SDBusDriver: Submitting bus request:0x00282620 to device Bluetooth Card
> | +++ SDCard: CMD53 CMDArg: 0x90000007 TransferClass:1 ResponseType: R5
> | +++ SDCard: Write Data Transfer : NumBlocks:1 BytesPerBlock:7
> | +++ SDCard: Write Data Dump:
> ----------------------------------------------------------------------------
> ------------
> | SDOutputBuffer: 0x00662548 , Size: 7 bytes
> | 0x00000000 07 00 00 01 03 0C 00 .......
>
> |
> ----------------------------------------------------------------------------
> ------------
> | +++ SDCard: Calling Send Handler for HC:i.MX21. Slot:0,
> Request:0x00282620
> | SDHBusRequestHandler - CMD: 0x35 ARG: 0x90000007, TxClass: 1
> | SDHBusRequestHandler - CMDAT Reg: 0x00000219, CMD:53n
> | SDCard: SDBusRequest-
> | --- SDBusDriver: HandleBusRequestComplete, Completing Request: 0x00282620
> ,
> | on dev Bluetooth Card
> | --- SDBusDriver: CMD53 CMDArg: 0x90000007 TransferClass:1 ResponseType:
> R5
> | Complete
> | --- SDBusDriver: Response Dump:
> ----------------------------------------------------------------------------
> ------------
> | SDOutputBuffer: 0x00282640 , Size: 6 bytes
> | 0x00000000 00 00 10 00 00 35 .....5
>
> |
> ----------------------------------------------------------------------------
> ------------
> | --- SDBusDriver: Write Transfer Complete: NumBlocks:1 BytesPerBlock:7
> | SDCard: +SDFreeToMemList
> | SDCard: -SDFreeToMemList
> | SDBus: Freed request 0x00282620
> | HandleBusRequestComplete- Completed queue is now empty
> | SDCard: +SDFreeToMemList
> | SDCard: -SDFreeToMemList
> | SDCard: SendSynchCommandRequest-
> | [TRP]
> | [SDIO] CSdioDevice::SDSend - CardStatus from response = 0x1000
> | [HCI]
> | Writer: go to sleep
> | [HCI]
> | Writer: woke up
> | [HCI]
> | Writer : no packets
> | [HCI]
> | Writer: go to sleep
> | [HCI]
> | hci_connect_transport:: got reset response (before lock)
> | [HCI]
> | hci_connect_transport:: got reset response (in)
> | [HCI]
> | RetireCall:: [call 0822fd6c device 00661ab8] packet 00000000
> | [HCI]
> | RetireCall:: found sent packet
> | [HCI]
> | PACKET TRACK :: Destroyed packet 0x00662370
> | [HCI]
> | RetireCall:: going into callback
> | [HCI]
> | RetireCall:: came from callback
> | [HCI]
> | RetireCall:: ERROR_SUCCESS
> | [HCI]
> | PACKET TRACK :: Created packet 0x00662370
> | [HCI]
> | FormatPacketNoArgs:: op 0c03
> | [HCI]
> | SchedulePacket:: [call 0822fd6c device 00661ab8] packet 0x00662370 op
> 0c03
> | [HCI]
> | Writer: woke up
> | [HCI]
> | hci_connect_transport:: waiting for reset response
> | [TRP]
> | [SDIO] HCI_WritePacket type 0x01 len 3
> | [TRP]
> | 0000 03 0c 00 | ...
> | SDCard: SendSynchCommandRequest+
> | SDCard: +SDAllocateFromMemList
> | SDCard: -SDAllocateFromMemList
> | SDCard: SDBusRequest+
> | SDCard: +SDAllocateFromMemList
> | SDCard: -SDAllocateFromMemList
> | SDBus: Allocated request 0x00282620
> | SDBusDriver: Submitting bus request:0x00282620 to device Bluetooth Card
> | +++ SDCard: CMD53 CMDArg: 0x90000007 TransferClass:1 ResponseType: R5
> | +++ SDCard: Write Data Transfer : NumBlocks:1 BytesPerBlock:7
> | +++ SDCard: Write Data Dump:
> ----------------------------------------------------------------------------
> ------------
> | SDOutputBuffer: 0x00662548 , Size: 7 bytes
> | 0x00000000 07 00 00 01 03 0C 00 .......
>
> |
> ----------------------------------------------------------------------------
> ------------
> | +++ SDCard: Calling Send Handler for HC:i.MX21. Slot:0,
> Request:0x00282620
> | SDHBusRequestHandler - CMD: 0x35 ARG: 0x90000007, TxClass: 1
> | SDHBusRequestHandler - CMDAT Reg: 0x00000219, CMD:53n
> | SDCard: SDBusRequest-
> | --- SDBusDriver: HandleBusRequestComplete, Completing Request: 0x00282620
> ,
> | on dev Bluetooth Card
> | --- SDBusDriver: CMD53 CMDArg: 0x90000007 TransferClass:1 ResponseType:
> R5
> | Complete
> | --- SDBusDriver: Response Dump:
> ----------------------------------------------------------------------------
> ------------
> | SDOutputBuffer: 0x00282640 , Size: 6 bytes
> | 0x00000000 00 00 10 00 00 35 .....5
>
> |
> ----------------------------------------------------------------------------
> ------------
> | --- SDBusDriver: Write Transfer Complete: NumBlocks:1 BytesPerBlock:7
> | SDCard: +SDFreeToMemList
> | SDCard: -SDFreeToMemList
> | SDBus: Freed request 0x00282620
> | HandleBusRequestComplete- Completed queue is now empty
> | SDCard: +SDFreeToMemList
> | SDCard: -SDFreeToMemList
> | SDCard: SendSynchCommandRequest-
> | [TRP]
> | [SDIO] CSdioDevice::SDSend - CardStatus from response = 0x1000
> | [HCI]
> | Writer: go to sleep
> | [HCI]
> | Writer: woke up
> | [HCI]
> | Writer : no packets
> | [HCI]
> | Writer: go to sleep
> | [HCI]
> | hci_connect_transport:: got reset response (before lock)
> | [HCI]
> | hci_connect_transport:: got reset response (in)
> | [HCI]
> | RetireCall:: [call 0822fd6c device 00661ab8] packet 00000000
> | [HCI]
> | RetireCall:: found sent packet
> | [HCI]
> | PACKET TRACK :: Destroyed packet 0x00662370
> | [HCI]
> | RetireCall:: going into callback
> | [HCI]
> | RetireCall:: came from callback
> | [HCI]
> | RetireCall:: ERROR_SUCCESS
> | [TRP]
> | [SDIO] HCI_CloseConnection
> | [TRP]
> | [SDIO] CSdioDevice::SignalRefCountZero - IO completed, detach can proceed.
> | [TRP]
> | [SDIO] HCI_ReadPacket - Error reading packet from SDIO device.
> | [HCI]
> | Writer: woke up
> | [HCI]
> | RT: Communication breakdown - exiting
> | [HCI]
> | WT: Exiting - shutting down...
> | [ERR]
> | hci_connect_transport:: ERROR_OUTOFMEMORY (2)
> |
> | Then, I do not see anything else. As an information, I put my O2
> Smartphone
> | device with Bkuetooth enabled near my development board.
> |
> | The following sysgen are set in my development :
> | SYSGEN_BTH
> | SYSGEN_BTH_SDIO_ONLY
> | SYSGEN_BTH_AG
> | SYSGEN_BTH_PAN
> | SYSGEN_SD_MEMORY
> |
> | Thanks in advance.
> |
> | Ikhsan
> |
> |
>
>
- Next message: sienaman: "Re: pcmcia irq detection and assignment"
- Previous message: Susan: "RE: Bluetooth SD & Wince5.0"
- In reply to: Greg Scott [MS]: "Re: SDIO Bluetooth in WinCE 5.0"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|