Topic

FAQ
Login Register
multi advertisement BLE , TLSR8250F512
Mar 17, 2023 20:50

/

A

/A

how do we do we multiple advertisement using b885 single connection sdk



Hassaan_Khalid [Author] Mar 27, 2023 15:57
0
/A

Hi there,

I implemented changes in /feature_extend_adv/app.c  as per your guidelines but they were not successful. In your screenshot the the function blc_ll_setExtAdvParam() seems to have less parameters as provided to us by the sdk.


Please look at the function that is provided to us in sdk.


 

17 replies
TL_Soyo Mar 20, 2023 13:36
0
/A

Hi,

  you can reference single connection sdk b85m_feature_test Demo,find b85m_feature_test\feature_extend_adv code,and this section is also covered in the handbook.

Hassaan_Khalid [Author] Mar 20, 2023 22:31
0
/A





Hassaan_Khalid [Author] Mar 20, 2023 22:33
0
/A

I have set 2 different advparameters one should transmit after 1 s and other after 50 ms

But the problem is I'm getting both advertising packets at 1 s.

TL_Soyo Mar 21, 2023 15:37
0
/A

HI,

 you may need update the library to patch 5,and test again.

Hassaan_Khalid [Author] Mar 21, 2023 16:53
0
/A


can you please share the patch 5 link with me


Hassaan_Khalid [Author] Mar 21, 2023 16:55
0
/A





Hassaan_Khalid [Author] Mar 21, 2023 21:57
0
/A

The goal was to send two different advertising packets at different intervals.



Hassaan_Khalid [Author] Mar 21, 2023 21:59
0
/A



However, when compiling an example from the new SDK version 3.4.2.2, there were some issues encountered. In the file "feature_config.h" located in "vendor/b85_feature_test/", the macro FEATURE_TEST_MODE was defined with TEST_EXTENDED_ADVERTISING. Additionally, in the file "app.c" located in "vendor/b85_feature_test/feature_extend_adv/", the legacy and connectable scanner was enabled.



Hassaan_Khalid [Author] Mar 21, 2023 21:59
0
/A

After compiling the telink SDK example in "vendor/b85_feature_test/feature_ext_adv", no advertising packets were received. In contrast, when the same example was compiled using the SDK version 3.4.2.1, the advertising packets were received. However, there was a limitation in the previous version in that the process of advertising. Let me explain the issue through an example , we had set one advertising packet interval 50ms and second advertising packet interval=1s, the issue was the process of advertising was initiated according to second advertising packet interval which was 1 second and we had aimed for initiating advertising on both 50ms and 1 second.



TL_Soyo Mar 22, 2023 10:08
0
/A

HI,

  you can find patch 5 in the /telink_b85m_ble_single_connection_sdk_v3.4.2.1_Patch,and please use capture to see the adv packet,the phone can not appear right interval,because of two of adv packet used same MAC address,phone will thinks it's the same packet.

  At the same time, it looks like 3.4.2.2 has some problem,please use 3.4.2.1

Hassaan_Khalid [Author] Mar 22, 2023 21:25
0
/A

Hi there ,

We tried implementing everything for patch 5 as you described but were unsuccessful in receiving advertising packets,

I'm providing a github repo and you can see it for yourself. We would be very grateful if this problem could be solved.

https://github.com/Faizan-Ellahi/825X_Development_Single_Connection/tree/main

Hassaan_Khalid [Author] Mar 22, 2023 23:51
0
/A


Hello there we tested a vendor provided example -> b85m_feature/feature_ext_adv  under Bluetooth LE Multi Connection sdk. Looking at the contents of following file b85m_feature\feature_ext_adv\multi_adv_set.c , we knew straight away that this could help us in multi advertising. We tested it and as expected we all received packets in different intervals. The only problem was unnecessary power dissipation.


We wanted multi advertising capability in Bluetooth LE Single Connection sdk, if that is possible plz let us know through some example code.  


TL_Soyo Mar 23, 2023 10:42
0
/A

Hi,

  we viewed your code,can you test the extend adv feature in the feature Demo,then port to sample Demo,you only need modify few code in /feature_extend_adv/app.c as below ,the extend adv is work well,then look for differences with your code.



Hassaan_Khalid [Author] Mar 27, 2023 15:57
0
/A

Hi there,

I implemented changes in /feature_extend_adv/app.c  as per your guidelines but they were not successful. In your screenshot the the function blc_ll_setExtAdvParam() seems to have less parameters as provided to us by the sdk.


Please look at the function that is provided to us in sdk.


 

Hassaan_Khalid [Author] Mar 28, 2023 16:09
0
/A

Hi there,

I saw a major drawback in your packet scanning screenshot. There are 23 1eature packets between two consecutive aeture packets. As 1eature is set to be transmitted every 50ms and ideally there must 40 packets during the two second interval. The acceptable percentage of Bluetooth packets transmitted as per industry standard must be at least 77% ,which in your case is 57.5%. There might be a big problem in SDK or telink hardware. We initially planned to move from nordic chipsets to telink for BLE applications, we were also about to utilize telink chipsets for zigbee applications.

Seeing such obstacles my boss has asked us to discontinue with telink and move to new chipsets but before this drastic decision I wanted to know if our concerns could be addressed in this week or max the next week.

Hope to hear some positive response and would be expecting to hear from you soon on the email, I am sending a private email to zhitao.



TL_Soyo Mar 28, 2023 17:06
0
/A

Please use Bluetooth LE Multi Connection sdk.We confirmed it internally that single connect SDK can not support multi adv,That why cause exception in your code.

For packet loss, it is due to i am not using professional packet capture tool test