SlideShare a Scribd company logo
Communication PIC-Microcontroller Lab
     Course by JAOM Center, Feb. 2013




    Wi-Fi Module




           Instructor:
          Mohsen Sarakbi
Wi-Fi Definition
 Wi-Fi is the name of a popular wireless networking technology that uses radio waves to
  provide wireless high-speed Internet and network connections.
 A common misconception is that the term Wi-Fi is short for “Wireless Fidelity“


 The Protocol
    Built on the IEEE802.11 standards
    Wireless Local area Network (WLAN)


 Consumer Wi-Fi growth (2009-2010)
    158% growth in Wi-Fi consumer electronics
    90% Wi-Fi enabled cell phones
    3 in 4 consumers considered buying a Wi-Fi enabled device


 Embedded Systems
    'Evangelizes on the huge availability of “hotspots‟
    Provides data with a ultra low cost transport
Specification
 A computer's wireless adapter translates data into a radio signal
  and transmits it using an antenna.

 A wireless router receives the signal and decodes it. The router
  sends the information to the Internet Ethernet connection.

 Wi-Fi communication can transmit and receive radio waves


 They transmit at frequencies of 2.4 GHz or 5 GHz.The higher
  frequency allows the signal to carry more data.
Specification
 They use 802.11 networking standards, which come in several flavors


    802.11a transmits at 5 GHz and can move up to 54 Mbps. It also
     uses orthogonal frequency-division multiplexing (OFDM). This
     greatly reduces interference.
    802.11b is the slowest and least expensive standard, it transmits in the 2.4
     GHz frequency band. It can handle up to 11 Mbps, and it
     uses complementary code keying (CCK) modulation to improve
     speeds.
    802.11g transmits at 2.4 GHz, it can handle up to 54 Mbps. 802.11g is
     faster because it uses the same OFDM
    802.11n is the newest standard that is widely available. It can achieve speeds
     as high as 140 Mbps.
Specification

 Wi-Fi radios can transmit on any of three frequency bands. Or,
  they can "frequency hop" rapidly between the different bands.
  Frequency hopping helps reduce interference and lets multiple
  devices use the same wireless connection simultaneously.

 13 Channels
   Android App
Ad-hoc vs. Infrastructure Networks
UDP vs. TCP


• UDP
   Low-level, connectionless
   No reliability guarantee
   Faster
   2-ways handshaking
• TCP
   Connection-oriented
   Slower
   3-ways handshaking (use comm feedback as open & close)
WiFly Module
WiFly Module
 Roving’s Wi-Fi Solution

   Industry’s lowest power, complete system-on-module solution
     30mA Rx
     Tx variable depending on configuration



   Quick and simple to integrate
   CompleteTCP/IP solution – No external processor or drivers required
WiFly Specification




 SPI: Serial Peripheral Interface
WiFly Specification
Data Mode and Command Mode




 Data Mode (Default State)
   TheWiFLY module is effectively a data pipe
   TCP/UDP header are stripped or added transparent to the UART
   Data written to the UART is sent out over Wi-Fi
   Data received overWi-Fi is read from the UART
 Command Mode ($$$)
   Special configuration mode entered by $$$ (Default)
   Used to assign data such as SSID, IP, pass phrases etc.
Command Mode
 Entered by $$$


 Performed using ASCII commands


 Configuration setting are stored in the modules flash
   Changes are persistent and are reloaded after power cycling
   Changes are kept using the “SAVE” command


 Many settings require a reboot to take effect.
Command Mode
 Commands use a keyword followed by additional information


 Command rules
   Case sensitive
   Spaces cannot be used, a “$‟ is a substitute (Default).
  e.g. “MY NETWORK” = “MY$NETWORK”


 Shorthand's can be used
   set uart baudrate 115200 valid
   set uart b 115200 valid
   set u b 115200 valid
   s uart baudrate 115200 NOT valid.
Command Mode

 Set: Immediate effect, permanent if saved to config file


 Get: Retrieve and display the permanently stored information


 Status: Current status of interface, IP address, etc.


 Action: Perform actions such as scan, connect, disconnect


 File: Upgrade, load and save configuration, delete files, etc.
