How to force to run in active mode(not sniff mode)

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

cross mob
ilHw_4713311
Level 4
Level 4
5 solutions authored 50 sign-ins 50 replies posted

Tool: modustoolbox 3.0
Platform: CYBT-41355-EVAL
BR/EDR mode

Hello.
I'm using SPP profile. 
Once it connected, Galaxy(Samsung) goes to sniff mode in a short time, so that data throughput is tool low comparing another android(Pixel reference).

I call "wiced_bt_dev_cancel_sniff_mode" and result is WICED_BT_PENDING but it still go to sniff mode.
How can I avoid it?

ilHw_4713311_0-1684827928392.png

 

[Log]
8100 (f8 f1 e6 2f 79 5c ) sniff mode cancel = 8100
Power mgmt status event: bd (f8 f1 e6 2f 79 5c ) status:0 hci_status:0
Power mgmt status event: bd (f8 f1 e6 2f 79 5c ) status:2 hci_status:0
8100 (f8 f1 e6 2f 79 5c ) sniff mode cancel = 8100
Power mgmt status event: bd (f8 f1 e6 2f 79 5c ) status:0 hci_status:0
Power mgmt status event: bd (f8 f1 e6 2f 79 5c ) status:2 hci_status:0
8100 (f8 f1 e6 2f 79 5c ) sniff mode cancel = 8100
Power mgmt status event: bd (f8 f1 e6 2f 79 5c ) status:0 hci_status:0
Power mgmt status event: bd (f8 f1 e6 2f 79 5c ) status:2 hci_status:0
8100 (f8 f1 e6 2f 79 5c ) sniff mode cancel = 8100
Power mgmt status event: bd (f8 f1 e6 2f 79 5c ) status:0 hci_status:0

0 Likes
1 Solution
WPG_Liam
Level 2
Level 2
Distributor
25 sign-ins First like received 5 replies posted

Hi Advait Kulkarni,

I found out the way to disable sniff mode by using wiced_bt_dev_set_link_policy() API.

Thanks,

Liam

View solution in original post

0 Likes
9 Replies
advait_kulkarni
Moderator
Moderator
Moderator
25 likes received 250 sign-ins 100 solutions authored

Hi @ilHw_4713311 

Can you please let us know if you are using the Rfcomm spp CE or any custom project? If it is a custom project, can you share it with us?

Thanks and regards,

Advait Kulkarni

0 Likes
ilHw_4713311
Level 4
Level 4
5 solutions authored 50 sign-ins 50 replies posted

I'm using CYBT-41355-EVAL evaluation board with modustoolbox 3.0.
I have no idea about "Rfcomm spp CE".

0 Likes
advait_kulkarni
Moderator
Moderator
Moderator
25 likes received 250 sign-ins 100 solutions authored

Hi @ilHw_4713311 ,

This is the SPP code example that I was talking about: https://github.com/Infineon/mtb-example-btsdk-rfcomm-spp

Can you please share your project with us so we can debug it?

Thanks and regards,

Advait Kulkarni

0 Likes
ilHw_4713311
Level 4
Level 4
5 solutions authored 50 sign-ins 50 replies posted

Hello.

That is my sample I'm testing. Difference is "TARGET=CYBT-413055-EVAL" in makefile.
Can you please let me know about "sniff mode" policy or something? 


0 Likes
WPG_Liam
Level 2
Level 2
Distributor
25 sign-ins First like received 5 replies posted

Hi Advait Kulkarni,

This is Liam Lee working for WPG Korea(disty in KR) as FAE. Firstly, let me check this issue with customer and then update later.

Thanks,

Liam

0 Likes
lock attach
Attachments are accessible only for community members.
ilHw_4713311
Level 4
Level 4
5 solutions authored 50 sign-ins 50 replies posted

From log(sniff_samsung_galaxyA51.txt),  cyw20719 had received HCI_Mode_Change(sniff).
Problem is that it keeps sniff mode even if it is about to send data so that we had low throughput than other Android.
Question) do I have to do something before sending data?

552 16:18:36.590 D🠈 HCI EVT Current Mode : 2 (Sniff)
553 16:18:36.590 D🠈 HCI EVT Interval (625us units) : 800 (0x0320)
554 16:18:57.281 D🠊 HCI ACL SENT - HCI_RAW ACL Data :


0 Likes
WPG_Liam
Level 2
Level 2
Distributor
25 sign-ins First like received 5 replies posted

Hi Advait Kulkarni,

I've checked this issue with customer and test environments are as follows,

1. H/W 

 - CYW20719B2Q40EVB-01

 - Peer device : Galaxy A51/A52, Lenovo laptop

2. S/W

 - Application : Modustoolbox 3.0 and "RFCOMM_Serial_Port" as default code.

 - Peer device's Apps : "Bluetooth Terminal" Android Apps

3. Test Procedures and the results.

 a. Establish connection between CYW20719 and Android phone

 b. Run Android Apps and then "Connect a device - Secure" on the Apps.

 c. Press button on CYW20719 to send 1MB data.

 d. As the results, t-put is measured under 100kbsp compared to laptop 550kbps. Also, data transmission from 20719 is very often pending(stopped) during sending.

4. Analysis

Since Galaxy phone often enters sniff mode during receiving data from 20719, total t-put is lower than other device(i.e laptop). Additionally, customer guess the pending is caused of the sniff mode.

Q) Customer has tried to exit sniff mode by calling wiced_bt_dev_cancel_sniff_mode() API but t-put is measured about 400kbps. So, customer wants to disable the sniff feature itself with CYW20719. Could you let me know how to disable the sniff feature during feature negotiation?

Thanks,

Liam

0 Likes
WPG_Liam
Level 2
Level 2
Distributor
25 sign-ins First like received 5 replies posted

Hi Advait Kulkarni,

I found out the way to disable sniff mode by using wiced_bt_dev_set_link_policy() API.

Thanks,

Liam

0 Likes
AnjanaM_61
Moderator
Moderator
Moderator
5 comments on KBA First comment on KBA 5 questions asked

Hello @ilHw_4713311 

Thanks for sharing the fix which you tried. 

Regards,

 

0 Likes