SlideShare una empresa de Scribd logo
1 de 29
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
PIC-Microcontroller Wi-Fi Module Lab Communication Course

Más contenido relacionado

La actualidad más candente

Telecommunication switching networks
Telecommunication switching networksTelecommunication switching networks
Telecommunication switching networksDr. Kuldip Pahwa
 
IEEE 802.11 Architecture and Services
IEEE 802.11 Architecture and ServicesIEEE 802.11 Architecture and Services
IEEE 802.11 Architecture and ServicesSayed Chhattan Shah
 
Coherent systems
Coherent systemsCoherent systems
Coherent systemsCKSunith1
 
The cellular concept
The cellular conceptThe cellular concept
The cellular conceptZunAib Ali
 
Cellular Telephone Systems
Cellular Telephone SystemsCellular Telephone Systems
Cellular Telephone SystemsShantanu Krishna
 
Public Switched Telephone Network
Public Switched Telephone NetworkPublic Switched Telephone Network
Public Switched Telephone NetworkHaither Mithath
 
LoRaWAN in Depth
LoRaWAN in DepthLoRaWAN in Depth
LoRaWAN in DepthAPNIC
 
Phase locked loop
Phase locked loop Phase locked loop
Phase locked loop imengineer
 
Frequency Division Multiple Access (FDMA)
Frequency Division Multiple Access (FDMA)Frequency Division Multiple Access (FDMA)
Frequency Division Multiple Access (FDMA)Miles Kevin Galario
 
Network architecture
Network architectureNetwork architecture
Network architectureOnline
 
Optical Fiber Communication Part 3 Optical Digital Receiver
Optical Fiber Communication Part 3 Optical Digital ReceiverOptical Fiber Communication Part 3 Optical Digital Receiver
Optical Fiber Communication Part 3 Optical Digital ReceiverMadhumita Tamhane
 
Improving coverage and capacity in cellular systems
Improving coverage and capacity in cellular systemsImproving coverage and capacity in cellular systems
Improving coverage and capacity in cellular systemsTarek Nader
 

La actualidad más candente (20)

Telecommunication switching networks
Telecommunication switching networksTelecommunication switching networks
Telecommunication switching networks
 
Introduction to VoIP
Introduction to VoIPIntroduction to VoIP
Introduction to VoIP
 
IEEE 802.11 Architecture and Services
IEEE 802.11 Architecture and ServicesIEEE 802.11 Architecture and Services
IEEE 802.11 Architecture and Services
 
Coherent systems
Coherent systemsCoherent systems
Coherent systems
 
The cellular concept
The cellular conceptThe cellular concept
The cellular concept
 
Line coding
Line codingLine coding
Line coding
 
Cellular Telephone Systems
Cellular Telephone SystemsCellular Telephone Systems
Cellular Telephone Systems
 
Public Switched Telephone Network
Public Switched Telephone NetworkPublic Switched Telephone Network
Public Switched Telephone Network
 
LoRaWAN in Depth
LoRaWAN in DepthLoRaWAN in Depth
LoRaWAN in Depth
 
Imt 2000
Imt 2000Imt 2000
Imt 2000
 
IEEE Standards
IEEE StandardsIEEE Standards
IEEE Standards
 
Phase locked loop
Phase locked loop Phase locked loop
Phase locked loop
 
Frequency Division Multiple Access (FDMA)
Frequency Division Multiple Access (FDMA)Frequency Division Multiple Access (FDMA)
Frequency Division Multiple Access (FDMA)
 
Network architecture
Network architectureNetwork architecture
Network architecture
 
MINIMUM SHIFT KEYING(MSK)
MINIMUM SHIFT KEYING(MSK)MINIMUM SHIFT KEYING(MSK)
MINIMUM SHIFT KEYING(MSK)
 
Optical Fiber Communication Part 3 Optical Digital Receiver
Optical Fiber Communication Part 3 Optical Digital ReceiverOptical Fiber Communication Part 3 Optical Digital Receiver
Optical Fiber Communication Part 3 Optical Digital Receiver
 
Bluetooth Slides
Bluetooth SlidesBluetooth Slides
Bluetooth Slides
 
Microwave measurements in detail
Microwave measurements in detailMicrowave measurements in detail
Microwave measurements in detail
 
Improving coverage and capacity in cellular systems
Improving coverage and capacity in cellular systemsImproving coverage and capacity in cellular systems
Improving coverage and capacity in cellular systems
 
Bluetooth
BluetoothBluetooth
Bluetooth
 

Destacado

Wi-Fi For Beginners - Module 1- What is WiFi?
Wi-Fi For Beginners - Module 1- What is WiFi?Wi-Fi For Beginners - Module 1- What is WiFi?
Wi-Fi For Beginners - Module 1- What is WiFi?Nigel Bowden
 
Wi-Fi For Beginners Module 4 - More RF
Wi-Fi For Beginners Module 4 - More RFWi-Fi For Beginners Module 4 - More RF
Wi-Fi For Beginners Module 4 - More RFNigel Bowden
 