Join Network
 Search for networks
   scan
 Join a network
   join # 1 (remember the spaces)
   leave
   join <SSID string>
   leave
 Auto join a network with persistent configurations
   set wlan ssid <string>
   set wlan pass <string>
   save
   reboot
Join modes
Join modes
 Turn off auto join and join manually
    set wlan join 0
    save and reboot
    Go into command mode
    join
    The module will join the access point
 Auto join to any Access Point with open security
    set wlan ssid xxx
    set wlan join 2
    set wlan auth 0
    save and reboot
    The module will now attempt to join any network that is in open mode (no security)
Authentications mode

 set wlan auth <value>
   You only need to set this parameter if you are using automatic join mode 2, i.e., the
    set wlan join 2 command.
Channel

 set wlan channel <value>

   This command sets the WLAN channel, where <value> is a decimal number
    from 1 to 13 representing a fixed channel

   If you set the channel to 0, the modules performs a scan using the SSID for
    all the channels set in the channel mask.
Password Phrase

 set wlan phrase PASSWORD


   This command sets the passphrase for WPA and WPA2 security
   modes, where <string> is 1 to 64 characters (64 bytes)
Password Phrase

 set wlan rate <value>
   This command sets the wireless data rate, where <value> is a value shown 0-
    15.
   Lowering the data rate increases the effective range of the module.
Change Device ID

 Setting the Device ID
   Enter command mode
   get option
   set o d xxxxxx (o=optional, d=deviceID)
   save and reboot
Connect to Host (TCP)

 Auto connect requires remote host’s IP address & port #
  to be stored in the module:

   set ip host <host IP address>
   set ip remote <port>


   TCP port on the module is 2000
   TCP client and server mode
   Default mode initiates and accepts TCP connections
   Currently support only one active connection at a time.
   Concurrent TCP connections will be supported in the future
Comm. Strings
 A microcontroller can look for the comm strings on a UART as an indication of
   TCP connection status:
    reboot
    Associate with your AP
    set ip host <Host IP address>
    set ip remote 5000
    set comm open HAPPY
    set comm close HOLIDAYS
    set comm remote NEW_YEAR
    save and reboot
    open
    Close


 Tip:The microcontroller can read the open and close strings on the UART to determine
   the status of TCP connection
Forwarding TCP packets
 Forwarding packets based on Flush Timer
    set comm timer 1000
    save
    open
    Type any text once the TCP connection is opened. After you stop, a TCP packet will
      be sent out 1 second later
 Forward packets based on a “match character‟
    set comm timer 0
    set comm match 65
    This parameter expects either an ASCII decimal character or a HEX value of the
     match character. {65=CAPS A}
    save then open
    Type 12345678A
 A TCP packet will be sent out after you type the character “A”.
Port Seeker

 Configure & Capture UDP (5555)/TCP (5000) with Port Peeker
Lab
  Test the Module on TeraTerm Pro
  Moving Car application
  Android APK
Wi-Fi Module

More Related Content

PPT
Wireless sensor network and its application
PPTX
Zigbee Presentation
PPTX
Introduction to Bluetooth low energy
PDF
Project report on home automation using Arduino
PDF
Near Field Communication (NFC)
PPT
Bluetooth technology presentation
PPTX
PPTX
Zigbee technology presentation
Wireless sensor network and its application
Zigbee Presentation
Introduction to Bluetooth low energy
Project report on home automation using Arduino
Near Field Communication (NFC)
Bluetooth technology presentation
Zigbee technology presentation

What's hot (20)

