Other Parts Discussed in Thread: CC2564
Is it possible with the TiWi-uB2 which is built around CC2564 to get a list of all MAC-addresses of devices in the neighborhood?
I found an inquiry HCI command for that:
Description: This command will cause the Bluetooth device to enter Inquiry Mode. Inquiry
Mode is used to discover other nearby Bluetooth devices.
OGF = 0x01
0CF = 0x0001
==> opcode = 0x0401
But some questions about that:
-Command parameters are LAP, Inquiry_Length, Num_Responses
-No return parameters
LAP must be a value between 0x9E8B00-0X9E8B3F, but the LAP which is the last 24 bit of the 48-bits Bluetooth Device Address doesn't fit between between both values. My LAP is D3-DD-2F.
For example when I use this command:
0x01: packet type
0x01 0x04: opcode
0x2F 0xDD 0xD3: LAP
0x10: Maximum amount of time specified before the Inquiry is halted. Time = N * 1.28 sec
0x00: Default. Unlimited number of responses.
When I do this with other Bluetooth devices in the neighborhood, I got no response.
When I replace the LAP with 00-00-00:
0x01: packet type
0x01 0x04: opcode
0x00 0x00 0x00: LAP
0x10: Maximum amount of time specified before the Inquiry is halted. Time = N * 1.28 sec
0x00: Default. Unlimited number of responses.
I got the response 04-0F-04-12-01-01-04-04-10-01-06.
I also used the HCI command read_LAP, whick respond me a LAP of 9E-8B-33:
0x01: packet type
0x01 0x04: opcode
0x33 0x8B 0x9E: LAP
0x10: Maximum amount of time specified before the Inquiry is halted. Time = N * 1.28 sec
0x00: Default. Unlimited number of responses.
But also no response.
Any help would be great!
I just want as return a list of all Bluetooth device addresses.