2017-07-09 12:36 AM
Hi,
I've got problem with
SPBTLE-RF module while it's in
CENTRALrole and it's scanning devices. I'm able to start scanning procedure and receiving advertising report but it's not completed. There is no all information inside. Device is sending more data but in some way it's parted or not available. It's like module can only send data in max 40bytes packed.
1. When device is in
CENTRAL role I'm receiving all data but it's parted in two separate reports (not as one):
recived by hci:
read1 = 40
read2 = 4000:00:06.272 04 3e 25 02 01 00 00 2c 87 ab d3 61 6c 19 02 01 06 03 03 0a 18 11 07 2f 2a 93 a6 bd d8 41 52 ac 0b 10 99 2e c6 fe ed c4read1 = 43read2 = 4300:00:06.272 04 3e 28 02 01 04 00 2c 87 ab d3 61 6c 1c 0b 09 6d 61 69 6c 42 65 61 63 6f 6e 0f ff 45 73 00 01 42 00 2c 87 ab d3 61 6c 65 d5 c4and what's is reported as two separate frames not one (data are splited). HCI_Event_CB report me that as two seprate frames not as one: (bold is RSSI value in structure)
02 01 06 03 03 0a 18 11 07 2f 2a 93 a6 bd d8 41 52 ac 0b 10 99 2e c6 fe ed c4 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[1] size2 [3] size3 [7] size11 [0] sizec40b 09 6d 61 69 6c 42 65 61 63 6f 6e 0f ff 45 73 00 01 42 00 2c 87 ab d3 61 6c 65 d5 c4 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [9] sizeb [ff] sizef [0] sizec4should it be like that or is it a bug? I think it should be reported as one - not separate because like that it's useless.
2. When device is in OBSERVER role I'm starting scanning procedure with aci_gap_start_observation_procedure and starting to receiving reports but it's not completed:
read1 = 40
read2 = 4000:00:06.285 04 3e 25 02 01 00 00 2c 87 ab d3 61 6c 19 02 01 06 03 03 0a 18 11 07 2f 2a 93 a6 bd d8 41 52 ac 0b 10 99 2e c6 fe ed c202 01 06 03 03 0a 18 11 07 2f 2a 93 a6 bd d8 41 52 ac 0b 10 99 2e c6 fe ed c2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[1] size2 [3] size3 [7] size11 [0] sizec2It's always getting only 40 bytes from device and rest of data send by BLE device it's not visible.
Can someone give me a tip? Maybe i'm doing something wrong? I've tested on two devices (old one and new) just to make sure firmware is not old but both work the same:
firmware:
HCI <- 01 01 10 00
read1 = 15read2 = 1500:00:06.215 04 0e 0c 01 01 10 00 07 07 31 07 30 00 23 00hci_version=0x7 hci_revision=0x3107 lmp_pal_version=0x7 manufacturer_name=0x30 lmp_pal_subversion=0x23
J.K.
#idb05a1 #spbtle-rf #bluenrg2017-07-10 01:58 AM
In center role I was able to merge two frames in big one so this in some way solve my problem/question. If someone would answer me why in observation role I'm not seeing all advertising data I would be gratefull.
J.K.