Experiment No: - 2
Aim: - Configuring Wi-Fi using CC 3100 Wi-Fi module of Texas instruments
Theory: -
1. Library includes:
• #include <SLFS.h>: The SLFS.h library is part of Texas Instruments' SimpleLink SDK and provides
functions for interacting with file systems on supported microcontroller platforms. It allows developers
to perform file operations like reading, writing, and managing files stored on the device.
• #include <WiFi.h>: The WiFi.h library enables WiFi connectivity on microcontrollers such as the
CC3100. It allows devices to connect to WiFi networks, manage connections, and perform network-
related tasks like sending and receiving data over WiFi.
• #include <WiFiClient.h>: The WiFiClient.h library provides a client interface for TCP communication
over WiFi. It allows microcontrollers to establish TCP connections with remote servers or devices, send
data, and receive responses.
• #include <WiFiServer.h>: The WiFiServer.h library allows microcontrollers to act as servers over a
WiFi network. It enables the creation of server applications that can listen for incoming TCP
connections and respond to client requests.
• #include <WiFiUdp.h>: The WiFiUdp.h library supports UDP (User Datagram Protocol)
communication over WiFi. It allows microcontrollers to send and receive UDP packets, which are
typically used for lightweight, connectionless communication.
2. Key Features:
• CC3200, SimpleLink Wi-Fi, Internet-on-a-chip solution with integrated MCU
• 40-pin LaunchPad standard that leverages the BoosterPack ecosystem
• FTDI-based JTAG emulation with serial port for flash programming
• Two buttons and three LEDs for user interaction
• Backchannel universal asynchronous receiver/transmitter (UART) through USB to PC
• On-board chip antenna with U.FL for conducted testing
• On-board accelerometer and temperature sensor for out-of-box demo
• Micro USB connector for power and debug connections
3. Hardware Features:
• CC3200, SimpleLink Wi-Fi, Internet-on-a-chip solution with integrated MCU.
• 40-pin LaunchPad standard that leverages the BoosterPack ecosystem.
• FTDI-based JTAG emulation with serial port for flash programming.
• Supports both 4-wire JTAG and 2-wire SWD.
• Two buttons and three LEDs for user interaction.
• Virtual COM port UART through USB on PC.
• On-board chip antenna with U.FL for conducted testing.
• On-board accelerometer and temperature sensor for out-of-box demo, with option to isolate
them from the inter-integrated circuit (I2C) bus.
• Micro USB connector for power and debug connections.
• Headers for current measurement and external JTAG connection.
• Bus-powered device with no external power required for Wi-Fi.
• Long-range transmission with highly optimized antenna (200 m typical in open air with a 6-dBi
antenna AP).
• Can be powered externally, with 2xAA or 2xAAA alkaline batteries working down to 2.3 V
typical.
4. Hardware Diagram: CC3200 Launchpad Development Kit Overview
Figure 1.
5. Block Diagram:
Figure 2.
6. Algorithm:
1. Include necessary libraries: SLFS, WiFi, WiFiClient, WiFiServer, WiFiUdp.
2. Declare variables for storing network information: shieldIP, subnetMask, gatewayIP, rssi, networkId,
macAddr, encryptionType.
3. Define the SSID and password for connecting to the WiFi network.
4. In the setup function:
a. Begin serial communication.
b. Connect to the Wi-Fi network using the provided SSID and password.
c. Wait until connection is established and print dots to indicate progress.
d. Once connected, fetch and print the shield’s IP address, SSID, signal strength (RSSI), number. of access
points in range, names of access points, encryption types, subnet mask, gateway IP address, and MAC
address.
5. In the loop function, nothing is implemented, so it remains empty.
7. Output:
Conclusion: In this experiment we set up a connection to a Wi-Fi network, retrieves network details like IP
address and signal strength, and prints them out in putty .