UM0896
Evaluation software
Doc ID 17009 Rev 1
37/43
7 Evaluation
software
The STM32F107xx connectivity gateway is delivered with software evaluation package
including the demonstration applications and libraries in C source code. The package
includes:
●
Connectivity Gateway demonstration application - USB audio card, TCP/IP
demonstration based on lwIP stack: DHCP client, Telnet server, Webserver, TFTP
server utilizing microSD Card, server/clients application
●
Example applications:
–
Audio streaming application - USB audio card - see UM0722
–
Webserver based on uIP TCP/IP stack - see UM0819
–
MEMS USB bridge application showing MEMS data on PC - see UM0701.
7.1
Connectivity Gateway demonstration application
(CG demonstration)
The “CG demonstration” demonstrates the audio and Ethernet capabilities of the board. It
also demonstrates the MEMS sensor data acquisition feature.
To run the CG demonstration properly, the STEVAL-PCC012V1 and STEVAL-CCA021V1
must be interconnected. To perform MEMS sensor data acquisition, one of the compatible
STEVAL-MKI0xxV1 boards should be connected.
The CG demonstration consists of two parts: the audio and the Ethernet demonstration.
After reset the IP address is resolved using DHCP client,
and
LEDs are toggled until this
process is completed.
The audio part demonstration reproduces the board IP address. It is then reprogrammed to
play sounds coming through the USB interface, making the board behave as an USB audio
card.
The Ethernet demonstrations are based on lwIP TCP/IP stack and consist of:
●
DHCP client, for IP address setting
●
Hello example based on the Telnet protocol
●
TFTP server, which transfers files from and to the microSD Card inserted in CN9
connector.
●
Web server showing pages with pictures and also data acquired from MEMS sensor
●
Server/clients example, which uses multiple boards and allows clients to control the
server's LEDs.
The Ethernet demonstrations are described in details in application note AN3102. The
description is also valid for the CG demonstration except for small modifications related to
server/clients example. Here the server is selected at startup by keeping the joystick button
pressed. The selected function of the board is shown by LEDs after the IP address is
resolved as shown by
Table 29
. The position of joystick on the client board controls LEDs on
the server board.
electronic components distributor