- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
[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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Advait Kulkarni,
I found out the way to disable sniff mode by using wiced_bt_dev_set_link_policy() API.
Thanks,
Liam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm using CYBT-41355-EVAL evaluation board with modustoolbox 3.0.
I have no idea about "Rfcomm spp CE".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 :
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Advait Kulkarni,
I found out the way to disable sniff mode by using wiced_bt_dev_set_link_policy() API.
Thanks,
Liam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content