WELCOME SD HARDWARE HACKERS SIG - … · WELCOME SD HARDWARE HACKERS SIG. ... Bandwidth Capacity...

43
Founder/ Host: Don Seidenspinner President, Spincraft Engineering www.Spincraft.com WELCOME SD HARDWARE HACKERS SIG

Transcript of WELCOME SD HARDWARE HACKERS SIG - … · WELCOME SD HARDWARE HACKERS SIG. ... Bandwidth Capacity...

Founder/ Host: Don SeidenspinnerPresident, Spincraft Engineering

www.Spincraft.com

WELCOMESD HARDWARE HACKERS SIG

AGENDA• Intro• Opportunities & Announcements• Wireless Working group• WINC1500 Project• Our Website Update

– Forums - Harmony Remote by Hakan– Technologies - MicroSD reformat– Group Projects - Car-Puter Project Start-up

• B4UGO• Rough Draft Brew – Non-hosted after-event

By Don SeidenspinnerPresident, Spincraft Engineering

www.Spincraft.com

WIFI PROVISIONINGFOR IOT

PROVISIONING CHALLENGES

Ethernet is reaching ever faster speeds for Data Throughput, Bandwidth Capacity and IP Connectivity.

IoT Traffic is steadily Increasing with the Increasing # of Stations But Intermittent with Throughput and Connectivity.

TCP/IP is a Power Hungry and Sophisticated Protocol.

O S I MODELThe Open Systems Interconnection model (OSI model)

The OSI model takes the task of internetworking and divides that up into what is referred to as a vertical stack that consists of the following 7 layers.

OSI MODEL DIAGRAM

Atmel WINC1500-XSTK Xplained Pro starter kit

Based on Atmel SAMD21WINC1500 Xplained Pro Extension board I/O1 Xplained Pro Extension board withTemperature sensor and MicroSD memory card

OUR WIFI PROJECT

Android basic phone, version 4.1.1 JellyBean

SAMD21 XPLAINED PRO

SAMD21 XPLAINED PRO WITH WING BOARDS

Atmel Studio 7 is the integrated development platform (IDP) for developing and debugging Atmel ARM® Cortex™-M processor-based and Atmel AVR® microcontroller applications. It is based on MS Visual Studio.

WINC1500 Wi-Fi module –The WINC1500 provides a single chip solution for internet connectivity, Insulated with a protective shield.

SPI signals – The four wire SPI lines are used SS, MISO, MOSI and SCK (respectively PA05, PA04, PA06 and PA07).

IRQN – A GPIO line (PB04) is used by the Network Controller to signal the Host MCU that data are available.

CHIP_EN and RESET_N – There are two input GPIOs (PB06 and PB05) used by the host MCU to power up and down the WINC1500 chip.

Current Measurement Jumper J10 – By removing this jumper, the 1 Ohm resistor becomes in series with the WINC1500 module. The voltage drop on the resistor will indicate the current through the resistor, hence the power consumption can be measured.

Atmel WINC1500 module features

The Atmel WINC1500 module runs Atmel firmware which provides IEEE 802.11 a/b/g/n MAC functionality. It provides support for the following features: A.) Wi-Fi STA (station) mode:- IEEE 802.11 b/g/n.- OPEN, WEP security.- WPA Personal Security (WPA1/WPA2).- WPA Enterprise Security (WPA1/WPA2) supporting EAP-TTLS/MS-Chap. v2.0 authentication with RADIUS server.B.) cont’d next slide

Wi-Fi AP (Access Point) mode:- Only one associated station is supported. After a connection is established with a station, further connections are rejected.- OPEN and WEP security modes. - STA/AP concurrency is not supported.

Wi-Fi Direct (P2P) mode:- Only operates as a Wi-Fi Direct device (GROUP Owner functionality is not supported).- STA/P2P concurrency is not supported.

Wi-Fi Protected Setup:- WPS protocol v2.0 for PBC (Push button configuration) and PIN methods.

