calypso  2.1.0.0
Main Page

Calypso click

Calypso Click is a compact add-on board for wireless connectivity in embedded applications. This board features the WIRL-WIFS Calypso WLAN module (2610011025000) from Würth Elektronik, which supports IEEE 802.11 b/g/n standards and includes a fully integrated TCP/IP stack. It also features edge castellated connections, a smart antenna configuration, and supports both IPv4 and IPv6 protocols, including SNTP, DHCP, mDNS, HTTP(S), and MQTT, offering secure connectivity with six simultaneous secure sockets, secure boot, and OTA updates.

click Product page


Click library

  • Author : Stefan Ilic
  • Date : Mar 2024.
  • Type : UART type

Software Support

We provide a library for the Calypso Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.

Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.

Library Description

This library contains API for Calypso Click driver.

Standard key functions :

Example key functions :

Example Description

This example demonstrates the use of Calypso click board by processing the incoming data and displaying them on the USB UART.

The demo application is composed of two sections :

Application Init

Initializes the driver and places AT command mode, tests the communication, and after that restarts the device, and performs example configuration.

void application_init ( void )
{
log_cfg_t log_cfg;
calypso_cfg_t calypso_cfg;
LOG_MAP_USB_UART( log_cfg );
log_init( &logger, &log_cfg );
log_info( &logger, " Application Init " );
// Click initialization.
calypso_cfg_setup( &calypso_cfg );
CALYPSO_MAP_MIKROBUS( calypso_cfg, MIKROBUS_1 );
if ( UART_ERROR == calypso_init( &calypso, &calypso_cfg ) )
{
log_error( &logger, " Communication init." );
for ( ; ; );
}
if ( CALYPSO_ERROR == calypso_default_cfg ( &calypso ) )
{
log_error( &logger, " Default configuration." );
for ( ; ; );
}
calypso_configure_for_example( );
log_info( &logger, " Application Task " );
}

Application Task

It creates a connection to the TCP-UDP echo server, sends a message to it reads it back, displaces it on the UART terminal, and then closes the connection.

void application_task ( void )
{
calypso_example( );
}

The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.

Other Mikroe Libraries used in the example:

  • MikroSDK.Board
  • MikroSDK.Log
  • Click.Calypso

Additional notes and informations

Depending on the development board you are using, you may need USB UART click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. UART terminal is available in all MikroElektronika compilers.


calypso_cfg_setup
void calypso_cfg_setup(calypso_cfg_t *cfg)
Calypso configuration object setup function.
calypso_send_cmd
void calypso_send_cmd(calypso_t *ctx, uint8_t *at_cmd_buf)
Calypso send command function.
CALYPSO_ERROR
@ CALYPSO_ERROR
Definition: calypso.h:265
calypso_hw_reset
void calypso_hw_reset(calypso_t *ctx)
Calypso HW reset function.
calypso_cfg_t
Calypso Click configuration object.
Definition: calypso.h:233
application_task
void application_task(void)
Definition: main.c:154
CALYPSO_MAP_MIKROBUS
#define CALYPSO_MAP_MIKROBUS(cfg, mikrobus)
MikroBUS pin mapping.
Definition: calypso.h:186
calypso_t
Calypso Click context object.
Definition: calypso.h:205
calypso_set_app_mode
err_t calypso_set_app_mode(calypso_t *ctx, uint8_t mode_sel)
Calypso set app mode function.
application_init
void application_init(void)
Definition: main.c:116
calypso_default_cfg
err_t calypso_default_cfg(calypso_t *ctx)
Calypso default configuration function.
calypso_init
err_t calypso_init(calypso_t *ctx, calypso_cfg_t *cfg)
Calypso initialization function.