Wi-Fi Combo Forum Discussions
On rare occasions while pulling an OTA image from a server using TCP i get a result of 36352 returned from wiced_tcp_receive. This error is persistent while the transfer is pending even with the socket closing and reopening.
I am not sure where this return code is coming from. I have searched the return codes within mbedTLS and LWIP and i am not seeing a match.
The connection to the server succeeded, TLS handshake succeeded, initial communication with the server is working so i do not see a TLS or communication error.
FreeRTOS + LWIP + 6.2.1 SDK
I have no logs/captures with WPRINT_SECURITY_DEBUG or WPRINT_SECURITY_ERROR enabled.
Show LessWhen running FreeRTOS with powersave disabled, what clock source provides the tick through platform_tick_isr? Is it the external 32.768 KHz crystal, LPO, or is it derived from the oscillator that is internal to the 1GC module?
Out of thousands of devices shipped we are seeing one that has about 17% error and another that has about 10% error in a periodic scheduled event triggered through a FreeRTOS timer.
Show LessHi, all.
I'm testing the Murata's BT/WLAN combo chip.
The dhd driver I apply is provied by Cypress, and supplicant and hostapd use the one provided by Linux.
I'm setting it up in two ways.
The first method is provided by Murata, and the second is provided by Cypress.
*************************************************************************************
1. Murata's guide
Doc : quick_start_guide_linux(6.0).pdf
<AP>
killall wpa_supplicant
hostapd -B /etc/hostapd.conf
* IP is dynamically allocated through dhcp-server.
* udhcpd is not used because IP allocation uses dhcp-server.
<STA>
./wl join TEST_AP (: ssid name)
./wl assoc
*************************************************************************************
*************************************************************************************
2. Cypress's guide
Doc : sdio_bringup_for_rsdb_concurrency_scenarios.pdf
<AP>
killall wpa_supplicant
wpa_supplicant -iwlan0 -Dnl80211 -c/etc/wpa_supplicant.conf -dd -B
wpa_cli -iwlan0 -p /var/run/wpa_supplicant
wpa_cli -iwlan0 remove_net all
wpa_cli -iwlan0 add_net
wpa_cli -iwlan0 set_net 0 ssid '"AP_2G"' (or AP_5G)
wpa_cli -iwlan0 set_net 0 key_mgmt NONE
wpa_cli -iwlan0 set_net 0 frequency 2437 (or 5180)
wpa_cli -iwlan0 set_net 0 mode 2
wpa_cli -iwlan0 select_net 0
<STA>
killall wpa_supplicant
wpa_supplicant -iwlan0 -Dnl80211 -c/etc/wpa_supplicant.conf -dd -B
wpa_cli -iwlan0 -p /var/run/wpa_supplicant
wpa_cli -iwlan0 disconnect
wpa_cli -iwlan0 list_network
wpa_cli -iwlan0 remove_net 0
wpa_cli -iwlan0 add_net
wpa_cli -iwlan0 set_net 0 ssid '"AP_2G"' (or AP_5G)
wpa_cli -iwlan0 set_net 0 key_mgmt NONE
wpa_cli -iwlan0 enable_network 0
wpa_cli -iwlan0 select_network 0
*************************************************************************************
If I set it to 5GHz band, the setting result is 802.11ac with BW 80MHz and NSS = 2 (Max T-put 867Mbps).
If I set it to 2.4GHz band, the setting result is 802.11n with BW 20MHz and NSS = 1 (Max T-put 72Mbps).
For 5GHz band, there is no problem as it is the maximum T-put setting.
The 2.4GHz band requires additional setting for max T-put (40MHz BW and NSS=2, 300Mbps??) but I don't know how.
I looked for setting in wpa_cli and chaning the hostapd.conf option, but it did not work.
(i.e wpa_cli -iwlan0 set_net 0 frequency 2437/40 @ for manual setting ,
option hw_mode, channel, 80211n, 80211ac option @ hostapd.conf)
Please can someone tell me how to set up to achieve max T-put at 2.4GHz band?
Best regards.
DongHwi
Show LessHello,
I create a new topic as my previous one has been locked for an unknown reason.
Initial topic:
How to use GPIO external interrupt
My response to ZhengbaoZ_96
So what you propose is the same thing as the option 1 of my initial first message, except the fact you use SPI2 and I use SPI5. Could it impact anything to use SPI5 instead of SPI2 ?
I still don't have any interrupt with my code "option 1".
Thanks
Show LessHello.
The Bluetooth Internet Gateway code example mentions that it supports CY8CKIT-062S2-43012 featuring CYW43012 radio (GitHub - cypresssemiconductorco/mbed-os-example-bluetooth-mesh-gateway: This code example demonstrates how to use Cypres… )
is it possible to use the above code example with CY8CPROTO-062-4343W featuring the CY4343W radio? since both radios support BLE mesh (43012 support B5 while 4343w support B4.1)
what do I need to modify in code example in these cases?
Regards
Karim
Show LessWhen the device itself is connected to "Central" and the other side (BLE module) is connected to "Peripheral", "BLE connection ⇒ pairing registration" is performed every time, even though there is connection experience.
It is likely that the bonding process has not been successful, so please investigate.
Please refer to the attached file "Report_03172020.xlsx" for details.
Related questions
https://community.cypress.com/message/224025#224025
https://community.cypress.com/thread/51417?start=0&tstart=0
Show LessHi,
I store network credential in the device, but it is plain text. Can you suggest alternative methods to store(not plain text). can it use same wifi dct structure?
Show LessIs there a way to debug why a watchdog timeout triggered with the CYW43907 in WICED?
I know some MCU's have a ISR for watchdog or some STM32 implementations use a HW timer slightly shorter than the WDT period for debugging. Neither appears to be an option for the CYW43907.
I am finding a low occurrence of Watchdog timeouts while testing low power. It is not feasible to run with an attached debugger due to: low rate of occurrence, number of devices under test, and low power behavior changes with debug code/debugger.
Right now there are 0 clues. If i could somehow get register information (like exception handler dumps) or even the last executed FreeRTOS task would be great.
Show LessI noticed that in ble_hello_sensor.c has multiple unresolved symbol errors. The errors are shown in the IDE but don't create an error when compiling. I'm just trying to find out what is causing the IDE to say there's a problem even though the program compiles just fine.
For example, when you scroll over "GATT_CONNECTION_STATUS_EVT" the IDE shows "Symbol 'GATT_ATTRIBUTE_REQUEST_EVT' could not be resolved". However, "GATTS_REQ_TYPE_CONF" does not have this error even though they both come from the same file (wiced_bt_gatt.h).
From ble_hello_sensor.c:
So far as I can tell the only difference is the way each enum is defined.
enum for "GATTS_REQ_TYPE_CONF":
enum wiced_bt_gatt_request_type_e {
GATTS_REQ_TYPE_READ = 1,
GATTS_REQ_TYPE_WRITE,
GATTS_REQ_TYPE_PREP_WRITE,
GATTS_REQ_TYPE_WRITE_EXEC,
GATTS_REQ_TYPE_MTU,
GATTS_REQ_TYPE_CONF,
};
typedef uint8_t wiced_bt_gatt_request_type_t;
enum for "GATT_CONNECTION_STATUS_EVT":
typedef enum {
GATT_CONNECTION_STATUS_EVT,
GATT_OPERATION_CPLT_EVT,
GATT_DISCOVERY_RESULT_EVT,
GATT_ATTRIBUTE_REQUEST_EVT
GATT_DISCOVERY_CPLT_EVT,
} wiced_bt_gatt_evt_t;
I know it's not a big deal since the program compiles fine but the OCD side of me would really like to know why this is happening. I would appreciate it if someone could explain the reason for these errors and how I can get rid of them.
System Details:
OS: Windows 10 64-bit
IDE: WICED Studio 6.4
WICED platform: 43xxx_Wi-Fi
Dev Kit: CY8CKIT-062-WiFi-BT
Show LessHi all,
I want to use internal uECC library, which I have enabled by including in the MakeFile : ota2_bootloader.mk, by adding: GLOBAL_INCLUDES += ..\..\..\WICED\security\BESL\mbedtls_open\include\mbedtls.
I want to know how to enable the internal SHA256 library to be able to use the files: sha256.h and sha256.c. (location: 43xxx_Wi-Fi/WICED/security/BESL/mbedtls_open/include/mbedtls)
TIA!
Show Less