i can not receive notification data frequently

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

cross mob
Anonymous
Not applicable

Hi all

i used BCM920737 for receive notification data from WICED sensor 2, and i modify hello_client project to  receive data.

i used the SDK 2.2.2

sometimes i can receive data directly, but i often loss notification data after reconnect the WICED sensor 2.

i was capture the log from client side as below. how can i find root cause and solve this problem?

normal log:

blecm evt handler:
3e 2b 02 01 00 00 02 00 10 7a 73 20 1f 02 01 05
09 ff 0f 00 02 02 f2 02 20 3a 11 09 57 49 43 45
44 20 53 65 6e 73 65 32 20 4b 69 74 a8
02 01 05 09 ff 0f 00 02 02 f2 02 20 3a 11 09 57
49 43 45 44 20 53 65 6e 73 65 32 20 4b 69 74
05
0f 00 02 02 f2 02 20 3a
57 49 43 45 44 20 53 65 6e 73 65 32 20 4b 69 74
07

blecm evt handler:
3e 0f 02 01 04 00 02 00 10 7a 73 20 03 02 0a 04
a9
02 0a 04
04

blecm evt handler:
0e 04 01 0a 20 00

blecm evt handler:
0e 04 01 0e 20 0c

blecm evt handler:
0f 04 00 01 0d 20

blecm evt handler:
0e 04 01 0c 20 00
@$*#04FF86F7009201100080EFCD07A81F000080EFD507107A732080EFDD070200000080EFD1080000000080EF510A0000000080EF7D09000000000007
blecm evt handler:
3e 13 01 00 40 00 00 00 02 00 10 7a 73 20 06 00
00 00 90 01 05
GetBondedInfoIdx returns 0 meaning no bonded info

Load Dev Info:
02 00 10 7a 73 20
idx = -1

No Bonded Info
hello_client_connection_up()

l2cap Tx:
40 20 09 00 05 00 04 00 12 2b 00 01 00
handle:40 slave(1)master(0):0 slave_num:1 to_master:0

Adv during conn enable

Tx buffer = 14

blecm evt handler:
0e 04 01 0a 20 0c
EE1D0100
blecm evt handler:
0e 04 01 0a 20 00

blecm evt handler:
0e 04 01 06 20 00

blecm evt handler:
0e 04 01 0a 20 00

l2cap Rx:
40 20 10 00 0c 00 05 00 12 01 08 00 40 00 60 00
00 00 f4 01

l2cap Tx:
40 20 0a 00 06 00 05 00 13 01 02 00 00 00

blecm evt handler:
0e 04 01 0c 20 0c

l2cap Rx:
40 20 06 00 02 00 06 00 0b 01
hello_client_l2cap_smp_data_handler()

blecm evt handler:
0e 04 01 0b 20 00

l2cap Rx:
40 20 05 00 01 00 04 00 13
Client write rsp

blecm evt handler:
13 05 01 40 00 02 00

blecm evt handler:
0e 04 01 0c 20 00
000000078E1E
blecm evt handler:
0f 04 00 01 13 20
0000000080EF610C0200000080EF010D0100000080EFE50A0200000080EF110B0000000080EFCD07A903000480EFD507107A...
blecm evt handler:
3e 0a 03 00 40 00 60 00 00 00 f4 01

/* receive notification data*/

l2cap Rx:
40 20 1b 00 17 00 04 00 1b 2a 00 02 0b dc ff fa
fe f4 ff f2 0d f0 e7 84 f4 77 00 1c 00 7f 03
ACC02
0b dc ff fa fe f4 ff f2 0d f0 e7 84 f4 77 00 1c
00 7f 03

l2cap Rx:
40 20 1b 00 17 00 04 00 1b 2a 00 02 0b d5 ff f0
fe f5 ff 4e 0c 4c e6 de ef 7b 00 24 00 78 03
ACC02
0b d5 ff f0 fe f5 ff 4e 0c 4c e6 de ef 7b 00 24
00 78 03

/* disconect WICED sensor 2*/

blecm evt handler:
05 04 00 40 00 08
hello_client_connection_down()

Conn Down handle:40 Slave:0 Disc_Reason: 08

@$*#04FF26F70092
blecm evt handler:
0e 04 01 0c 20 00

blecm evt handler:
0e 04 01 0b 20 00

blecm evt handler:
0e 04 01 0c 20 00
01040080046A1F0000000000074A210000000080EFE50A0200000080EFB10B02000000

fail log:

blecm evt handler:
3e 2b 02 01 00 00 02 00 10 7a 73 20 1f 02 01 05
09 ff 0f 00 02 02 f2 02 20 3a 11 09 57 49 43 45
44 20 53 65 6e 73 65 32 20 4b 69 74 b6
02 01 05 09 ff 0f 00 02 02 f2 02 20 3a 11 09 57
49 43 45 44 20 53 65 6e 73 65 32 20 4b 69 74
05
0f 00 02 02 f2 02 20 3a
57 49 43 45 44 20 53 65 6e 73 65 32 20 4b 69 74
6a

