Wi-Fi Combo Forum Discussions
Hello all,
The motive is to integrate wolfSSL library to implement Secure Bootloader on WICED.
Already done:
- Downloaded the application code on the external FLASH using the build script: "snip.pers-BCM943909WCD1_3.B1-ThreadX-NetX_Duo-debug ota2_download"
- Debugging "ota2_bootloader.c" using build script: "waf.ota2_bootloader-NoOS-NoNS-BCM943909WCD1_3"
- Included wolfSSL folders (wolfcrypt, wolfssl and src) in the path: \43xxx_Wi-Fi\libraries\filesystems\ota2
- Defined wolfSSL library related Macros in "user_setting.h" [Path: \43xxx_Wi-Fi\libraries\filesystems\ota2\wolfssl\user_settings.h ]to port wolfSSL source code and to enable features of the wolfSSL library in the WICED.
- Globally defined "WOLFSSL_USER_SETTINGS" and "WC_RSA_BINDING" symbols in "ota2.mk" file [Path: \43xxx_Wi-Fi\libraries\filesystems\ota2\ota2.mk]
- Using wolfSSL APIs in "wiced_ota2_image_extract()" [Path: \43xxx_Wi-Fi\libraries\filesystems\ota2\wiced_ota2_image.c]
- Successfully generated HASH value using wolfSSL APIs: wc_InitSha256(),wc_Sha256Update() or wc_Sha256Final(). Being able to debug the APIs as well to understand the program flow.
The issue being faced at the moment is that while using "ParseCert()" API in "wiced_ota2_image_extract()" function, the behavior of the code changes. By that, I mean to say while debugging, the debugger doesn't even hit "wiced_ota2_image_extract()" function, let alone hitting the "ParseCert()" API inside. Although a breakpoint is given on the function call of "wiced_ota2_image_extract()" function in "ota2_bootloader.c", the breakpoint is skipped, and the program jumps to the line: "if (result != WICED_SUCCESS)".
Kindly help me out to successfully integrate wolfSSL with WICED.
Show LessHello,
I purchased the cypress WiFi wiced dev kit for iot development. The CY943907 development kit.
https://www.cypress.com/documentation/development-kitsboards/cyw954907aeval1f-evaluation-kit
There is some application within our organization for remote monitoring of some tools I would like to develop. I had intended to do this via amazon web services, however company policy is to avoid 3rd party cloud services at the moment.
Instead of AWS or other cloud streaming, I would like to try to use the kit for writing to a local server. As a first step, I would like to use the weather station tutorial and log json data onto a local server that can be accessed on demand. We can parse the JSON data for plotting on needed basis. I was not sure how to transition this however. I am working on this using an XAMP server for example, and would just like to write a JSON file to the localhost.
I am very new to this area, and I am having a hard time locating such kind of instruction as most tutorial are about iot streaming applications. I think perhaps my application is more simple, and would appreciate any support you can provide. This would include how to modify existing Scripts from ww01 git hub repository to meet this requirement. I would then tailor our application to the needs of our engineering team, and eventually layout the pcb board for defining this product.
Thanks for any input, and I would be glad to answer any questions you might have.
Show LessHello,
We are using BCM43242 USB interface wireless chipset. BCM P2P library (Sample App) used for the Wi-Fi Direct (P2P).
Wireless Chipset firmware version: wl0: Feb 26 2020 07:46:16 version 6.20.224.37 (r724556) FWID 01-32bd010f
In 2.4Ghz & 5Ghz frequency, 40Mhz bandwidth, things are working fine, like station connection and p2p connection. But in 5Ghz frequency, 40Mhz bandwidth, P2P is failing to UP. I have collected the logs for both success(5Ghz,20Mhz BW) and failure(5Ghz,40Mhz BW) cases and shared them here.
It looks like the WLC_E_IF event is not received during create bss.
Does anybody know the reason for this?
**********WORKING LOG FOR 5GHz frequency and 20MHz Bandwidth**********
p2papi_osl_create_bss: P2P ch=81:10
---wl p2p_ifadd 86:25:19:ad:b2:85 go 10
p2pwl_iovar_setbuf_bss: iovar=p2p_ifadd, bssidx=0
Receive Event --> Primary through call
event fwd : ret=79
Drop an event
p2papi_rx_wl_event: rx WLC_E_IF 54 bsscfgidx=1() stat=0x0 reas=0x0 auth=0 data_len=5
p2papi_rx_wl_event: event data: 5
01 01 00 01 03
WLC_E_IF: cbcaw=1 flags=0x0 ifname=wl0.1
...saving conn bsscfg ifname
p2posl_save_bssname: usage=2 ifname=wl0.1
p2papi_osl_connection_mode_ifup: ifname=wl0.1
p2papi_linux_ifup: ifconfig wl0 up
**********NOT WORKING LOG FOR 5GHz frequency and 40MHz Bandwidth**********
p2posl_sem_wait: timed out, cnt=0
p2posl_sem_wait: exit, ret=39 cnt=0 time=505.210000
p2papi_osl_create_bss: sem_wait failed with 2
---wl p2p_ifdel 86:25:19:ad:b2:85
p2pwl_iovar_setbuf_bss: iovar=p2p_ifdel, bssidx=0
p2papi_group_cancel: poll for cancel confirm...
wl_ioctl: WLC ioctl 263 returned error -30
sock=158 buf=0x37beb10 len=16 set=1 wl=0x95c3bc4, ret=-30
pri/dis/con ifidx=0/0/0 ifnames=eth1//, ioctl ifname=eth1
WLC_SET_VAR p2p_ifdel
P2PAPI: set bss 0 iovar p2p_ifdel failed (-2)
'wl p2p_ifdel' error -2
p2papi_osl_create_bss: create bss failed, ret=2
p2papi_create_ap_bss: osl_create_bss failed
p2papi_create_ap_bss: exit, ret=2 conn-bssidx=0
p2p_group_create_core: softap_enable failed
p2papi_group_create_core: cleanup, cancel=1 status=-17
Show LessI am very new to WICED Studio and downloaded WICED Studio 6.1.
Q.1 I want memory footprint for entire stack for al connectivity ( wifi+ BT + BLE)?
Q.2 Where can i get examples for cloud connectivity over Wi- Fi
Can anyone please help me on this?
Show LessHello,
I'm currently integrating the BCM4343W, integrated in the Type 1DX, with a STM32L4A6. I'm trying to validate the Bluetooth Low Energy interface on our board. Note that I've done this test using a Nucleo board and the Type 1DX dev kit successfully before, now the objective is to get it to work on our custom board.
I'm getting the following error when running ble_hello_sensor or ble_hello_client:
Started ThreadX v5.8
WICED_core Initialized
Hello Sensor Start
00:00:00.004000 GKI_create_task func=0x80159a5 id=1 name=BTU stack=0x0 stackSize=4096
00:00:00.008000 GKI_create_task func=0x80170dd id=0 name=HCISU stack=0x0 stackSize=3072
00:01:00.111000 GKI_exception(): Task State Table
00:01:00.113000 GKI_exception 65524 getbuf: out of buffers
Note that I've been able to use the WiFi successfully on this custom board.
I have been probing the BLE UART interface between the STM32 and the Type 1DX, and I've noticed that the STM32 asserts its RTS but the Type 1DX doesn't reply with CTS, which sounds like a part of the problem.
Could the fact that the Type 1DX doesn't assert the CTS line lead to having the logs shown above or is it another issue?
Thanks in advance
Show LessThe QA at https://community.cypress.com/thread/51967 answers how to reduce the WPS timeout from 2 minutes.
Is there a function to kill the waiting state instead of changing the time?
Show LessHello.
How do I create a factory reset image of an executable application and download it to an external SFlash?
The contents I tried are as follows.
Executable applications are built and run in the following ways:
make <App>-<Platform>-ThreadX-NetX_Duo download run
Created a factory reset image of the external flash according to the usage described in the Makefile.
make <App>-<Platform> -ThreadX-NetX_Duo SFLASH=app-dct-download
Note: There is no OTA-APP.
At this time, among the generated files, the size of build/<App>-<Platform>-ThreadX-NetX_Duo/DCT.stripped.elf is very large, and an error exceeding the size occurs.
DCT.elf ... 24,416Bytes
DCT.stripped.elf ... 1,179,403,647Bytes
Q1. How to specify correct make to download Factory Reset Image to external sflash?
Q2. Are the images stored in the external sflash FR_APP and APP0 stored by Factory Reset the same format?
It is unclear whether FR_DCT is included in FR_APP or stored in DCT_IMAGE separately from FR_APP.
Q3. Is there a tool to access external flash from PC?
Thanks.
Show LessWhen CYW54907 is in AP mode, it will be in transmit and then receive and then again in transmit mode and so on. We are looking for a method, through which inside WICED we can know, the Rf is in transmit or in receive side. By default the transmit beacon we can get in every 100msec. We are trying to trigger some other equipment ( to perform other measurements) with this transmit as trigger.
So our objective is get to know when RF is in transmit mode and switch a GPIO, which will send trigger signal to external equipment.
Show Less