PDF
Sensor Networks Introduction and Architecture
PPT
Wireless personal area networks(PAN)
PPTX
Wireless communication
PPT
Comparison between 2g, 2.5g, 3g, lte and lte a
PDF
Wireless sensor network wireless network
PPTX
EC6701 RF&MW - VSWR Meter
PPTX
Bluetooth
PPTX
Introduction to Arduino Microcontroller
PPT
5G Presentation
PPTX
Introduction to zigbee
PPT
Bluetooth Slides
PPTX
Infrared technology
PPTX
Visible light communication
PPT
Modern trends in mobile communication
PDF
BLUETOOTH CONTROL ROBOT WITH ANDROID APPLICATION
PPTX
wireless communication system
PDF
5G Network Architecture and Design
PPT
Antenna PARAMETERS
PPTX
Wireless Communication ppt
PPTX
Fire fighting robot ppt
Sensor Networks Introduction and Architecture
Wireless personal area networks(PAN)
Wireless communication
Comparison between 2g, 2.5g, 3g, lte and lte a
Wireless sensor network wireless network
EC6701 RF&MW - VSWR Meter
Bluetooth
Introduction to Arduino Microcontroller
5G Presentation
Introduction to zigbee
Bluetooth Slides
Infrared technology
Visible light communication
Modern trends in mobile communication
BLUETOOTH CONTROL ROBOT WITH ANDROID APPLICATION
wireless communication system
5G Network Architecture and Design
Antenna PARAMETERS
Wireless Communication ppt
Fire fighting robot ppt
Ad

Viewers also liked (20)

PDF
Wi-Fi For Beginners - Module 1- What is WiFi?
PDF
Manuale
PPT
Wifi Ppt
PPTX
PDF
Wi-Fi For Beginners Module 4 - More RF
PPTX
Features of ATMEL microcontrollers
DOCX
Hand movement controlled robotic vehicle
PDF
Wi-Fi For Beginners - Module 3 - Access Points (APs)
PDF
WiFi For Beginners Module 2 - RF Basics
PPTX
The Effect of Different Battery Type to The Remote Control(R/C) Car Speed -BU...
PDF
ZigBee module
PDF
Bluetooth Module
PDF
WiFi SoC ESP8266
PPS
Presentation on home automation
PPTX
Wi fi technology ppt mine
PDF
Wireless Gesture Controlled Robot (FYP Report)
PPTX
GESTURE CONTROL ROBOT
PPTX
Wi-Fi Technology
PPT
Introduction to RF & Wireless - Part 4
PDF
RF module
Wi-Fi For Beginners - Module 1- What is WiFi?
Manuale
Wifi Ppt
Wi-Fi For Beginners Module 4 - More RF
Features of ATMEL microcontrollers
Hand movement controlled robotic vehicle
Wi-Fi For Beginners - Module 3 - Access Points (APs)
WiFi For Beginners Module 2 - RF Basics
The Effect of Different Battery Type to The Remote Control(R/C) Car Speed -BU...
ZigBee module
Bluetooth Module
WiFi SoC ESP8266
Presentation on home automation
Wi fi technology ppt mine
Wireless Gesture Controlled Robot (FYP Report)
GESTURE CONTROL ROBOT
Wi-Fi Technology
Introduction to RF & Wireless - Part 4
RF module
Ad

Similar to Wi-Fi Module (20)

PPTX
Telecommunications: Wireless Networks
PPT
Wi Fi Technology
PPT
Training Day Slides
PPT
C C N A Day5
PPT
Zigbee
PPTX
Wireless Security null seminar
PDF
Рекомендации по настройке контроллеров БЛВС Cisco
PPTX
Networking Fundamentals
PPT
Networking Brief Overview
PPTX
14.) wireless (hyper dense wi fi)
PPT
Shashank wireless lans security
PDF
Ap&ac system development 2014
DOC
Ccna 3 chapter 7 v4.0 answers 2011
PPTX
Wireless lan security(10.8)
PPT
5169 wireless network_security_amine_k
PPT
Firewalls
PPT
IEEE 802.11s - Wireless Mesh Network
PPT
Chapter 1 Switch Network Device (1).ppt
PPTX
PPT
Vpnppt1884
Telecommunications: Wireless Networks
Wi Fi Technology
Training Day Slides
C C N A Day5
Zigbee
Wireless Security null seminar
Рекомендации по настройке контроллеров БЛВС Cisco
Networking Fundamentals
Networking Brief Overview
14.) wireless (hyper dense wi fi)
Shashank wireless lans security
Ap&ac system development 2014
Ccna 3 chapter 7 v4.0 answers 2011
Wireless lan security(10.8)
5169 wireless network_security_amine_k
Firewalls
IEEE 802.11s - Wireless Mesh Network
Chapter 1 Switch Network Device (1).ppt
Vpnppt1884

