- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
mifo
Unfortunately, I have to report that the bt library is totally broken in wiced-studio-5.0 release.
Below is the log, shows the buffer usage keep growing until out of buffer.
My application only calls wiced_bt_ble_observe(WICED_TRUE, 0, myr_scan_results_cb).
Note, it was working on WICED Studio 5.0.0.26 (Pre-Release).
Any chance to provide an urgent fix?
00:00:45.063928 GKI_create_task func=0x8043325 id=1 name=BTU stack=0x0 stackSize=6144␍␍␊
00:00:45.006392 GKI_create_task func=0x8044845 id=0 name=HCISU stack=0x0 stackSize=4096␍␍␊
00:00:58.065392 ␍␍␊
00:00:58.001856 --- Bluetooth(Pool type: A-App, I-Internal) Buffer summary ---␍␍␊
00:00:58.008856 Pool(size,type) Available In-use Total Max-used␍␍␊
00:00:58.015856 --------------------------------------------------------␍␍␊
00:00:58.021856 00( 64, A): 8, 8, 16, 8␍␍␊
00:00:58.028856 01( 360, A): 16, 0, 16, 0␍␍␊
00:00:58.034856 02( 360, A): 6, 0, 6, 0␍␍␊
00:00:58.040856 03( 600, A): 2, 0, 2, 0␍␍␊
00:01:05.022464 ␍␍␊
00:01:05.024464 --- Bluetooth(Pool type: A-App, I-Internal) Buffer summary ---␍␍␊
00:01:05.031464 Pool(size,type) Available In-use Total Max-used␍␍␊
00:01:05.038464 --------------------------------------------------------␍␍␊
00:01:05.044464 00( 64, A): 6, 10, 16, 10␍␍␊
00:01:05.051464 01( 360, A): 16, 0, 16, 0␍␍␊
00:01:05.057464 02( 360, A): 6, 0, 6, 0␍␍␊
00:01:05.063464 03( 600, A): 2, 0, 2, 0␍␍␊
00:01:08.009712 ␍␍␊
00:01:08.011712 --- Bluetooth(Pool type: A-App, I-Internal) Buffer summary ---␍␍␊
00:01:08.018712 Pool(size,type) Available In-use Total Max-used␍␍␊
00:01:08.025712 --------------------------------------------------------␍␍␊
00:01:08.031712 00( 64, A): 4, 12, 16, 12␍␍␊
00:01:08.038712 01( 360, A): 16, 0, 16, 0␍␍␊
00:01:08.044712 02( 360, A): 6, 0, 6, 0␍␍␊
00:01:08.050712 03( 600, A): 2, 0, 2, 0␍␍␊
00:01:11.023320 ␍␍␊
00:01:11.025320 --- Bluetooth(Pool type: A-App, I-Internal) Buffer summary ---␍␍␊
00:01:11.032320 Pool(size,type) Available In-use Total Max-used␍␍␊
00:01:11.039320 --------------------------------------------------------␍␍␊
00:01:11.045320 00( 64, A): 2, 14, 16, 14␍␍␊
00:01:11.052320 01( 360, A): 16, 0, 16, 0␍␍␊
00:01:11.058320 02( 360, A): 6, 0, 6, 0␍␍␊
00:01:11.064320 03( 600, A): 2, 0, 2, 0␍␍␊
00:01:15.008712 ␍␍␊
00:01:15.010712 --- Bluetooth(Pool type: A-App, I-Internal) Buffer summary ---␍␍␊
00:01:15.017712 Pool(size,type) Available In-use Total Max-used␍␍␊
00:01:15.024712 --------------------------------------------------------␍␍␊
00:01:15.030712 00( 64, A): 0, 16, 16, 16␍␍␊
00:01:15.037712 01( 360, A): 16, 0, 16, 0␍␍␊
00:01:15.043712 02( 360, A): 6, 0, 6, 0␍␍␊
00:01:15.049712 03( 600, A): 2, 0, 2, 0␍␍␊
00:01:21.051104 ␍␍␊
00:01:21.053104 --- Bluetooth(Pool type: A-App, I-Internal) Buffer summary ---␍␍␊
00:01:21.060104 Pool(size,type) Available In-use Total Max-used␍␍␊
00:01:21.001568 --------------------------------------------------------␍␍␊
00:01:21.007568 00( 64, A): 0, 16, 16, 16␍␍␊
00:01:21.014568 01( 360, A): 12, 4, 16, 4␍␍␊
00:01:21.020568 02( 360, A): 6, 0, 6, 0␍␍␊
00:01:21.026568 03( 600, A): 2, 0, 2, 0␍␍␊
00:01:23.058496 ␍␍␊
00:01:23.060496 --- Bluetooth(Pool type: A-App, I-Internal) Buffer summary ---␍␍␊
00:01:23.001960 Pool(size,type) Available In-use Total Max-used␍␍␊
00:01:23.008960 --------------------------------------------------------␍␍␊
00:01:23.014960 00( 64, A): 0, 16, 16, 16␍␍␊
00:01:24.005000 01( 360, A): 12, 4, 16, 4␍␍␊
00:01:24.011000 02( 360, A): 6, 0, 6, 0␍␍␊
00:01:24.017000 03( 600, A): 2, 0, 2, 0␍␍␊
00:01:26.064392 ␍␍␊
00:01:26.000856 --- Bluetooth(Pool type: A-App, I-Internal) Buffer summary ---␍␍␊
00:01:26.007856 Pool(size,type) Available In-use Total Max-used␍␍␊
00:01:26.014856 --------------------------------------------------------␍␍␊
00:01:26.020856 00( 64, A): 0, 16, 16, 16␍␍␊
00:01:26.027856 01( 360, A): 10, 6, 16, 6␍␍␊
00:01:26.033856 02( 360, A): 6, 0, 6, 0␍␍␊
00:01:26.039856 03( 600, A): 2, 0, 2, 0␍␍␊
00:01:31.028176 ␍␍␊
00:01:31.030176 --- Bluetooth(Pool type: A-App, I-Internal) Buffer summary ---␍␍␊
00:01:31.037176 Pool(size,type) Available In-use Total Max-used␍␍␊
00:01:31.044176 --------------------------------------------------------␍␍␊
00:01:31.050176 00( 64, A): 0, 16, 16, 16␍␍␊
00:01:31.057176 01( 360, A): 8, 8, 16, 8␍␍␊
00:01:31.063176 02( 360, A): 6, 0, 6, 0␍␍␊
00:01:31.003640 03( 600, A): 2, 0, 2, 0␍␍␊
00:01:36.009712 ␍␍␊
00:01:36.011712 --- Bluetooth(Pool type: A-App, I-Internal) Buffer summary ---␍␍␊
00:01:36.018712 Pool(size,type) Available In-use Total Max-used␍␍␊
00:01:36.025712 --------------------------------------------------------␍␍␊
00:01:36.031712 00( 64, A): 0, 16, 16, 16␍␍␊
00:01:36.038712 01( 360, A): 6, 10, 16, 10␍␍␊
00:01:36.044712 02( 360, A): 6, 0, 6, 0␍␍␊
00:01:36.050712 03( 600, A): 2, 0, 2, 0␍␍␊
00:01:40.017000 ␍␍␊
00:01:40.019000 --- Bluetooth(Pool type: A-App, I-Internal) Buffer summary ---␍␍␊
00:01:40.026000 Pool(size,type) Available In-use Total Max-used␍␍␊
00:01:40.033000 --------------------------------------------------------␍␍␊
00:01:40.039000 00( 64, A): 0, 16, 16, 16␍␍␊
00:01:40.046000 01( 360, A): 4, 12, 16, 12␍␍␊
00:01:40.052000 02( 360, A): 6, 0, 6, 0␍␍␊
00:01:40.058000 03( 600, A): 2, 0, 2, 0␍␍␊
00:01:43.058464 ␍␍␊
00:01:43.060464 --- Bluetooth(Pool type: A-App, I-Internal) Buffer summary ---␍␍␊
00:01:43.001928 Pool(size,type) Available In-use Total Max-used␍␍␊
00:01:43.008928 --------------------------------------------------------␍␍␊
00:01:43.014928 00( 64, A): 0, 16, 16, 16␍␍␊
00:01:43.021928 01( 360, A): 2, 14, 16, 14␍␍␊
00:01:43.027928 02( 360, A): 6, 0, 6, 0␍␍␊
00:01:43.033928 03( 600, A): 2, 0, 2, 0␍␍␊
00:01:46.049000 --- Bluetooth(Pool type: A-App, I-Internal) Buffer summary ---␍␍␊
00:01:46.056000 Pool(size,type) Available In-use Total Max-used␍␍␊
00:01:46.063000 --------------------------------------------------------␍␍␊
00:01:46.003464 00( 64, A): 0, 16, 16, 16␍␍␊
00:01:46.010464 01( 360, A): 0, 16, 16, 16␍␍␊
00:01:46.016464 02( 360, A): 6, 0, 6, 0␍␍␊
00:01:46.022464 03( 600, A): 2, 0, 2, 0␍␍␊
00:01:49.010032 ␍␍␊
00:01:49.012032 --- Bluetooth(Pool type: A-App, I-Internal) Buffer summary ---␍␍␊
00:01:49.019032 Pool(size,type) Available In-use Total Max-used␍␍␊
00:01:49.026032 --------------------------------------------------------␍␍␊
00:01:49.032032 00( 64, A): 0, 16, 16, 16␍␍␊
00:01:49.039032 01( 360, A): 0, 16, 16, 16␍␍␊
00:01:49.045032 02( 360, A): 4, 2, 6, 2␍␍␊
00:01:49.051032 03( 600, A): 2, 0, 2, 0␍␍␊
00:01:53.004000 ␍␍␊
00:01:53.006000 --- Bluetooth(Pool type: A-App, I-Internal) Buffer summary ---␍␍␊
00:01:53.013000 Pool(size,type) Available In-use Total Max-used␍␍␊
00:01:53.020000 --------------------------------------------------------␍␍␊
00:01:53.026000 00( 64, A): 0, 16, 16, 16␍␍␊
00:01:53.033000 01( 360, A): 0, 16, 16, 16␍␍␊
00:01:53.039000 02( 360, A): 4, 2, 6, 2␍␍␊
00:01:53.045000 03( 600, A): 2, 0, 2, 0␍␍␊
00:01:56.034712 ␍␍␊
00:01:56.036712 --- Bluetooth(Pool type: A-App, I-Internal) Buffer summary ---␍␍␊
00:01:56.043712 Pool(size,type) Available In-use Total Max-used␍␍␊
00:01:56.050712 --------------------------------------------------------␍␍␊
00:01:56.056712 00( 64, A): 0, 16, 16, 16␍␍␊
00:01:56.063712 01( 360, A): 0, 16, 16, 16␍␍␊
00:01:56.004176 02( 360, A): 2, 4, 6, 4␍␍␊
00:01:56.010176 03( 600, A): 2, 0, 2, 0␍␍␊
00:01:59.045928 ␍␍␊
00:01:59.047928 --- Bluetooth(Pool type: A-App, I-Internal) Buffer summary ---␍␍␊
00:01:59.054928 Pool(size,type) Available In-use Total Max-used␍␍␊
00:01:59.061928 --------------------------------------------------------␍␍␊
00:01:59.002392 00( 64, A): 0, 16, 16, 16␍␍␊
00:01:59.009392 01( 360, A): 0, 16, 16, 16␍␍␊
00:01:59.015392 02( 360, A): 0, 6, 6, 6␍␍␊
00:01:59.021392 03( 600, A): 2, 0, 2, 0␍␍␊
00:02:01.011496 ␍␍␊
00:02:01.013496 --- Bluetooth(Pool type: A-App, I-Internal) Buffer summary ---␍␍␊
00:02:01.020496 Pool(size,type) Available In-use Total Max-used␍␍␊
00:02:01.027496 --------------------------------------------------------␍␍␊
00:02:01.033496 00( 64, A): 0, 16, 16, 16␍␍␊
00:02:01.040496 01( 360, A): 0, 16, 16, 16␍␍␊
00:02:01.046496 02( 360, A): 0, 6, 6, 6␍␍␊
00:02:01.052496 03( 600, A): 0, 2, 2, 2␍␍␊
00:02:05.048856 GKI_exception(): Task State Table␍␍␊
00:02:05.052856 GKI_exception 65524 getbuf: out of buffers␍␍␊
00:02:09.048856 GKI_exception(): Task State Table␍␍␊
00:02:09.052856 GKI_exception 65524 getbuf: out of buffers␍␍␊
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
My platform file has a (wrong) WICED_BT_PIN_RESET setting.
It looks like older bt library complete ignore that setting (so it was working in older sdk).
With latest sdk, I just comment out that setting now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi mifo
As I said, we are waiting for official sdk for mass production.
With this issue, we just cannot use the official sdk-5.0.
It's a regression between 5.0.0.26 and official release.
I believe it should be fixed quickly by bisect to find the bad commit.
(It looks like a leak for the buffer usage)
Let me know when can I get the fix.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
mifo
My whole team are pending today to wait for your response.
1. Can you reproduce this issue now?
2. When will the fix availabe?
I need to know the schedule so I can arrange resource allocation.
I cannot make whole team waiting endless.
This is an urgent case, I hope we don't need to wait too long.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The buffer usage keep growing... but I actually don't get any scan result.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Alex,
So far from what we tested, we could not see this issue. Can you please attach your code and logs here?
Regards,
-Madhu Sudhan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi axel.lin_1746341,
I tested with the "ble scan test" file you posted.
When I ran the file, the logs stopped after some time and it crashed quickly as you said.
In the ble_scan_results_cb () function, when I replaced the "wiced_bt_print_cfg_buf_pool_stats ()" with simply "printf ("scan callback\r\n");" it was working fine. I was getting continuous scan callbacks without any crash.
The reason why wiced_bt_print_cfg_buf_pool_stats() could be causing the issue was it was printing lot of data after some internal processing, compared to simply printf. So there was a data mismatch between the rate of arrival of scan results and the rate at which the serial data is being printed.
When I added wiced_bt_start_advertisements() after the wiced_bt_ble_observe () API, i was still able to get continuous scan results (when wiced_bt_print_cfg_buf_pool_stats () is not used.
We recommend you not to use resource consuming APIs like wiced_bt_print_cfg_buf_pool_stats () inside scan callbacks, as the latter is being in quick intervals.
Please confirm this on your side and let me know.
regards,
-Madhu Sudhan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No
Even you comment out the print and wait
You will still hit out of buffer issue
mady <mady@cypress.com>於 2017年5月23日 週二,下午7:24寫道:
<http://www.cypress.com>
Cypress WICED Community
<https://community.cypress.com/?et=notification.mention>
You have been mentioned
by mady
<https://community.cypress.com/people/mady?et=notification.mention> *in
Re: BT library is broken in wiced-studio-5.0 in Cypress WICED Community*
- View mady's reference to you
<https://community.cypress.com/message/32399?et=notification.mention#32399>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
wiced_bt_print_cfg_buf_pool_stats () Is just to show you the problem
The bug is real
mady <mady@cypress.com>於 2017年5月23日 週二,下午7:24寫道:
<http://www.cypress.com>
Cypress WICED Community
<https://community.cypress.com/?et=notification.mention>
You have been mentioned
by mady
<https://community.cypress.com/people/mady?et=notification.mention> *in
Re: BT library is broken in wiced-studio-5.0 in Cypress WICED Community*
- View mady's reference to you
<https://community.cypress.com/message/32399?et=notification.mention#32399>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you post your log?
I want to check your stats numbers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please find attached the logs:
One is wthout the buf_pool_stats and the other is with buf_pool_stats API.
Regards,
-Madhu Sudhan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi mandy,
I think your test is totally wrong.
Your log shows:
Starting WICED v5.0.0-RC5-5a014d3
so.. it is not official release.
As I mentioned before that in the pre-release, the scan work.
In *official* release, the scan has problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Below show you my log.
To make it clear, I comment out the wiced_bt_print_cfg_buf_pool_stats() call in scan_result.
(my scan_result callback is doing nothing now).
Below I print wiced_bt_print_cfg_buf_pool_stats() every 10 seconds in a seperate thread.
Test using official wiced-studio 5.0 release:
00:00:12.060784 --- Bluetooth(Pool type: A-App, I-Internal) Buffer summary ---␍␍␊
00:00:12.002248 Pool(size,type) Available In-use Total Max-used␍␍␊
00:00:12.009248 --------------------------------------------------------␍␍␊
00:00:12.016248 00( 64, A): 10, 6, 16, 6␍␍␊
00:00:12.022248 01( 360, A): 16, 0, 16, 0␍␍␊
00:00:12.028248 02( 360, A): 6, 0, 6, 0␍␍␊
00:00:12.034248 03( 600, A): 2, 0, 2, 0␍␍␊
00:00:22.041248 ␍␍␊
00:00:22.042248 --- Bluetooth(Pool type: A-App, I-Internal) Buffer summary ---␍␍␊
00:00:22.049248 Pool(size,type) Available In-use Total Max-used␍␍␊
00:00:22.056248 --------------------------------------------------------␍␍␊
00:00:22.063248 00( 64, A): 6, 10, 16, 10␍␍␊
00:00:22.003712 01( 360, A): 16, 0, 16, 0␍␍␊
00:00:22.009712 02( 360, A): 6, 0, 6, 0␍␍␊
00:00:22.015712 03( 600, A): 2, 0, 2, 0␍␍␊
00:00:32.022712 ␍␍␊
00:00:32.023712 --- Bluetooth(Pool type: A-App, I-Internal) Buffer summary ---␍␍␊
00:00:32.030712 Pool(size,type) Available In-use Total Max-used␍␍␊
00:00:32.037712 --------------------------------------------------------␍␍␊
00:00:32.044712 00( 64, A): 0, 16, 16, 16␍␍␊
00:00:32.050712 01( 360, A): 16, 0, 16, 0␍␍␊
00:00:32.056712 02( 360, A): 6, 0, 6, 0␍␍␊
00:00:32.062712 03( 600, A): 2, 0, 2, 0␍␍␊
00:00:42.004176 ␍␍␊
00:00:42.005176 --- Bluetooth(Pool type: A-App, I-Internal) Buffer summary ---␍␍␊
00:00:42.012176 Pool(size,type) Available In-use Total Max-used␍␍␊
00:00:42.019176 --------------------------------------------------------␍␍␊
00:00:42.026176 00( 64, A): 0, 16, 16, 16␍␍␊
00:00:42.032176 01( 360, A): 10, 6, 16, 6␍␍␊
00:00:42.038176 02( 360, A): 6, 0, 6, 0␍␍␊
00:00:42.044176 03( 600, A): 2, 0, 2, 0␍␍␊
00:00:52.051176 ␍␍␊
00:00:52.052176 --- Bluetooth(Pool type: A-App, I-Internal) Buffer summary ---␍␍␊
00:00:52.059176 Pool(size,type) Available In-use Total Max-used␍␍␊
00:00:52.000640 --------------------------------------------------------␍␍␊
00:00:52.007640 00( 64, A): 0, 16, 16, 16␍␍␊
00:00:52.013640 01( 360, A): 6, 10, 16, 10␍␍␊
00:00:52.019640 02( 360, A): 6, 0, 6, 0␍␍␊
00:00:52.026640 03( 600, A): 2, 0, 2, 0␍␍␊
00:01:02.032640 ␍␍␊
00:01:02.033640 --- Bluetooth(Pool type: A-App, I-Internal) Buffer summary ---␍␍␊
00:01:02.040640 Pool(size,type) Available In-use Total Max-used␍␍␊
00:01:02.047640 --------------------------------------------------------␍␍␊
00:01:02.054640 00( 64, A): 0, 16, 16, 16␍␍␊
00:01:02.060640 01( 360, A): 0, 16, 16, 16␍␍␊
00:01:02.001104 02( 360, A): 6, 0, 6, 0␍␍␊
00:01:02.007104 03( 600, A): 2, 0, 2, 0␍␍␊
00:01:12.014104 ␍␍␊
00:01:12.015104 --- Bluetooth(Pool type: A-App, I-Internal) Buffer summary ---␍␍␊
00:01:12.022104 Pool(size,type) Available In-use Total Max-used␍␍␊
00:01:12.029104 --------------------------------------------------------␍␍␊
00:01:12.036104 00( 64, A): 0, 16, 16, 16␍␍␊
00:01:12.042104 01( 360, A): 0, 16, 16, 16␍␍␊
00:01:12.048104 02( 360, A): 2, 4, 6, 4␍␍␊
00:01:12.054104 03( 600, A): 2, 0, 2, 0␍␍␊
00:01:22.025712 GKI_exception(): Task State Table␍␍␊
00:01:22.029712 GKI_exception 65524 getbuf: out of buffers␍␍␊
00:01:22.061104 ␍␍␊
00:01:22.062104 --- Bluetooth(Pool type: A-App, I-Internal) Buffer summary ---␍␍␊
00:01:22.003568 Pool(size,type) Available In-use Total Max-used␍␍␊
00:01:22.010568 --------------------------------------------------------␍␍␊
00:01:22.017568 00( 64, A): 0, 16, 16, 16␍␍␊
00:01:22.023568 01( 360, A): 0, 16, 16, 16␍␍␊
00:01:22.029568 02( 360, A): 0, 6, 6, 6␍␍␊
00:01:22.035568 03( 600, A): 0, 2, 2, 2␍␍␊
00:01:26.025712 GKI_exception(): Task State Table␍␍␊
00:01:26.029712 GKI_exception 65524 getbuf: out of buffers␍␍␊
00:01:30.025712 GKI_exception(): Task State Table␍␍␊
00:01:30.029712 GKI_exception 65524 getbuf: out of buffers␍␍␊
00:01:32.042568 ␍␍␊
00:01:32.043568 --- Bluetooth(Pool type: A-App, I-Internal) Buffer summary ---␍␍␊
00:01:32.050568 Pool(size,type) Available In-use Total Max-used␍␍␊
00:01:32.057568 --------------------------------------------------------␍␍␊
00:01:32.064568 00( 64, A): 0, 16, 16, 16␍␍␊
00:01:32.005032 01( 360, A): 0, 16, 16, 16␍␍␊
00:01:32.011032 02( 360, A): 0, 6, 6, 6␍␍␊
00:01:32.017032 03( 600, A): 0, 2, 2, 2␍␍␊
00:01:34.025712 GKI_exception(): Task State Table␍␍␊
00:01:34.029712 GKI_exception 65524 getbuf: out of buffers␍␍␊
Test using 5.0.0.26 pre-release: (see the buffer Max-used count won't increase)
00:00:12.060784 --- Bluetooth(Pool type: A-App, I-Internal) Buffer summary ---␍␍␊
00:00:12.002248 Pool(size,type) Available In-use Total Max-used␍␍␊
00:00:12.009248 --------------------------------------------------------␍␍␊
00:00:12.016248 00( 64, A): 16, 0, 16, 4␍␍␊
00:00:12.022248 01( 360, A): 16, 0, 16, 3␍␍␊
00:00:12.028248 02( 360, A): 6, 0, 6, 0␍␍␊
00:00:12.034248 03( 600, A): 2, 0, 2, 0␍␍␊
00:00:22.041248 ␍␍␊
00:00:22.042248 --- Bluetooth(Pool type: A-App, I-Internal) Buffer summary ---␍␍␊
00:00:22.049248 Pool(size,type) Available In-use Total Max-used␍␍␊
00:00:22.056248 --------------------------------------------------------␍␍␊
00:00:22.063248 00( 64, A): 16, 0, 16, 4␍␍␊
00:00:22.003712 01( 360, A): 16, 0, 16, 3␍␍␊
00:00:22.009712 02( 360, A): 6, 0, 6, 0␍␍␊
00:00:22.015712 03( 600, A): 2, 0, 2, 0␍␍␊
00:00:32.022712 ␍␍␊
00:00:32.023712 --- Bluetooth(Pool type: A-App, I-Internal) Buffer summary ---␍␍␊
00:00:32.030712 Pool(size,type) Available In-use Total Max-used␍␍␊
00:00:32.037712 --------------------------------------------------------␍␍␊
00:00:32.044712 00( 64, A): 16, 0, 16, 4␍␍␊
00:00:32.050712 01( 360, A): 16, 0, 16, 3␍␍␊
00:00:32.056712 02( 360, A): 6, 0, 6, 0␍␍␊
00:00:32.062712 03( 600, A): 2, 0, 2, 0␍␍␊
00:00:42.004176 ␍␍␊
00:00:42.005176 --- Bluetooth(Pool type: A-App, I-Internal) Buffer summary ---␍␍␊
00:00:42.012176 Pool(size,type) Available In-use Total Max-used␍␍␊
00:00:42.019176 --------------------------------------------------------␍␍␊
00:00:42.026176 00( 64, A): 16, 0, 16, 4␍␍␊
00:00:42.032176 01( 360, A): 16, 0, 16, 3␍␍␊
00:00:42.038176 02( 360, A): 6, 0, 6, 0␍␍␊
00:00:42.044176 03( 600, A): 2, 0, 2, 0␍␍␊
00:00:52.051176 ␍␍␊
00:00:52.052176 --- Bluetooth(Pool type: A-App, I-Internal) Buffer summary ---␍␍␊
00:00:52.059176 Pool(size,type) Available In-use Total Max-used␍␍␊
00:00:52.000640 --------------------------------------------------------␍␍␊
00:00:52.007640 00( 64, A): 16, 0, 16, 4␍␍␊
00:00:52.013640 01( 360, A): 16, 0, 16, 3␍␍␊
00:00:52.019640 02( 360, A): 6, 0, 6, 0␍␍␊
00:00:52.025640 03( 600, A): 2, 0, 2, 0␍␍␊
00:01:02.032640 ␍␍␊
00:01:02.033640 --- Bluetooth(Pool type: A-App, I-Internal) Buffer summary ---␍␍␊
00:01:02.040640 Pool(size,type) Available In-use Total Max-used␍␍␊
00:01:02.047640 --------------------------------------------------------␍␍␊
00:01:02.054640 00( 64, A): 16, 0, 16, 4␍␍␊
00:01:02.060640 01( 360, A): 16, 0, 16, 3␍␍␊
00:01:02.001104 02( 360, A): 6, 0, 6, 0␍␍␊
00:01:02.007104 03( 600, A): 2, 0, 2, 0␍␍␊
00:01:12.014104 ␍␍␊
00:01:12.015104 --- Bluetooth(Pool type: A-App, I-Internal) Buffer summary ---␍␍␊
00:01:12.022104 Pool(size,type) Available In-use Total Max-used␍␍␊
00:01:12.029104 --------------------------------------------------------␍␍␊
00:01:12.036104 00( 64, A): 16, 0, 16, 4␍␍␊
00:01:12.042104 01( 360, A): 16, 0, 16, 3␍␍␊
00:01:12.048104 02( 360, A): 6, 0, 6, 0␍␍␊
00:01:12.054104 03( 600, A): 2, 0, 2, 0␍␍
I also want to point out it actually fine to call wiced_bt_print_cfg_buf_pool_stats()
in the scan_result callback because It works in sdk-3.7.0-7 and 5.0.0.26 pre-release.
The only problem is "it's broken in official 5.0 release"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi axel.lin_1746341,
I tested in pre-release #26 because, you mentioned that you observed the issue in pre-release.
This was your problem statement.
"Something wrong in BT library in sdk-5.0.0.26 pre-release.
Once start wiced_bt_ble_observe(), then calling wiced_bt_start_advertisements() will immediately got corruption due to out of buffers.
Note, it was working when using the bt library in sdk-3.7.0-7. It's a regression."
If you observe the problem is in the release version, we will check this and let you know shortly.
Regards,
-Madhu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
mady
You totally mixes 2 issues.
Lets' focus on this one. As the subject line "BT library is broken in wiced-studio-5.0 "
This one is the most critical one.
Go testing use official 5.0.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
axel.lin_1746341 can you please point me to the download link from which you downloaded the official release?
This is just to make sure that I am using the same build as yours.
Regards,
-Madhu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi axel.lin_1746341
I tried with the official release and I still could not see any issue.
Our software team also tried the same and they also could not see any issue.
Please find the logs attached.
Regards,
- Madhu Sudhan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
mady
It's 100% reproducable here for ThreadX and FreeRTOS builds, so it must be something different between your seettings and mine.
Can you send me your BCM94343W_AVN platform file for checking.
Also can you tell me what is changed in BLE part between sdk version 5.0.0.26 ~ 5.0.0.33?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
My platform file has a (wrong) WICED_BT_PIN_RESET setting.
It looks like older bt library complete ignore that setting (so it was working in older sdk).
With latest sdk, I just comment out that setting now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi axel.lin_1746341
I think I'm having the same problem as yours. I'm also using the BCM94343W_AVN and getting the same buffer corrupted messages. I have the WICED_BT_PIN_RESET set to NULL. But commenting out that line didn't change anything either. Is that what solved your problem?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I think you need support from cypress.
Good luck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I've actually found a solution for this. I temporarily changed the number of buffers allocated for wiced_bt_cfg_buf_pools and downloaded the program to the board. That got rid of the buffer corruption. When I changed it back to the original number of buffers, there was no more buffer corruption either.