blecm evt handler:
3e 0f 02 01 04 00 02 00 10 7a 73 20 03 02 0a 04
b5
02 0a 04
04

blecm evt handler:
0e 04 01 0a 20 00

blecm evt handler:
0e 04 01 0e 20 0c

blecm evt handler:
0f 04 00 01 0d 20

blecm evt handler:
3e 2b 02 01 00 00 02 00 10 7a 73 20 1f 02 01 05
09 ff 0f 00 02 02 f2 02 20 3a 11 09 57 49 43 45
44 20 53 65 6e 73 65 32 20 4b 69 74 ad
02 01 05 09 ff 0f 00 02 02 f2 02 20 3a 11 09 57
49 43 45 44 20 53 65 6e 73 65 32 20 4b 69 74
05
0f 00 02 02 f2 02 20 3a
57 49 43 45 44 20 53 65 6e 73 65 32 20 4b 69 74
fa

blecm evt handler:
0e 04 01 0c 20 00

blecm evt handler:
3e 13 01 00 40 00 00 00 02 00 10 7a 73 20 06 00
00 00 90 01 05
GetBondedInfoIdx returns 0 meaning no bonded info

Load Dev Info:
02 00 10 7a 73 20
idx = -1

No Bonded Info
hello_client_connection_up()

l2cap Tx:
40 20 09 00 05 00 04 00 12 2b 00 01 00
handle:40 slave(1)master(0):0 slave_num:1 to_master:0

Adv during conn enable

Tx buffer = 14

blecm evt handler:
0e 04 01 0a 20 0c

blecm evt handler:
0e 04 01 0e 20 0c

blecm evt handler:
0f 04 00 01 0d 20

l2cap Rx:
40 20 10 00 0c 00 05 00 12 01 08 00 40 00 60 00
00 00 f4 01

l2cap Tx:
40 20 0a 00 06 00 05 00 13 01 02 00 00 00

l2cap Rx:
40 20 06 00 02 00 06 00 0b 01
hello_client_l2cap_smp_data_handler()

blecm evt handler:
0e 04 01 0c 20 0c

blecm evt handler:
0e 04 01 0a 20 00

l2cap Rx:
40 20 05 00 01 00 04 00 13
Client write rsp

blecm evt handler:
0e 04 01 0a 20 0c

blecm evt handler:
13 05 01 40 00 02 00

blecm evt handler:
0e 04 01 06 20 00

blecm evt handler:
0e 04 01 0a 20 00

blecm evt handler:
0e 04 01 0c 20 0c

blecm evt handler:
0e 04 01 0b 20 00

blecm evt handler:
0e 04 01 0c 20 00

blecm evt handler:
0f 04 00 01 13 20
@$*#04FFF6F70092011E0300C1E8040200000080EFDD070200000080EFD1080000000080EF510A0000000080EF7D090000000000078E1E0000000080EF610C0100000080EF010D0100000080EFE50A0200000080EF110B0000000080EFCD07B503000480EFD507107A732080EFDD070200000080EF91090000000080EFCD07AD1F000080EFD507107A732080EFDD070200000080EFD1080000000080EF510A0000000080EF7D090000000000078E1E0000000080EF610C0100000080EF010D0100000080EF110B000000000002FA240000000000078633000000000007E6200000000000078E1E000000000007021F0100000080EFB10B02000000@$*#04FF1EF7009201030080EF9D0E0000000080EFB90E6000400080EFBD0EF4010000
blecm evt handler:
3e 0a 03 00 40 00 60 00 00 00 f4 01

/* No any response......*/

/* disconect WICED sensor 2*/

blecm evt handler:
05 04 00 40 00 08
hello_client_connection_down()

Conn Down handle:40 Slave:0 Disc_Reason: 08

@$*#04FF26F7
blecm evt handler:
0e 04 01 0c 20 00

blecm evt handler:
0e 04 01 0b 20 00

blecm evt handler:
0e 04 01 0c 20 00
009201040080046A1F0000000000074A210000000080EFE50A0200000080EFB10B02000000

0 Likes
1 Reply
JacobT_81
Employee
Employee
250 replies posted 100 replies posted 50 replies posted

Are your disconnects purposeful? The disconnection reason is a connection timeout, meaning the client terminates due to the server not responding for some specified amount of time.

It's really difficult to say why after disconnect and reconnect, the sensor would stop sending notifications. But traces from the wiced_sense device would help you to debug it to see why it's not responding.

hello_sensor and hello_client were designed to work together. I recommend that you instead switch from wiced_sense to hello_sensor as the peripheral device. These will work together without changes and you can make your changes from there i.e. adding sensor readings etc.

Jacob