Skip to content

Commit 9c1c643

Browse files
Wi-Fi Applications v2.0.0
1 parent eda750b commit 9c1c643

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+415
-298
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
# Silicon Labs Wi-Fi Applications #
1515

1616

17-
[![Version Badge](https://img.shields.io/badge/-v1.1.0-green)](https://github.com/SiliconLabs/wifi_applications/releases)
18-
[![GSDK Badge](https://img.shields.io/badge/GSDK-v4.4.3-green)](https://github.com/SiliconLabs/gecko_sdk/releases)
19-
[![WSDK Badge](https://img.shields.io/badge/WSDK-v3.2.0-green)](https://github.com/SiliconLabs/wiseconnect/releases)
20-
[![TPHD Version Badge](https://img.shields.io/badge/TPHD-v3.0.1+-green)](https://github.com/SiliconLabs/third_party_hw_drivers_extension/releases)
17+
[![Version Badge](https://img.shields.io/badge/-v2.0.0-green)](https://github.com/SiliconLabs/wifi_applications/releases)
18+
[![SiSDK Badge](https://img.shields.io/badge/SiSDK-v2024.12.0-green)](https://github.com/SiliconLabs/simplicity_sdk/releases)
19+
[![WSDK Badge](https://img.shields.io/badge/WSDK-v3.4.0-green)](https://github.com/SiliconLabs/wiseconnect/releases)
20+
[![TPHD Version Badge](https://img.shields.io/badge/TPHD-v4.1.0+-green)](https://github.com/SiliconLabs/third_party_hw_drivers_extension/releases)
2121
![License badge](https://img.shields.io/badge/License-Zlib-green)
2222

2323
The Silicon Labs Wi-Fi allows for a wide variety applications to be built on its foundation. This repo showcases some example applications using the Silicon Labs Wi-Fi.
@@ -37,7 +37,7 @@ This repository provides SLCP projects (as External Repositories).
3737

3838
1. Silicon Labs SiWx91x development kit
3939
2. Simplicity Studio 5
40-
3. Compatible GSDK version that specified in each project's readme file. You can install it via Simplicity Studio or download it from our GitHub [gecko_sdk](https://github.com/SiliconLabs/gecko_sdk)
40+
3. Compatible SDK version that specified in each project's readme file. You can install it via Simplicity Studio or download it from our GitHub [simplicity sdk](https://github.com/SiliconLabs/simplicity_sdk)
4141
4. Compatible WiSeConnect SDK version that specified in each project's readme file. You can install it via Simplicity Studio or download it from our GitHub [wiseconnect_sdk](https://github.com/SiliconLabs/wiseconnect)
4242
5. Compatible Third-Party Hardware Drivers extension that also specified in each project's readme file, available [here](https://github.com/SiliconLabs/third_party_hw_drivers_extension)
4343

templates.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<properties key="solutionReferenceId" value="wifi_asset_tracking.SimplicityStudio.wifi_asset_tracking.slcp"/>
77
<properties key="projectFilePaths" value="wifi_asset_tracking/SimplicityStudio/wifi_asset_tracking.slcp"/>
88
<properties key="readmeFiles" value="wifi_asset_tracking/README.md"/>
9-
<properties key="boardCompatibility" value="brd4338a com.silabs.board.none"/>
10-
<properties key="partCompatibility" value=".*si917.* .*siwg917m111mgtba.*"/>
9+
<properties key="boardCompatibility" value="brd4338a brd2605a com.silabs.board.none"/>
10+
<properties key="partCompatibility" value=".*si917.* .*siwg917m111.*"/>
1111
<properties key="ideCompatibility" value="iar-embedded-workbench makefile-ide simplicity-ide visual-studio-code"/>
1212
<properties key="ideCompatibility" value="iar-embedded-workbench makefile-ide segger-embedded-studio simplicity-ide"/>
1313
<properties key="toolchainCompatibility" value="gcc iar segger"/>
@@ -23,8 +23,8 @@
2323
<properties key="solutionReferenceId" value="wifi_weather_display.SimplicityStudio.wifi_weather_display.slcp"/>
2424
<properties key="projectFilePaths" value="wifi_weather_display/SimplicityStudio/wifi_weather_display.slcp"/>
2525
<properties key="readmeFiles" value="wifi_weather_display/README.md"/>
26-
<properties key="boardCompatibility" value="brd4338a com.silabs.board.none"/>
27-
<properties key="partCompatibility" value=".*si917.* .*siwg917m111mgtba.*"/>
26+
<properties key="boardCompatibility" value="brd4338a brd2605a com.silabs.board.none"/>
27+
<properties key="partCompatibility" value=".*siwg917m111.*"/>
2828
<properties key="ideCompatibility" value="iar-embedded-workbench makefile-ide simplicity-ide visual-studio-code"/>
2929
<properties key="ideCompatibility" value="iar-embedded-workbench makefile-ide segger-embedded-studio simplicity-ide"/>
3030
<properties key="toolchainCompatibility" value="gcc iar segger"/>

wifi_asset_tracking/README.md

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,14 @@ Firmware application consists of three logical modules:
6767

6868
![application_overview](images/firmware/application_overview.png)
6969

70+
## SDK version ##
71+
72+
SiSDK 2024.12.0
73+
7074
## Hardware Requirements ##
7175

7276
- A Wireless Access Point
73-
- SoC Model:
74-
- Standalone
75-
- [Si-MB4002A - Wireless pro kit mainboard](https://www.silabs.com/development-tools/wireless/wireless-pro-kit-mainboard?tab=overview)
76-
- [SiWx917-RB4338A - SiWx917 Wi-Fi 6 and Bluetooth LE SoC 8 MB Flash Radio Board](https://www.silabs.com/development-tools/wireless/wi-fi/siwx917-rb4338a-wifi-6-bluetooth-le-soc-radio-board?tab=overview)
77-
- Kits
78-
- [SiWx917-PK6031A - SiWx917 Wi-Fi 6 and Bluetooth LE 8 MB Flash SoC Pro Kit](https://www.silabs.com/development-tools/wireless/wi-fi/siwx917-pro-kit?tab=overview)
77+
- 1x [Wi-Fi Development Kit](https://www.silabs.com/development-tools/wireless/wi-fi) based on SiWG917 (e.g. [SIWX917-DK2605A](https://www.silabs.com/development-tools/wireless/wi-fi/siwx917-dk2605a-wifi-6-bluetooth-le-soc-dev-kit) or [SIWX917-RB4338A](https://www.silabs.com/development-tools/wireless/wi-fi/siwx917-rb4338a-wifi-6-bluetooth-le-soc-radio-board))
7978
- [SparkFun Humidity and Temperature Sensor Breakout - Si7021](https://www.sparkfun.com/products/13763)
8079
- [SparkFun GNSS Receiver Breakout - MAX-M10S (Qwiic)](https://www.sparkfun.com/products/18037)
8180
- [SparkFun 6 Degrees of Freedom Breakout - BMI270 (Qwiic)](https://www.sparkfun.com/products/22397)
@@ -87,17 +86,17 @@ Firmware application consists of three logical modules:
8786
- Download the [Simplicity Studio v5 IDE](https://www.silabs.com/developers/simplicity-studio)
8887
- Follow the [Simplicity Studio User Guide](https://docs.silabs.com/simplicity-studio-5-users-guide/1.1.0/ss-5-users-guide-getting-started/install-ss-5-and-software#install-ssv5) to install Simplicity Studio IDE
8988
- Follow these document to setup your [Azure Cloud](https://github.com/SiliconLabs/wifi_applications/blob/main/wifi_asset_tracking/AZURE.md) and [Dashboard](https://github.com/SiliconLabs/wifi_applications/blob/main/wifi_asset_tracking/dashboard/README.md)
90-
- [Gecko SDK (GSDK) Version 4.4.3](https://github.com/SiliconLabs/gecko_sdk/releases/tag/v4.4.3)
91-
- [WiSeConnect 3.2.0 SDK](https://docs.silabs.com/wiseconnect/3.2.0/wiseconnect-developers-guide-developing-for-silabs-hosts/)
92-
- [Third Party Hardware Drivers Extension V3.0.1](https://github.com/SiliconLabs/third_party_hw_drivers_extension/releases/tag/v3.0.1)
89+
- [Simplicity SDK Version 2024.12.0](https://github.com/SiliconLabs/simplicity_sdk/releases/tag/v2024.12.0)
90+
- [WiSeConnect 3.4.0 SDK](https://github.com/SiliconLabs/wiseconnect/releases/tag/v3.4.0)
91+
- [Third Party Hardware Drivers Extension V4.1.0](https://github.com/SiliconLabs/third_party_hw_drivers_extension/releases/tags/v4.1.0)
9392

9493
## Setup ##
9594

96-
### Setup Diagram ###
95+
### Connections Required ###
9796

9897
Sparkfun Qwiic boards can be easily connected to each other using Qwiic cables. Then connect it all back to the SiWx917 Wi-Fi 6 and Bluetooth LE 8 MB Flash SoC Pro Kit board as shown in the table below:
9998

100-
| Description | BRD4338A GPIO | BRD4002 EXP Header | SparkFun Qwiic boards |
99+
| Description | BRD4338A + BRD2605A | BRD4002 EXP Header | SparkFun Qwiic boards |
101100
| -------------| ------------- | ------------------ | ------------------ |
102101
| I2C_SDA | ULP_GPIO_6 | EXP_16 | SDA |
103102
| I2C_SCL | ULP_GPIO_7 | EXP_15 | SCL |
@@ -110,7 +109,7 @@ To test this application, you can either create a project based on an example pr
110109

111110
### Create a project based on an example project ###
112111

113-
1. From the Launcher Home, add the BRD4338A to My Products, click on it, and click on the **EXAMPLE PROJECTS & DEMOS** tab. Find the example project filtering by "asset".
112+
1. From the Launcher Home, add your board to My Products, click on it, and click on the **EXAMPLE PROJECTS & DEMOS** tab. Find the example project filtering by "asset".
114113

115114
2. Click **Create** button on the **Wi-Fi - Asset Tracking** example. Example project creation dialog pops up -> click Create and Finish and Project should be generated.
116115

@@ -131,7 +130,7 @@ To test this application, you can either create a project based on an example pr
131130

132131
### Start with a "SL Si91x - Empty C Project SoC" project ###
133132

134-
1. Create a **SL Si91x - Empty C Project SoC** project for BRD4338A using Simplicity Studio 5.
133+
1. Create a **SL Si91x - Empty C Project SoC** project for the SiWx917 using Simplicity Studio 5.
135134

136135
2. Copy all of source files in "wifi_asset_tracking/src" and header files in "wifi_asset_tracking/inc" to the directory of the project root folder (overwriting the existing files).
137136

@@ -149,7 +148,7 @@ To test this application, you can either create a project based on an example pr
149148
- [WiSeConnect 3 SDK][Device][Si91x][Wireless][Buffer Manager][Memory Pool Buffers]
150149
- [WiSeConnect 3 SDK][Third Party][AZURE FreeRTOS Middleware]
151150
- [WiSeConnect 3 SDK][Service][Network Management][Configuration][Basic Network Configuration Manager]
152-
- [WiSeConnect 3 SDK][Device][Si91x][MCU][Hardware][Memory LCD SPI driver]
151+
- [WiSeConnect 3 SDK][Device][Si91x][MCU][Hardware][Memory LCD SPI driver] (if using the SiWx917 Wi-Fi 6 and Bluetooth LE 8 MB Flash SoC Pro Kit - BRD4338A)
153152
- [WiSeConnect 3 SDK][Device][Si91x][MCU][Peripheral][Calendar]
154153
- [WiSeConnect 3 SDK][Device][Si91x][MCU][Hardware][Si70xx Humidity and Temperature Sensor]
155154
- [WiSeConnect 3 SDK][Device][Si91x][Wireless][Crypto][HMAC]
@@ -158,7 +157,7 @@ To test this application, you can either create a project based on an example pr
158157
- [WiSeConnect 3 SDK][Resources][WiSeConnect3 Resources]
159158
- [WiSeConnect 3 SDK][Device][Si91x][MCU][Service][Power Manager][ULP Peripheral][ULP SSI]
160159
- [Application][Utility][Assert]
161-
- [Platform][Driver][GLIB Graphics Library]
160+
- [Platform][Driver][GLIB Graphics Library] (if using the SiWx917 Wi-Fi 6 and Bluetooth LE 8 MB Flash SoC Pro Kit - BRD4338A)
162161
- [RTOS][FreeRTOS][FreeRTOS Heap 4]
163162

164163
4. From the project root folder, open file "config/sl_net_default_values.h" change 2 macros "DEFAULT_WIFI_CLIENT_PROFILE_SSID" and "DEFAULT_WIFI_CLIENT_CREDENTIAL" match with your WIFI SSID and WIFI PASSPHRASE

wifi_asset_tracking/SimplicityStudio/wifi_asset_tracking.slcp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ tag:
107107

108108
sdk_extension:
109109
- id: third_party_hw_drivers
110-
version: 3.0.1
110+
version: 4.1.0
111111
- id: wiseconnect3_sdk
112-
version: 3.2.0
112+
version: 3.4.0
113113

114114
ui_hints:
115115
highlight:
997 KB
Loading

wifi_asset_tracking/inc/sl_wifi_asset_tracking_azure_handler.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,11 @@ sl_status_t sl_retry_azure_cloud_connection();
122122
sl_status_t sl_load_ssl_certificates();
123123

124124
/******************************************************************************
125-
* @brief Function is used to create TLS transport for Azure IoT Hub connection.
126-
* @return The following values are returned:
127-
* - \ref SL_STATUS_OK on success
128-
* - \ref SL_STATUS_FAIL - on TLS connection creation failed
129-
******************************************************************************/
125+
* @brief Function is used to create TLS transport for Azure IoT Hub connection.
126+
* @return The following values are returned:
127+
* - \ref SL_STATUS_OK on success
128+
* - \ref SL_STATUS_FAIL - on TLS connection creation failed
129+
******************************************************************************/
130130
sl_status_t sl_create_tls_client_connection();
131131

132132
/**************************************************************************/ /**

wifi_asset_tracking/inc/sl_wifi_asset_tracking_demo_config.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ extern "C" {
3636
* Default : 60 seconds
3737
*/
3838
#define DEMO_CONFIG_WIFI_SAMPLING_INTERVAL 60
39-
#if (DEMO_CONFIG_WIFI_SAMPLING_INTERVAL < MIN_LIMIT_OF_WIFI_SAMPLING_INTERVAL \
40-
|| DEMO_CONFIG_WIFI_SAMPLING_INTERVAL \
41-
> MAX_LIMIT_OF_WIFI_SAMPLING_INTERVAL)
39+
#if (DEMO_CONFIG_WIFI_SAMPLING_INTERVAL < MIN_LIMIT_OF_WIFI_SAMPLING_INTERVAL \
40+
|| DEMO_CONFIG_WIFI_SAMPLING_INTERVAL \
41+
> MAX_LIMIT_OF_WIFI_SAMPLING_INTERVAL)
4242
#error Invalid sampling interval of wi-fi. It should be within specified range.
4343
#endif
4444

@@ -49,9 +49,9 @@ extern "C" {
4949
* Default : 5 seconds
5050
*/
5151
#define DEMO_CONFIG_TEMP_RH_SENSOR_SAMPLING_INTERVAL 5
52-
#if (DEMO_CONFIG_TEMP_RH_SENSOR_SAMPLING_INTERVAL \
53-
< MIN_LIMIT_OF_TEMP_RH_SENSOR_SAMPLING_INTERVAL \
54-
|| DEMO_CONFIG_TEMP_RH_SENSOR_SAMPLING_INTERVAL \
52+
#if (DEMO_CONFIG_TEMP_RH_SENSOR_SAMPLING_INTERVAL \
53+
< MIN_LIMIT_OF_TEMP_RH_SENSOR_SAMPLING_INTERVAL \
54+
|| DEMO_CONFIG_TEMP_RH_SENSOR_SAMPLING_INTERVAL \
5555
> MAX_LIMIT_OF_TEMP_RH_SENSOR_SAMPLING_INTERVAL)
5656
#error \
5757
Invalid sampling interval of temperature and RH sensor. It should be within specified range.
@@ -64,9 +64,9 @@ extern "C" {
6464
* Default : 1 second
6565
*/
6666
#define DEMO_CONFIG_IMU_SENSOR_SAMPLING_INTERVAL 1
67-
#if (DEMO_CONFIG_IMU_SENSOR_SAMPLING_INTERVAL \
68-
< MIN_LIMIT_OF_IMU_SENSOR_SAMPLING_INTERVAL \
69-
|| DEMO_CONFIG_IMU_SENSOR_SAMPLING_INTERVAL \
67+
#if (DEMO_CONFIG_IMU_SENSOR_SAMPLING_INTERVAL \
68+
< MIN_LIMIT_OF_IMU_SENSOR_SAMPLING_INTERVAL \
69+
|| DEMO_CONFIG_IMU_SENSOR_SAMPLING_INTERVAL \
7070
> MAX_LIMIT_OF_IMU_SENSOR_SAMPLING_INTERVAL)
7171
#error \
7272
Invalid sampling interval of imu sensor. It should be within specified range.
@@ -79,9 +79,9 @@ extern "C" {
7979
* Default : 60 seconds
8080
*/
8181
#define DEMO_CONFIG_GNSS_RECEIVER_SAMPLING_INTERVAL 60
82-
#if (DEMO_CONFIG_GNSS_RECEIVER_SAMPLING_INTERVAL \
83-
< MIN_LIMIT_OF_GNSS_RECEIVER_SAMPLING_INTERVAL \
84-
|| DEMO_CONFIG_GNSS_RECEIVER_SAMPLING_INTERVAL \
82+
#if (DEMO_CONFIG_GNSS_RECEIVER_SAMPLING_INTERVAL \
83+
< MIN_LIMIT_OF_GNSS_RECEIVER_SAMPLING_INTERVAL \
84+
|| DEMO_CONFIG_GNSS_RECEIVER_SAMPLING_INTERVAL \
8585
> MAX_LIMIT_OF_GNSS_RECEIVER_SAMPLING_INTERVAL)
8686
#error \
8787
Invalid sampling interval of gnss receiver. It should be within specified range.

wifi_asset_tracking/inc/sl_wifi_asset_tracking_json_data_handler.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,11 @@ sl_status_t sl_convert_si7021_reading_to_json_format(
139139
void sl_json_data_converter_task();
140140

141141
/**************************************************************************/ /**
142-
* @brief Function to send new session JSON message to MQTT package queue.
143-
* @return The following values are returned:
144-
* - \ref SL_STATUS_OK on success
145-
* - \ref SL_STATUS_FAIL - on keep alive message sending failure.
146-
*******************************************************************************/
142+
* @brief Function to send new session JSON message to MQTT package queue.
143+
* @return The following values are returned:
144+
* - \ref SL_STATUS_OK on success
145+
* - \ref SL_STATUS_FAIL - on keep alive message sending failure.
146+
*******************************************************************************/
147147
sl_status_t sl_json_send_new_session_message();
148148

149149
/**************************************************************************/ /**

wifi_asset_tracking/src/sl_wifi_asset_tracking_azure_handler.c

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -425,8 +425,8 @@ uint32_t sl_create_crypto_hmac(const uint8_t *pucKey,
425425
}
426426

427427
/******************************************************************************
428-
* Function will create properties for tele-metry messages
429-
******************************************************************************/
428+
* Function will create properties for tele-metry messages
429+
******************************************************************************/
430430
sl_status_t sl_create_telemetry_message_properties()
431431
{
432432
AzureIoTResult_t azure_iot_status;
@@ -480,9 +480,9 @@ sl_status_t sl_create_telemetry_message_properties()
480480
}
481481

482482
/******************************************************************************
483-
* Function will retry for Azure cloud connection with configured
484-
* authentication method for five times at every five seconds.
485-
******************************************************************************/
483+
* Function will retry for Azure cloud connection with configured
484+
* authentication method for five times at every five seconds.
485+
******************************************************************************/
486486
sl_status_t sl_retry_azure_cloud_connection()
487487
{
488488
uint8_t retry_cnt;
@@ -531,8 +531,8 @@ sl_status_t sl_retry_azure_cloud_connection()
531531
}
532532

533533
/******************************************************************************
534-
* Function is used to load SSL certificates based on authentication method.
535-
******************************************************************************/
534+
* Function is used to load SSL certificates based on authentication method.
535+
******************************************************************************/
536536
sl_status_t sl_load_ssl_certificates()
537537
{
538538
sl_status_t status;
@@ -624,8 +624,8 @@ sl_status_t sl_load_ssl_certificates()
624624
}
625625

626626
/******************************************************************************
627-
* Function is used to create TLS transport for Azure IoT Hub connection.
628-
******************************************************************************/
627+
* Function is used to create TLS transport for Azure IoT Hub connection.
628+
******************************************************************************/
629629
sl_status_t sl_create_tls_client_connection(void)
630630
{
631631
sl_status_t status;
@@ -638,7 +638,7 @@ sl_status_t sl_create_tls_client_connection(void)
638638

639639
/// DNS query to resolve Azure IoT Hub host name
640640
do {
641-
status = sl_net_host_get_by_name(
641+
status = sl_net_dns_resolve_hostname(
642642
(const char *)DEMO_CONFIG_IOT_HUB_HOST_NAME,
643643
DNS_TIMEOUT,
644644
SL_NET_DNS_TYPE_IPV4,
@@ -725,8 +725,8 @@ sl_status_t sl_create_tls_client_connection(void)
725725
}
726726

727727
/******************************************************************************
728-
* Callback function used to receive data from TLS socket connection.
729-
******************************************************************************/
728+
* Callback function used to receive data from TLS socket connection.
729+
******************************************************************************/
730730
int32_t sl_tls_sock_recv(NetworkContext_t *network_context,
731731
void *buffer,
732732
size_t bytes_to_recv)
@@ -754,8 +754,8 @@ int32_t sl_tls_sock_recv(NetworkContext_t *network_context,
754754
}
755755

756756
/******************************************************************************
757-
* Callback function used to send data on TLS socket connection.
758-
******************************************************************************/
757+
* Callback function used to send data on TLS socket connection.
758+
******************************************************************************/
759759
int32_t sl_tls_sock_send(NetworkContext_t *network_context,
760760
const void *buffer,
761761
size_t bytes_to_send)
@@ -773,8 +773,8 @@ int32_t sl_tls_sock_send(NetworkContext_t *network_context,
773773
}
774774

775775
/******************************************************************************
776-
* Function used to disconnect Azure IoT Hub connection and clean up TLS socket.
777-
******************************************************************************/
776+
* Function used to disconnect Azure IoT Hub connection and clean up TLS socket.
777+
******************************************************************************/
778778
sl_status_t sl_disconnect_azure_iot_hub()
779779
{
780780
/// Disconnect Azure IoT Hub Connection

wifi_asset_tracking/src/sl_wifi_asset_tracking_json_data_handler.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -830,8 +830,8 @@ void sl_json_data_converter_task()
830830
}
831831

832832
/******************************************************************************
833-
* Function to send new session JSON message to MQTT package queue.
834-
******************************************************************************/
833+
* Function to send new session JSON message to MQTT package queue.
834+
******************************************************************************/
835835
sl_status_t sl_json_send_new_session_message()
836836
{
837837
sl_wifi_asset_tracking_mqtt_package_queue_data_t new_session_message;

0 commit comments

Comments
 (0)