Recently uploaded (20)

PDF
Electronic commerce courselecture one. Pdf
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Encapsulation theory and applications.pdf
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Encapsulation_ Review paper, used for researhc scholars
PPT
Teaching material agriculture food technology
PPTX
Cloud computing and distributed systems.
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
Big Data Technologies - Introduction.pptx
PDF
Empathic Computing: Creating Shared Understanding
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPTX
MYSQL Presentation for SQL database connectivity
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
KodekX | Application Modernization Development
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Chapter 3 Spatial Domain Image Processing.pdf
Electronic commerce courselecture one. Pdf
MIND Revenue Release Quarter 2 2025 Press Release
Review of recent advances in non-invasive hemoglobin estimation
Encapsulation theory and applications.pdf
The AUB Centre for AI in Media Proposal.docx
Mobile App Security Testing_ A Comprehensive Guide.pdf
Encapsulation_ Review paper, used for researhc scholars
Teaching material agriculture food technology
Cloud computing and distributed systems.
Network Security Unit 5.pdf for BCA BBA.
Big Data Technologies - Introduction.pptx
Empathic Computing: Creating Shared Understanding
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
NewMind AI Weekly Chronicles - August'25 Week I
MYSQL Presentation for SQL database connectivity
Programs and apps: productivity, graphics, security and other tools
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
KodekX | Application Modernization Development
Unlocking AI with Model Context Protocol (MCP)
Chapter 3 Spatial Domain Image Processing.pdf

