did anybody test PAN1315 with Windows CE 6.0 R3 bluetooth stack ?
Currently I am able to communicate with the device through UART2 at 115.2kbs but inquiry does not report any device on the net and my device is not seen by other BT devices.
WinCE BT stack during initialization sends the following commands:
HCI_Reset, HCI_ReadBufferSize, HCI_ReadScanEnable, HCI_WriteScanEnable, HCI_ReadBDAddr, HCI_CHangeLocalName, HCI_WriteClassOfDevice.
All these commands are acknowledged by status code 0x00 from PAN1315 in a Command Complete Event message.
PAN1315 answer to HCI_Inquiry command with a Command Status Event with command pending status (0F 04 00 01 01 04).
After 10 seconds I receive an Inquiry Complete Event but no network device is enumerated :-(
The following post http://e2e.ti.com/support/low_power_rf/f/660/t/119708.aspx?PageIndex=1 say a Service Pack is required for correct operation.
I would like to know if the service pack is for Linux BT stack or for the device itself.
If so how can I apply the service pack?
Thanks for your attention,
Yes, you can use the same service pack. It is not dependent on the OS. You need to download it to the PAN1315 every time the device is turned on.
thanks a lot for the answer.
I have cloned/ported the logic from BlueZ stack to WinCE one and now PAN1315 is working under WinCE 6.0.
Yes, that is a good approach.
I am also facing the same kind of issue in Windows CE 6.0 project. I am able to communicate with the device through UART2 at 115.2kbps but my BT device does not connect with other BT devices and my device is not seen by other BT devices.
I didn't apply service pack.
Could you please say the procedure to solve the problem.
Here is Debug messages for when my BT device try to connect with other BT device and it is failed. As you seen in below statements, Connect command is sent to BT device for connecting with other BT address.But after some time got Error report from my BT device and device is disconnected.
[TRP] HCI_WritePacket type 0x01 len 16
[TRP] 0000 05 04 0d 81 5d f5 98 80 | ....]...[TRP] 0008 00 18 cc 01 00 16 b8 00 | ........[HCI] bt_create_connection_in completed with status 0[TRP] HCI_WritePacket : DONE type 0x01 len 17[TRP] HCI_ReadPacket: Event[HCI] Writer: go to sleep[TRP] 0000 0f 04 00 01 05 04 | ...... [HCI] Writer: woke up[HCI] CommandStatus: op 0x0405 status 0[HCI] CommandStatus:: going into callback[L2CAP] hci_create_connection_out: status = 0[L2CAP] hci_create_connection_out: ERROR_SUCCESS[HCI] Writer : no packets[HCI] Writer: HciCommTimeout=0x3a98, PacketsSent=0, PacketsPending=0xd2a553c0[HCI] Writer: go to sleep[HCI] Writer: woke up[HCI] CommandStatus:: came from callback[HCI] Going into StackEvent monitor notification[HCI] Writer : no packets[HCI] Writer: HciCommTimeout=0x3a98, PacketsSent=0, PacketsPending=0xd2a553c0[HCI] Writer: go to sleep[HCI] Came back StackEvent notification[HCI] Going into StackEvent monitor notification[L2CAP] L2CAP : HCI Hardware event[HCI] Came back StackEvent notification[TRP] HCI_ReadPacket[L2CAP] RequestPhysicalLink : 008098f55d81 returns 0[L2CAP] MakePhysicalLink :: returning 0[L2CAP] MakeLogicalLink to 008098f55d81 psm 0x0001[UTILS] btutil_AllocHandle :: h=0x00020007 pv=0xD2A5A6DC[L2CAP] MakeLogicalLink returns 0[L2CAP] l2ca_connect_req_in returns 0[SDP] came from l2ca_ConnectReq_In[SDP] sdp_Connect_In: iRes = 0x00000000[TRP] HCI_ReadPacket: Event[TRP] 0000 03 0b 04 01 00 81 5d f5 | ......].[TRP] 0008 98 80 00 01 00 | ..... [HCI] ConnectionComplete status = 4 handle = 0x0001 bd_addr = 008098f55d81 link = 1 encrypt = 0[HCI] PACKET TRACK :: Destroyed packet 0xd2a553c0[HCI] ConnectionComplete:: going into callback[L2CAP] hci_connection_complete_event: status = 4[L2CAP] DisconnectPhysicalLink :: 008098f55d81 reconnect = 0[L2CAP] AbortCall:: going in callback[SDP] sdp_lCallAborted(0x00020005,1460)[SDP] Entering l2ca_Disconnect_In, cid = 0x0000[L2CAP] l2ca_disconnect_in (0x0000)
I am verified the windows CE BT stack with another BT device and it is working.
without service pack PAN1315 didin't work for me.
To apply service packe you have to:
1) Clone project from C:\WINCE600\PUBLIC\COMMON\OAK\DRIVERS\BLUETOOTH\TRANSPORTS\UART
2) In HCI_OpenConnection add the logic to download service pack update
3) I have got the update logic from BlueZ stack and the service pack file is TIInit_6.2.31.bts
If you post your email address I can send you my files
Thanks for your reply.
My mail address is email@example.com. Please send me the required files.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.