Features of ATMEL microcontrollers
Features of ATMEL microcontrollersFeatures of ATMEL microcontrollers
Features of ATMEL microcontrollersSuraj Shandilya
 
Hand movement controlled robotic vehicle
Hand movement controlled robotic vehicleHand movement controlled robotic vehicle
Hand movement controlled robotic vehicleMayank sankhla
 
Wi-Fi For Beginners - Module 3 - Access Points (APs)
Wi-Fi For Beginners - Module 3 - Access Points (APs)Wi-Fi For Beginners - Module 3 - Access Points (APs)
Wi-Fi For Beginners - Module 3 - Access Points (APs)Nigel Bowden
 
WiFi For Beginners Module 2 - RF Basics
WiFi For Beginners Module 2 - RF BasicsWiFi For Beginners Module 2 - RF Basics
WiFi For Beginners Module 2 - RF BasicsNigel Bowden
 
The Effect of Different Battery Type to The Remote Control(R/C) Car Speed -BU...
The Effect of Different Battery Type to The Remote Control(R/C) Car Speed -BU...The Effect of Different Battery Type to The Remote Control(R/C) Car Speed -BU...
The Effect of Different Battery Type to The Remote Control(R/C) Car Speed -BU...Maulana Afifi
 
Wi fi technology ppt mine
Wi fi technology ppt mineWi fi technology ppt mine
Wi fi technology ppt mineRoshni Ayappan
 
Wireless Gesture Controlled Robot (FYP Report)
Wireless Gesture Controlled Robot (FYP Report)Wireless Gesture Controlled Robot (FYP Report)
Wireless Gesture Controlled Robot (FYP Report)Muhammad Ahkam Khan
 
GESTURE CONTROL ROBOT
GESTURE CONTROL ROBOTGESTURE CONTROL ROBOT
GESTURE CONTROL ROBOTSatyam Kumar
 
Introduction to RF & Wireless - Part 4
Introduction to RF & Wireless - Part 4Introduction to RF & Wireless - Part 4
Introduction to RF & Wireless - Part 4Carl Weisman
 

Destacado (20)

Wi-Fi For Beginners - Module 1- What is WiFi?
Wi-Fi For Beginners - Module 1- What is WiFi?Wi-Fi For Beginners - Module 1- What is WiFi?
Wi-Fi For Beginners - Module 1- What is WiFi?
 
Manuale
ManualeManuale
Manuale
 
Wifi Ppt
Wifi PptWifi Ppt
Wifi Ppt
 
WiFI
WiFIWiFI
WiFI
 
Wi-Fi For Beginners Module 4 - More RF
Wi-Fi For Beginners Module 4 - More RFWi-Fi For Beginners Module 4 - More RF
Wi-Fi For Beginners Module 4 - More RF
 
Features of ATMEL microcontrollers
Features of ATMEL microcontrollersFeatures of ATMEL microcontrollers
Features of ATMEL microcontrollers
 
Hand movement controlled robotic vehicle
Hand movement controlled robotic vehicleHand movement controlled robotic vehicle
Hand movement controlled robotic vehicle
 
Wi-Fi For Beginners - Module 3 - Access Points (APs)
Wi-Fi For Beginners - Module 3 - Access Points (APs)Wi-Fi For Beginners - Module 3 - Access Points (APs)
Wi-Fi For Beginners - Module 3 - Access Points (APs)
 
WiFi For Beginners Module 2 - RF Basics
WiFi For Beginners Module 2 - RF BasicsWiFi For Beginners Module 2 - RF Basics
WiFi For Beginners Module 2 - RF Basics
 
The Effect of Different Battery Type to The Remote Control(R/C) Car Speed -BU...
The Effect of Different Battery Type to The Remote Control(R/C) Car Speed -BU...The Effect of Different Battery Type to The Remote Control(R/C) Car Speed -BU...
The Effect of Different Battery Type to The Remote Control(R/C) Car Speed -BU...
 
ZigBee module
ZigBee moduleZigBee module
ZigBee module
 
Bluetooth Module
Bluetooth ModuleBluetooth Module
Bluetooth Module
 
WiFi SoC ESP8266
WiFi SoC ESP8266WiFi SoC ESP8266
WiFi SoC ESP8266
 
Presentation on home automation
Presentation on home automationPresentation on home automation
Presentation on home automation
 
Wi fi technology ppt mine
Wi fi technology ppt mineWi fi technology ppt mine
Wi fi technology ppt mine
 
Wireless Gesture Controlled Robot (FYP Report)
Wireless Gesture Controlled Robot (FYP Report)Wireless Gesture Controlled Robot (FYP Report)
Wireless Gesture Controlled Robot (FYP Report)
 
GESTURE CONTROL ROBOT
GESTURE CONTROL ROBOTGESTURE CONTROL ROBOT
GESTURE CONTROL ROBOT
 
Wi-Fi Technology
Wi-Fi TechnologyWi-Fi Technology
Wi-Fi Technology
 
