Használati útmutató Microchip ATWINC3400-IC

Olvassa el alább 📖 a magyar nyelvű használati útmutatót Microchip ATWINC3400-IC (149 oldal) a nincs kategorizálva kategóriában. Ezt az útmutatót 4 ember találta hasznosnak és 2 felhasználó értékelte átlagosan 4.5 csillagra

Oldal 1/149
ATWINC3400
ATWINC3400 Wi-Fi/BLE Network Controller - Software
Design Guide
User Guide
Introduction
Atmel® SmartConnect ATWINC3400 SoC is an IEEE® 802.11 b/g/n and
Bluetooth® Smart BLE network controller for applications in the Internet-of-
Things. It is an ideal add-on to existing MCU solutions bringing Wi-Fi® and
network capabilities through an SPI- -to Wi-Fi interface. The WINC3400 AT
connects to any Atmel AVR® or Atmel | SMART MCU with minimal resource
requirement s.
Features
Wi-Fi IEEE® 802.11 b/g/n STA AP modes and
Wi-Fi Protected Setup (WPS)
Discovery and provisioning via Smartphone using BLE
Support of WEP WPA/WPA2 personal security and
Embedded network stack protocols to ooad work from the host MCU. This
allows operation with a wide range of MCUs including low end MCUs.
Embedded TCP/IP stack with BSD-style socket API
Embedded network protocols
DHCP client/server
DNS resolver client
SNTP client for UTC time synchronization
Embedded TLS security abstracted behind BSD-style socket API
HTTP Server for optional provisioning using AP mode
Ultra-low cost IEEE 802.11 b/g/n RF/PH/MAC SoC
Ultra-low power Bluetooth SMART (BLE 4.0 SoC with Integrated MCU, )
Transceiver, Modem, MAC, PA, TR Switch, and Power Management Unit
Fast boot from on-chip Boot ROM
8Mb internal Flash memory
Low power consumption with dierent power saving modes
SPI, I2C, and UART support
Low footprint host driver with the following capabilities:
Can run on 8, 16, and 32 bit MCU
Little and Big endian support
Consumes about 8KB of code memory and 1KB of data memory on host
MCU
Atmel- -ATWINC3400-WiFi-BLE-Network-Controller-Software-Design-Guide_UserGuide 42016 42566A _0
ATWINC3400 Wi-Fi/BLE Network Controller Software Design Guide [USER GUIDE]
Atmel- -ATWINC3400-WiFi-BLE-Network-Controller-Software-Design-Guide_UserGuide 42016 42566A _0
2
Table of Contents
1 Icon Key Identiers .............................................................................................. 7
2 Glossary ................................................................................................................ 7
3 References ............................................................................................................ 7
4 Host Driver Architecture ...................................................................................... 8
4.1 WLAN API ......................................................................................................................................... 8
4.2 Socket API ......................................................................................................................................... 8
4.3 Host Interface (HIF) ........................................................................................................................... 9
4.4 Board Support Package (BSP) .......................................................................................................... 9
4.5 Serial Bus Interface ........................................................................................................................... 9
5 WINC System Architecture ................................................................................ 10
5.1 Bus Interface ................................................................................................................................... 10
5.2 Non-volatile Storage ........................................................................................................................ 11
5.3 CPUs ............................................................................................................................................... 11
5.4 IEEE 802.11 MAC Hardware ........................................................................................................... 11
5.5 Bluetooth BLE V4.0 MAC Hardware ................................................................................................ 11
5.6 Program Memory ............................................................................................................................. 11
5.7 Data Memory ................................................................................................................................... 11
5.8 Shared Packet Memory ................................................................................................................... 11
5.9 IEEE 802.11 MAC Firmware ............................................................................................................ 11
5.10 Bluetooth V2.1 MAC Firmware ........................................................................................................ 12
5.11 Memory Managers ........................................................................................................................... 12
5.12 Power Managements ....................................................................................................................... 12
5.13 ATWINC RTOS ............................................................................................................................... 12
5.14 ATWINC IoT Library ........................................................................................................................ 13
6 ATWINC Initialization and Simple Application ................................................. 14
6.1 BSP Initialization .............................................................................................................................. 14
6.2 ATWINC Host Driver Initialization .................................................................................................... 14
6.3 Socket Layer Initialization ................................................................................................................ 14
6.4 ATWINC Event Handling ................................................................................................................. 14
6.4.1 Asynchronous Events ............................................................................................................. 15
6.4.2 Interrupt Handling ................................................................................................................... 15
6.5 Code Example ................................................................................................................................. 16
7 ATWINC Conguration ....................................................................................... 17
7.1 Device Parameters .......................................................................................................................... 17
7.1.1 System Time ........................................................................................................................... 17
7.1.2 Firmware and HIF Version ...................................................................................................... 17
7.2 ATWINC Modes of Operation .......................................................................................................... 17
7.2.1 Idle Mode ................................................................................................................................ 18
7.2.2 Wi-Fi Station M ode................................................................................................................. 18
7.2.3 Wi-Fi Hotspot (AP) Mode ........................................................................................................ 18
7.3 Network Parameters ........................................................................................................................ 19
7.3.1 Wi-Fi MAC Address ................................................................................................................ 19
7.3.2 IP Address .............................................................................................................................. 19
7.4 Power Saving Parameters ............................................................................................................... 19
ATWINC3400 Wi-Fi/BLE Network Controller Software Design Guide [USER GUIDE]
Atmel- -ATWINC3400-WiFi-BLE-Network-Controller-Software-Design-Guide_UserGuide 42016 42566A _0
3
7.4.1 Power Saving Modes .............................................................................................................. 19
7.4.1.1 M2M_PS_MANUAL ................................................................................................ 20
7.4.1.2 M2M_PS_AUTOMATIC .......................................................................................... 21
7.4.1.3 M2M_PS_H_AUTOMATIC ..................................................................................... 21
7.4.1.4 M2M_PS_DEEP_AUTOMATIC .............................................................................. 21
7.4.2 Conguring Listen Interval and DTIM Monitoring .................................................................... 21
8 -Fi Station Mode Wi ............................................................................................. 22
8.1 Scan Conguration Parameters .......................................................................................................22
8.1.1 Scan Region ........................................................................................................................... 22
8.1.2 Scan Options .......................................................................................................................... 22
8.2 Wi-Fi Scan ....................................................................................................................................... 22
8.3 On Demand Wi-Fi Connection ......................................................................................................... 23
8.4 Default Connection .......................................................................................................................... 24
8.5 Wi-Fi Security .................................................................................................................................. 25
8.6 Example Code ................................................................................................................................. 26
9 ATWINC Socket Programming .......................................................................... 27
9.1 Overview .........................................................................................................................................27
9.1.1 ATWINC Socket Types ........................................................................................................... 27
9.1.2 Socket Properties ................................................................................................................... 27
9.1.3 Limitations .............................................................................................................................. 27
9.2 ATWINC Sockets API ...................................................................................................................... 27
9.2.1 API Prerequisites .................................................................................................................... 27
9.2.2 Non-blocking Asynchronous Socket APIs ..............................................................................28
9.2.3 Socket API Functions ............................................................................................................. 28
9.2.3.1 socketInit ................................................................................................................ 28
9.2.3.2 registerSocketCallback ........................................................................................... 28
9.2.3.3 socket ..................................................................................................................... 28
9.2.3.4 connect ................................................................................................................... 28
9.2.3.5 bind......................................................................................................................... 29
9.2.3.6 listen ....................................................................................................................... 29
9.2.3.7 accept ..................................................................................................................... 29
9.2.3.8 send ........................................................................................................................ 30
9.2.3.9 sendto ..................................................................................................................... 30
9.2.3.10 recv / recvfrom ........................................................................................................ 31
9.2.3.11 close ....................................................................................................................... 31
9.2.3.12 setsockopt ..............................................................................................................31
9.2.3.13 gethostbyname ....................................................................................................... 31
9.2.4 Summary ................................................................................................................................ 32
9.3 Socket Connection Flow .................................................................................................................. 33
9.3.1 TCP Client Operation .............................................................................................................34
9.3.2 TCP Server Operati on ............................................................................................................ 35
9.3.3 UDP Client Operation ............................................................................................................. 36
9.3.4 UDP Server Operation ............................................................................................................ 37
9.3.5 DNS Host Name Resolution ................................................................................................... 38
9.4 Example Code ................................................................................................................................. 39
9.4.1 TCP Client Example Code ...................................................................................................... 39
9.4.2 TCP Server Example Code .................................................................................................... 40
9.4.3 UDP Client Example Code ..................................................................................................... 42
9.4.4 UDP Server Example Code .................................................................................................... 43
ATWINC3400 Wi-Fi/BLE Network Controller Software Design Guide [USER GUIDE]
Atmel- -ATWINC3400-WiFi-BLE-Network-Controller-Software-Design-Guide_UserGuide 42016 42566A _0
7
1 Icon Key Identiers
Delivers contextual information about a specific topic.
Highlights useful tips and techniques.
Highlights objectives to be completed.
Highlights the expected result of an assignment step.
Indicates important information.
2 Glossary
BSD Berkeley Software Distribution
BSP Board Support Package
HIF Host Interface Layer
IoT Internet of Things
OTA Over The Air
OTP One Time Programmable
TLS Transport Layer Security
WINC Wi-Fi Network Controller
3 References
[R01] . Atmel-42640-Getting-Started-Guide-for-ATWINC3400WiFi-using-SAMD21-Xplained-Pro_UserGuide
[R02] Atmel-42639-Software-Programming-Guide-for-ATWINC3400-WiFi-using-SAMD21-Xplained-
Pro_UserGuide.
[R03] Atmel-42535-ATWINC3400-MR210-IEEE80211bgn-Link-Ctlr-with-Integrated-Low-Energy-
Bluetooth40_Datasheet
[R04] Atmel-42683-ATWINC3400-BLE-WiFi-Scan- -Connect-Services-Guide_UserGuideand
ATWINC3400 Wi-Fi/BLE Network Controller Software Design Guide [USER GUIDE]
Atmel- -ATWINC3400-WiFi-BLE-Network-Controller-Software-Design-Guide_UserGuide 42016 42566A _0
10
5 WINC System Architecture
Figure 5-1 shows the WINC system architecture. The Soc contains two 32-bit CPUs APS3S-Cortus for Wi-: an
Fi and an APS3-Cortus for BLE. In addition it has separate built-in Wi-Fi IEEE-802.11 and BLE 4.0 physical
layers sharing a single nal RF front end. The firmware for Wi-Fi comprises the Wi-Fi IEEE-802.11 MAC layer
and embedded protocol stacks which ooad the host MCU. The firmware for BLE implements the entrie BLE
stack and privides an application supporting a prole defined for device provisioning. The components of the
system are described in the following sub-sections.
Figure 5- WINC System Architecture 1.
WINC3400 SOC
APS3S-Cortus
Power
Management
IEEE 802.11 MAC
WINC RTOS
Memory
Manager
WINC Host Interface
WINC IoT Library
WINC TCP/IP Stack
Transport
Layer Security
(TLS)
Wi-Fi
Protected
Setup (WPS)
Radio
Coexistence
DHCP
Client/
Server
DNS
Resolver SNTP SSL
Manager
Crypto Library
BUS Interface
I2
CSPI Master/Slave
IEEE 802.11 MAC HW
IEEE 802.11 PHY Shared PKT
Memory
Program
Memory
Data
Memory
SPI FLASH
APS3-Cortus
Power
Management
Bluetooth V4.1 MAC Memory
Manager
WINC BLE Library
AT Bluetooth SmartConnect
Stack: SAP, SMT, ATT, GATT,
L2CAP
Wi-Fi cross
comms
BLE cross
comms
Shared Radio
Bluetooth V4.1 MAC HW
Bluetooth V4.1 PHY
Shared PKT
Memory
Program
Memory
Data
Memory
Corus - Cortus
Radio
Coexistence
Provisioning
App support
5.1 Bus Interface
Hardware logic for the supported bus types for WINC communications.
ATWINC3400 Wi-Fi/BLE Network Controller Software Design Guide [USER GUIDE]
Atmel- -ATWINC3400-WiFi-BLE-Network-Controller-Software-Design-Guide_UserGuide 42016 42566A _0
12
5.10 Bluetooth V2.1 MAC Firmware
The BLE subsystem implements all the critical real-time functions required for full compliance with Specication
of the Bluetooth System, v4.1, Bluetooth SIG. The rmware implements an integrated Bluetooth Low Energy
stack which is Bluetooth V4.1 compliant. The rmware supports access to the GAP, SMP, ATT, GATT client /
server and L2CAP service layer protocols. In the WINC3400 these services are used by a built-in AT
application for WI-Fi provisioning.
5.11 Memory Managers
The memory managers on both the Wi-Fi and BLE sides are responsible for the allocation and de-allocation of
memory chunks in both shared packet memory and data memory.
5.12 Power Managements
The Power Management modules on both the Wi-Fi and BLE sides are responsible for handling dierent power
saving modes supported by the WINC and coordinating these modes with the Wi-Fi and BLE transceiver. AT
5.13 WINC RTOS AT
The rmware includes a low-footprint real-time scheduler which allows concurrent multi-tasking on WINC AT
Wi-Fi CPU. The WINC RTOS provides semaphores and timer functionality. AT

Termékspecifikációk

Márka: Microchip
Kategória: nincs kategorizálva
Modell: ATWINC3400-IC

Szüksége van segítségre?

Ha segítségre van szüksége Microchip ATWINC3400-IC, tegyen fel kérdést alább, és más felhasználók válaszolnak Önnek




Útmutatók nincs kategorizálva Microchip

Útmutatók nincs kategorizálva

Legújabb útmutatók nincs kategorizálva

MOZA

MOZA SR-P Útmutató

10 Április 2025
CaterChef

CaterChef 445001 Útmutató

9 Április 2025
IFM

IFM E40581 Útmutató

9 Április 2025
Livn

Livn Bolt Útmutató

9 Április 2025
Livn

Livn Beats Útmutató

9 Április 2025
IFM

IFM O3R252 Útmutató

9 Április 2025