BT MFG TEST

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Ch-_2119361
Level 3
Level 3
First like received First like given

Hi,

I am using WICED SDK 3.3.1 and BlueTool to test the BT_MFG_TEST. I got the follow log, at the end, a read error shown while I was trying to use an iPhone to connect. Please help.

--Cheong

com22@115200nfc: 11/12/15 13:47:08.251          # HCI Command

HCICommand

{[0A 20 01]: 01}

# opcode = 0x200A (8202, "LE_Set_Advertise_Enable")

# Advertising_Enable = 0x1 (1, "Advertising is enabled")

#----------------------------------------------------------------------------

com22@115200nfc: 11/12/15 13:47:14.018          # HCI Event

HCIEvent

{[3E 13]: 01 00 40 00 01 01 A5 FE DA CF FB 53 18 00 00 00 48 00 05}

# event = 0x3E (62, "LE Event")

# LE_Event_Code = 0x1 (1, "LE Connection Complete Event")

# Status = 0x0 (0, "Success")

# Connection_Handle = 0x40 (64)

# Role = 0x1 (1, "Connection is slave")

# Peer_Address_Type = 0x1 (1, "Peer is using Random Address")

# Peer_Address = "53FBCFDAFEA5"

# Connection_Interval = 0x18 (24)

# Connection_Latency = 0x0 (0)

# Supervision_Timeout = 0x48 (72)

# Clock_Accuracy = 0x5 (5, "50 ppm")

#----------------------------------------------------------------------------

com22@115200nfc: 11/12/15 13:47:14.147          # ACL Data (rx)

Rx-ACLData

{[40 20 07 00]: 03 00 04 00 02 9E 00}

# Connection_Handle = 0x40 (64)

# Packet_Boundary_Flag = 0x2 (2, "First packet")

# Broadcast_Flag = 0x0 (0, "Point-to-point")

# Length = 0x7 (7)

#----------------------------------------------------------------------------

com22@115200nfc: 11/12/15 13:47:14.211          # ACL Data (rx)

Rx-ACLData

{[40 20 1B 00]: 72 00 3A 00 01 70 05 14 01 00 02 0F 63 6F 6D 2E 61 70 70 6C 65 2E 42 54 2E 54 53}

# Connection_Handle = 0x40 (64)

# Packet_Boundary_Flag = 0x2 (2, "First packet")

# Broadcast_Flag = 0x0 (0, "Point-to-point")

# Length = 0x1B (27)

#----------------------------------------------------------------------------

com22@115200nfc: 11/12/15 13:47:14.211          # ACL Data (rx)

Rx-ACLData

{[40 10 1B 00]: 01 13 02 00 01 0E 63 6F 6D 2E 61 70 70 6C 65 2E 69 64 73 00 01 11 03 00 00 0C 46}

# Connection_Handle = 0x40 (64)

# Packet_Boundary_Flag = 0x1 (1, "Continuing fragment")

# Broadcast_Flag = 0x0 (0, "Point-to-point")

# Length = 0x1B (27)

#----------------------------------------------------------------------------

com22@115200nfc: 11/12/15 13:47:14.211          # ACL Data (rx)

Rx-ACLData

{[40 10 1B 00]: 4D 49 50 2D 55 6E 6C 6F 63 6B 00 01 10 04 00 01 0B 46 4D 49 50 2D 4C 65 61 73 68}

# Connection_Handle = 0x40 (64)

# Packet_Boundary_Flag = 0x1 (1, "Continuing fragment")

# Broadcast_Flag = 0x0 (0, "Point-to-point")

# Length = 0x1B (27)

#----------------------------------------------------------------------------

com22@115200nfc: 11/12/15 13:47:15.236          ReadError 0xC0000026

# Error = 0xC0000026 (3221225510, "Reached the end of the file (C0000026)")

#----------------------------------------------------------------------------

com22@115200nfc: 11/12/15 13:47:15.236          Info-Log "Rx before timeout: 02 40 10 1B 00 00 01 22 05 00 01 1D 63 6F 6D 2E 61 70 70 6C 65 2E 42 54 4C 45 53 65 72 76 65"

#----------------------------------------------------------------------------

0 Likes
1 Solution
mringwal
Level 4
Level 4
Associated Partner - BlueKitchen GmbH
5 sign-ins 10 questions asked 10 replies posted

Hi Cheong2k

Looking at bt_mfg_test.c, it only expected HCI Command packets and will fail to forward HCI ACL packets to the module. For HCI ACL packets, that have packet type 0x02, the length is stored in 2 bytes instead of one.

View solution in original post

2 Replies
mringwal
Level 4
Level 4
Associated Partner - BlueKitchen GmbH
5 sign-ins 10 questions asked 10 replies posted

Hi Cheong2k

Looking at bt_mfg_test.c, it only expected HCI Command packets and will fail to forward HCI ACL packets to the module. For HCI ACL packets, that have packet type 0x02, the length is stored in 2 bytes instead of one.

Hi @mringwal,

Thank you for your quick response. I connected directly to the chip's BT UART, and it works fine now.

--Cheong

0 Likes