Introduction to RF & Wireless - Part 4
Introduction to RF & Wireless - Part 4Introduction to RF & Wireless - Part 4
Introduction to RF & Wireless - Part 4
 
RF module
RF moduleRF module
RF module
 

Similar a PIC-Microcontroller Wi-Fi Module Lab Communication Course

Telecommunications: Wireless Networks
Telecommunications: Wireless NetworksTelecommunications: Wireless Networks
Telecommunications: Wireless NetworksNapier University
 
Training Day Slides
Training Day SlidesTraining Day Slides
Training Day Slidesadam_merritt
 
Wireless Security null seminar
Wireless Security null seminarWireless Security null seminar
Wireless Security null seminarNilesh Sapariya
 
Рекомендации по настройке контроллеров БЛВС Cisco
Рекомендации по настройке контроллеров БЛВС CiscoРекомендации по настройке контроллеров БЛВС Cisco
Рекомендации по настройке контроллеров БЛВС CiscoCisco Russia
 
Networking Fundamentals
Networking FundamentalsNetworking Fundamentals
Networking FundamentalsMD SAQUIB KHAN
 
14.) wireless (hyper dense wi fi)
14.) wireless (hyper dense wi fi)14.) wireless (hyper dense wi fi)
14.) wireless (hyper dense wi fi)Jeff Green
 
Ap&ac system development 2014
Ap&ac system development 2014Ap&ac system development 2014
Ap&ac system development 2014TOM LIU
 
Ccna 3 chapter 7 v4.0 answers 2011
Ccna 3 chapter 7 v4.0 answers 2011Ccna 3 chapter 7 v4.0 answers 2011
Ccna 3 chapter 7 v4.0 answers 2011Dân Chơi
 
5169 wireless network_security_amine_k
5169 wireless network_security_amine_k5169 wireless network_security_amine_k
5169 wireless network_security_amine_kRama Krishna M
 
IEEE 802.11s - Wireless Mesh Network
IEEE 802.11s - Wireless Mesh NetworkIEEE 802.11s - Wireless Mesh Network
IEEE 802.11s - Wireless Mesh NetworkArunabh Mishra
 

Similar a PIC-Microcontroller Wi-Fi Module Lab Communication Course (20)

Telecommunications: Wireless Networks
Telecommunications: Wireless NetworksTelecommunications: Wireless Networks
Telecommunications: Wireless Networks
 
Wi Fi Technology
Wi Fi TechnologyWi Fi Technology
Wi Fi Technology
 
Training Day Slides
Training Day SlidesTraining Day Slides
Training Day Slides
 
C C N A Day5
C C N A  Day5C C N A  Day5
C C N A Day5
 
Zigbee
ZigbeeZigbee
Zigbee
 
Wireless Security null seminar
Wireless Security null seminarWireless Security null seminar
Wireless Security null seminar
 
Рекомендации по настройке контроллеров БЛВС Cisco
Рекомендации по настройке контроллеров БЛВС CiscoРекомендации по настройке контроллеров БЛВС Cisco
Рекомендации по настройке контроллеров БЛВС Cisco
 
Networking Fundamentals
Networking FundamentalsNetworking Fundamentals
Networking Fundamentals
 
Networking Brief Overview
Networking Brief OverviewNetworking Brief Overview
Networking Brief Overview
 
14.) wireless (hyper dense wi fi)
14.) wireless (hyper dense wi fi)14.) wireless (hyper dense wi fi)
14.) wireless (hyper dense wi fi)
 
Shashank wireless lans security
Shashank wireless lans securityShashank wireless lans security
Shashank wireless lans security
 
Ap&ac system development 2014
Ap&ac system development 2014Ap&ac system development 2014
Ap&ac system development 2014
 
Ccna 3 chapter 7 v4.0 answers 2011
Ccna 3 chapter 7 v4.0 answers 2011Ccna 3 chapter 7 v4.0 answers 2011
Ccna 3 chapter 7 v4.0 answers 2011
 
Wireless lan security(10.8)
Wireless lan security(10.8)Wireless lan security(10.8)
Wireless lan security(10.8)
 
5169 wireless network_security_amine_k
5169 wireless network_security_amine_k5169 wireless network_security_amine_k
5169 wireless network_security_amine_k
 
Firewalls
FirewallsFirewalls
Firewalls
 
IEEE 802.11s - Wireless Mesh Network
IEEE 802.11s - Wireless Mesh NetworkIEEE 802.11s - Wireless Mesh Network
IEEE 802.11s - Wireless Mesh Network
 
Wireless Security
Wireless SecurityWireless Security
Wireless Security
 
Vpnppt1884
Vpnppt1884Vpnppt1884
Vpnppt1884
 
Y36146148
Y36146148Y36146148
Y36146148
 

Último

The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embeddingZilliz
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESmohitsingh558521
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 

Último (20)

The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embedding
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 

PIC-Microcontroller Wi-Fi Module Lab Communication Course

  • 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