Wi-Fi Combo Forum Discussions
Hi,
How many BLE peripherals can be connected over HCI on CYW43438?
Does this amount be limited by whitelist size or address resolving list size?
I try to get the size of whitelist and address resolving list size over HCI, but failed.
Thanks,
Tom
Show LessTest on CYW943438 with sdk-6.1.
To test if it is fine to repeat init/deinit bt_stack by calling wiced_bt_stack_init/wiced_bt_stack_deinit.
My test code is calling wiced_bt_ble_observe() once got BTM_ENABLED_EVT in the wiced_bt_stack_init callback.
The wiced_bt_ble_observe() scan for 10 seconds and once it is done.
Calling wiced_bt_stack_deinit and wiced_bt_stack_init again to re-start scan.
Observe the memory usage by mallinfo().
Then you can find the "Memory in use keep growth, the available memory becomes smaller and smaller.
i.e. It's clearly a memory leak while re-init bt stack.
Show LessItems in Red have been added and/or slightly modified for OSX platforms:
OSX Install:
- Download the attached .zip file
- Double click the zip file and extract all contents from the installer to a local folder
- Note: When using the Safari Browser, it will automatically unzip the contents and create a folder
- Note: the next two steps above are needed as a workaround for a known OSX 10.12 install issue called "App Translocation"
- Move the contents of the folder to another folder using ‘Finder’; Do not move the files using ‘Terminal’
- Run the command below using Terminal window:
> xattr -r -d com.apple.quarantine <path>/WICED-Studio-X.X.X.X-IDE-Installer.app
- See "Additional Installation Notes" below before installing
- Double click the "WICED-Studio-X.X.X.X-IDE-Installer" app to execute the installer
- After the installation in complete, launch the WICED Studio IDE from shortcut in the $HOME/Cypress $HOME/WICED/WICED-Studio-X folder
OSX Uninstall:
- From Finder, navigate to User > <name> -> Applications -> Cypress and launch 'Uninstall'
- To clean up all WICED components manually, delete files and folders for the IDE and SDK, typically in User -> <name> -> WICED/WICED-Studio-X and User -> <name> -> Documents -> WICED/WICED-Studio-X or from terminal $HOME/Cypress/WICED*, $HOME/WICED/WICED-Studio-X and $HOME/Documents/WICED/WICED-Studio-X
Additional Installation Notes:
1.
Open xterm, run the "java -version" command. If it fails to return any results or states that you are running version 1.6, then you need to install the Java SE Development Kit 8, which can be found here: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html. Once the Java SE Development Kit 8 is installed, run the "java -version" command again with xterm. If this command returns "1.6", then you will need to fix the symbolic link using the following commands:
> rm -f /usr/bin/java
> ln -s /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java /usr/bin/java
2.
Application downloads on WICED platforms may fail on certain OSX versions due to an incompatibility between the OSX version and the installed driver for the FTDI USB to serial chip. On OSX versions 10.10 and earlier, a specific version of the FTDI driver must be installed using the instructions available here: https://learn.sparkfun.com/tutorials/how-to-install-ftdi-drivers/mac
On OS X versions 10.11 and greater, the Apple version of the FTDI driver must be used, and any previous instance of the FTDI version of the driver must be removed from the system, by executing the following command in xterm:
> sudo rm -rf /Library/Extensions/FTDIUSBSerialDriver.kext /System/Library/Extensions/FTDIUSBSerialDriver.kext
Reboot the system after performing the rm command
Show LessHi,
To test BTM_BLE_SCAN_MODE_PASSIVE and BTM_BLE_SCAN_MODE_ACTIVE:
I set
.scan_mode = BTM_BLE_SCAN_MODE_PASSIVE;
I expect .scan_mode = BTM_BLE_SCAN_MODE_PASSIVE should not receive BTM_BLE_EVT_SCAN_RSP data.
But still receive data with BTM_BLE_EVT_SCAN_RSP (p_scan_result->ble_evt_type == BTM_BLE_EVT_SCAN_RSP).
Note, I remember it was working in SDK-3.5.x.
SDK-3.7.0-7 is not yet release, so I cannot test it. Maybe your team should test this issue.
[The test_active_passive_switch() call implement is wrong in my previous post, so I just remove it and re-post.]
Show LessHello All!
I have a really basic question on how I can continuously scan for BLE packets. There seems to be two APIs - observe and scan, and I have been able to use them as console commands to scan for packets. I tried spinning a new thread and enclosed the scan/observe call in a while 1 loop but that doesn't actually seem right. what is the right way to continually scan for BLE packets?
For example, this didn't work for me:
while ( 1 )
{
wiced_result_t scan_result;
do {
scan_result = wiced_bt_ble_scan(BTM_BLE_SCAN_TYPE_HIGH_DUTY, WICED_TRUE, (wiced_bt_ble_scan_result_cback_t *) hello_sensor_scan_ble_callback);
} while (scan_result != WICED_BT_BUSY);
// wiced_bt_ble_scan(BTM_BLE_SCAN_TYPE_HIGH_DUTY, WICED_TRUE, (wiced_bt_ble_scan_result_cback_t *) hello_sensor_scan_ble_callback);
}
Thanks!
Show LessWe use a BCM43340 chip and are in the process of implementing bluetooth connection through WICED 3.7.0-7. In the datasheet for the part, on page 115, it states that "The BCM43340 does not provide simultaneous 2.4 GHz and 5 GHz operation". Since the BLE is housed in the 2.4GHz portion of the chip, does this statement mean that BLE cannot be used if using a 5GHz AP for wifi access?
Show LessIn WICED 5.2, in the file 43xxx_Wi-Fi/WICED/platform/MCU/wiced_dct_internal_common.c,
shouldn't lines 616 - 621 be inside the previous #if - #endif block?
Show LessHello,
I’m new to the Cypress WICED build environment but I would like to get the ble_wifi_introducer demo working on my BCM94343W_AVN dev.board.
I can build it, download it and run it.
It will try to “Joining: YOUR_AP_SSID” and if it fails it will start BLE advertisment. So far so good.
But as soon as I connect to it through BLE, it will stop working and the UART outputs the message:
GKI_exeption(): Task State Table
GKI_exeption 65524 getbuf: out of buffers
Searching this forum did not give me any solution so I’ll try again.
According to this thread: https://community.cypress.com/thread/8684 it should be possible. The 94343WWCD1 board uses the same processor.
The board files and the files associated with WICED-Studio-6.1 contain the modifications mentioned in this thread: https://community.cypress.com/message/27221
This thread: https://community.cypress.com/message/32014 states it is Assumed Answered but it looks like the answer is that a proposed solution has no effect.
Now, this thread: https://community.cypress.com/message/24540 suggests the core problem is that the application runs out of memory. It however also states that the BLE stack takes at least 96KB of SRAM ?!?! That does not seam right, does it? That’s huge! Unfortunately the thread does not give any pointer on how to solve it.
Now my question would be: how do I tweak the BLE stack / application so it will use less SRAM and we can validate the Cypress solutions as a viable candidate for our next project.
OR: how do I solve this exception an other way.
uname -r : 4.15.7-200.fc26.x86-64
WICED-Studio-6.1
WICED-SDK Version: Wiced_006.001.000.0085
Thanks, Robert
Show Less