Wi-Fi Module

  • 1. Communication PIC-Microcontroller Lab Course by JAOM Center, Feb. 2013 Wi-Fi Module Instructor: Mohsen Sarakbi
  • 2. Wi-Fi Definition  Wi-Fi is the name of a popular wireless networking technology that uses radio waves to provide wireless high-speed Internet and network connections.  A common misconception is that the term Wi-Fi is short for “Wireless Fidelity“  The Protocol  Built on the IEEE802.11 standards  Wireless Local area Network (WLAN)  Consumer Wi-Fi growth (2009-2010)  158% growth in Wi-Fi consumer electronics  90% Wi-Fi enabled cell phones  3 in 4 consumers considered buying a Wi-Fi enabled device  Embedded Systems  'Evangelizes on the huge availability of “hotspots‟  Provides data with a ultra low cost transport
  • 3. Specification  A computer's wireless adapter translates data into a radio signal and transmits it using an antenna.  A wireless router receives the signal and decodes it. The router sends the information to the Internet Ethernet connection.  Wi-Fi communication can transmit and receive radio waves  They transmit at frequencies of 2.4 GHz or 5 GHz.The higher frequency allows the signal to carry more data.
  • 4. Specification  They use 802.11 networking standards, which come in several flavors  802.11a transmits at 5 GHz and can move up to 54 Mbps. It also uses orthogonal frequency-division multiplexing (OFDM). This greatly reduces interference.  802.11b is the slowest and least expensive standard, it transmits in the 2.4 GHz frequency band. It can handle up to 11 Mbps, and it uses complementary code keying (CCK) modulation to improve speeds.  802.11g transmits at 2.4 GHz, it can handle up to 54 Mbps. 802.11g is faster because it uses the same OFDM  802.11n is the newest standard that is widely available. It can achieve speeds as high as 140 Mbps.
  • 5. Specification  Wi-Fi radios can transmit on any of three frequency bands. Or, they can "frequency hop" rapidly between the different bands. Frequency hopping helps reduce interference and lets multiple devices use the same wireless connection simultaneously.  13 Channels  Android App
  • 7. UDP vs. TCP • UDP Low-level, connectionless No reliability guarantee Faster 2-ways handshaking • TCP Connection-oriented Slower 3-ways handshaking (use comm feedback as open & close)
  • 9. WiFly Module  Roving’s Wi-Fi Solution  Industry’s lowest power, complete system-on-module solution  30mA Rx  Tx variable depending on configuration  Quick and simple to integrate  CompleteTCP/IP solution – No external processor or drivers required
  • 10. WiFly Specification SPI: Serial Peripheral Interface
  • 12. Data Mode and Command Mode  Data Mode (Default State)  TheWiFLY module is effectively a data pipe  TCP/UDP header are stripped or added transparent to the UART  Data written to the UART is sent out over Wi-Fi  Data received overWi-Fi is read from the UART  Command Mode ($$$)  Special configuration mode entered by $$$ (Default)  Used to assign data such as SSID, IP, pass phrases etc.
  • 13. Command Mode  Entered by $$$  Performed using ASCII commands  Configuration setting are stored in the modules flash  Changes are persistent and are reloaded after power cycling  Changes are kept using the “SAVE” command  Many settings require a reboot to take effect.
  • 14. Command Mode  Commands use a keyword followed by additional information  Command rules  Case sensitive  Spaces cannot be used, a “$‟ is a substitute (Default). e.g. “MY NETWORK” = “MY$NETWORK”  Shorthand's can be used  set uart baudrate 115200 valid  set uart b 115200 valid  set u b 115200 valid  s uart baudrate 115200 NOT valid.
  • 15. Command Mode  Set: Immediate effect, permanent if saved to config file  Get: Retrieve and display the permanently stored information  Status: Current status of interface, IP address, etc.  Action: Perform actions such as scan, connect, disconnect  File: Upgrade, load and save configuration, delete files, etc.
  • 16. Join Network  Search for networks  scan  Join a network  join # 1 (remember the spaces)  leave  join <SSID string>  leave  Auto join a network with persistent configurations  set wlan ssid <string>  set wlan pass <string>  save  reboot
  • 18. Join modes  Turn off auto join and join manually  set wlan join 0  save and reboot  Go into command mode  join  The module will join the access point  Auto join to any Access Point with open security  set wlan ssid xxx  set wlan join 2  set wlan auth 0  save and reboot  The module will now attempt to join any network that is in open mode (no security)
  • 19. Authentications mode  set wlan auth <value>  You only need to set this parameter if you are using automatic join mode 2, i.e., the set wlan join 2 command.
  • 20. Channel  set wlan channel <value>  This command sets the WLAN channel, where <value> is a decimal number from 1 to 13 representing a fixed channel  If you set the channel to 0, the modules performs a scan using the SSID for all the channels set in the channel mask.
  • 21. Password Phrase  set wlan phrase PASSWORD  This command sets the passphrase for WPA and WPA2 security modes, where <string> is 1 to 64 characters (64 bytes)
  • 22. Password Phrase  set wlan rate <value>  This command sets the wireless data rate, where <value> is a value shown 0- 15.  Lowering the data rate increases the effective range of the module.
  • 23. Change Device ID  Setting the Device ID  Enter command mode  get option  set o d xxxxxx (o=optional, d=deviceID)  save and reboot
  • 24. Connect to Host (TCP)  Auto connect requires remote host’s IP address & port # to be stored in the module:  set ip host <host IP address>  set ip remote <port>  TCP port on the module is 2000  TCP client and server mode  Default mode initiates and accepts TCP connections  Currently support only one active connection at a time.  Concurrent TCP connections will be supported in the future
  • 25. Comm. Strings  A microcontroller can look for the comm strings on a UART as an indication of TCP connection status:  reboot  Associate with your AP  set ip host <Host IP address>  set ip remote 5000  set comm open HAPPY  set comm close HOLIDAYS  set comm remote NEW_YEAR  save and reboot  open  Close  Tip:The microcontroller can read the open and close strings on the UART to determine the status of TCP connection
  • 26. Forwarding TCP packets  Forwarding packets based on Flush Timer  set comm timer 1000  save  open  Type any text once the TCP connection is opened. After you stop, a TCP packet will be sent out 1 second later  Forward packets based on a “match character‟  set comm timer 0  set comm match 65  This parameter expects either an ASCII decimal character or a HEX value of the match character. {65=CAPS A}  save then open  Type 12345678A  A TCP packet will be sent out after you type the character “A”.
  • 27. Port Seeker  Configure & Capture UDP (5555)/TCP (5000) with Port Peeker
  • 28. Lab  Test the Module on TeraTerm Pro  Moving Car application  Android APK