Getting Started with WiSeConnect®
And Connect-io-n® Firmware development
Introduction
WiSeConnect and Connect-io-on are feature-rich, low power wireless modules
suitable for embedded applications. In addition to wireless connectivity over
Wi-Fi, Bluetooth, Bluetooth Low Energy, and ZigBee, these modules implement a
full TCP/IP stack and provide application level protocols such HTTP, Websockets,
TCP, and more.
The purpose of this document is to quickly get you started with building and
running code on Spansion MCU as well as to provide references to important
documentation.
Prerequisites
It is assumed that you are developing on a Spansion MCU using CooCox CoIDE. If
this is not the case, consult the WiSeConnect SAPI Porting Guide
and examples to your choice of MCU. Contact Silicon Labs if you require projects
for Renesas Studio, IAR or Keil and HAL ports for Renesas RX, STM32 and LPC
MCUs.
The Silicon Labs APIs and examples can be used with or without RTOS. The Silicon
Labs APIs use OS abstraction layer to enable support for any RTOS. Out of box,
Silicon Labs APIs support FreeRTOS. Other RTOS may be supported by modifying the
RTOS abstraction layer.
(9)
to port the APIs
Software
1. CooCox CoIDE 1.7.8 (Version 2.0 has compatibility issues)
2. Iperf2 (Iperf3 is not compatible)
3. WiSeConnect Software Package
(3)
Getting Started
The WiSeConnect Software Package provides many example applications to help you
get started. This section will walk through a selection of these examples to
familiarize them with the API and development environment.
1. Navigate to
RS9113.NBZ.WC.GEN.OSI.X.Y.Z/host/sapis/platforms/spansion_MB9BF
568NBGL
2. Navigate to no_os/ to develop without an operating system or freeRTOS/ to
develop using freeRTOS. For this tutorial, it is recommended to use no_os/.
3. Double click on Spansion.coproj to open the project in CoIDE.
All examples from this point onwards will require modifying this project. The first
example, rsi_tcp_client.c is already included in the project.
v1.1 Page 1
Getting Started with WiSeConnect®
And Connect-io-n® Firmware development
Figure 1 Erase, Build and Flash the Project
TCP Client Example
The first example will demonstrate WiSeConnect’s TCP functionality. The Device
will connect to a specified server and port. Then, it will send the message “Hello
from TCP client!!!” repeatedly to the destination.
The TCP Client app has its own documentation which is located in the same
directory as rsi_tcp_client.c. Navigate to /host/sapis/examples/tcp_client/ and
open rsi_tcp_client.pdf.
Follow the instructions in rsi_tcp_client.pdf to get this example working. The
instructions, in brief, are:
1. Run iperf as a listening tcp server on port 5001.
2. In rsi_tcp_client.c, modify SSID, SECURITY_TYPE, and PSK to match your
access point credentials.
3. Modify DEVICE_IP to match your PC’s IP Address. (Address 10.11.12.255
would be 0xFF0C0B0A)
4. Modify rsi_wlan_config.h macros to match the table in pages 7-8. This
should be correct by default.
5. Compile and flash the project to your device (Figure 1).
Access Point Example
The WiSeConnect device can be configured to act as an access point that other Wi-Fi
devices can connect to.
1. To get started on this example, navigate to
host/sapis/examples/wlan/access_point and open rsi_ap_start_app.pdf. In
addition, drag and drop the file rsi_ap_start.c into the CoIDE project examples
directory.
v1.1 Page 2