Transport Layer Security TLS/SSL:- TLS protocol version 1.0.- Client operation only.- RSA is the only supported public key algorithm. - AES is the only supported encryption algorithm. The supported cipher suite include: TLS_RSA_WITH_AES_128_CBC_SHATLS_RSA_WITH_AES_256_CBC_SHATLS_RSA_WITH_AES_128_CBC_SHA256TLS_RSA_WITH_AES_256_CBC_SHA256

Network protocols:- DHCPv4 (client/server)- DNS Resolver

Power saving modes for Wi-Fi STA mode.

WINC1500 embedded firmware The WINC1500 firmware includes a Host Interface Layer, running on top of a set of components, including a real-time operating system (RTOS), a light-weight network stack, middleware services and a MAC control driver.

NON-MASKABLEINTERRUPTOPERATINGSYSTEM

The WINC1500 can interface a Host MCU using a serial interface allowing a Host MCU application with limited memory and CPU capabilities to access a wide range of connectivity features from peer-to-peer connections, LAN communication and communication with cloud servers.

} WINC1500 Host driver API

Binary message

} Embedded WINC1500 firmware

The WINC1500 firmware exchanges binary messages with Host MCU application via I2C/SPI interface. The firmware encapsulates several types of Host Interface (HIF) messages such as device-specific initialization,WLAN configuration (scan, connection, disconnection) and network traffic using a BSD like socket interface (socket(), close(), bind(), listen(), accept(), send(), sendto(), recv(), recvfrom()).

The WINC1500 HIF uses a “push” architecture, where data and events are pushed from WINC1500 firmware to the Host MCU in First-come, First-Served manner (FCFS). The WINC1500 firmware will interrupt the Host MCU using a dedicated GPIO line whenever one or more events occur.

WINC1500 Firmware driver allows the following configurations:

No Operating System configuration – The Host MCU application main loop is responsible for updating the WINC host driver state machine by calling a specific function to handle pending events and callbacks.

Operating System configuration – A dedicated task can be implemented to handle deferred work from the interrupt handler by calling a specific function to handle pending events and callbacks.

The Firmware driver entry point and event handler is non-reentrant.

In the O/S configuration, it is required to protect the firmware driver from reentrance by a synchronization object.

The Host MCU application should be based on a state machine which processes received data and events from the WINC1500 module. The WINC1500 Host Driver requires the following software components to run on the Host MCU beside the application code: ASF Board Support Package (BSP) – with a Host MCU serial I2C/SPI bus driver and interrupt logic for WINC1500 module. WINC1500 Controller driver – which handles the communication with the WINC1500 chip via HIF messages. It also provides a C API interface to Host Application.

Begin DEMO

Upgrading WINC1500 Firmware Before starting the development of our Wi-Fi sensor node application, it is important to upgrade the firmware on the WINC1500 to benefit from the new features and bug fixes from latest WINC1500 firmware version.

SUCCESSFUL firmware download : The following message will be displayed in the Command window.

Install Atmel IoT sensor Android application.

Locate the “Download” folder, then simply drag and drop the provided “Atmel_IOT_Sensor_v2.0.8.apk” program

Open browser and type url;Atmelconfig.com

SSID = HackPassPhrase = 123

LOGIN CREDENTIALS

Start up Atmel Studio IoT projectOpen TeraTerm serial monitorPress Start Debugging

WEBSITE UPDATEGlen JohnsonSys-admin

Reformatting a MicroSD card

Technologies section

Windows 10 IoT Workshop

Windows 10 IoT Core on Raspberry Pi 2SDSU Engineering Embedded Lab.Learn how to run Windows 10 IoT Core on a Raspberry Pi 2 and connect it to the cloud using Azure

CAR-PUTER PROJECT

Start-up ProjectExample of how to get startedMisc. List of Features

B4UGOROUGH DRAFT After meeting event