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

WELCOME SD HARDWARE HACKERS SIG - … · WELCOME SD HARDWARE HACKERS SIG. ... Bandwidth Capacity and IP Connectivity. IoT Traffic is steadily Increasing with the ... - Only one …

Sep 08, 2018

Download

Documents

nguyenlien
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: WELCOME SD HARDWARE HACKERS SIG - … · WELCOME SD HARDWARE HACKERS SIG. ... Bandwidth Capacity and IP Connectivity. IoT Traffic is steadily Increasing with the ... - Only one …

Founder/ Host: Don SeidenspinnerPresident, Spincraft Engineering

www.Spincraft.com

WELCOMESD HARDWARE HACKERS SIG

Page 2: WELCOME SD HARDWARE HACKERS SIG - … · WELCOME SD HARDWARE HACKERS SIG. ... Bandwidth Capacity and IP Connectivity. IoT Traffic is steadily Increasing with the ... - Only one …

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

Page 3: WELCOME SD HARDWARE HACKERS SIG - … · WELCOME SD HARDWARE HACKERS SIG. ... Bandwidth Capacity and IP Connectivity. IoT Traffic is steadily Increasing with the ... - Only one …

By Don SeidenspinnerPresident, Spincraft Engineering

www.Spincraft.com

WIFI PROVISIONINGFOR IOT

Page 4: WELCOME SD HARDWARE HACKERS SIG - … · WELCOME SD HARDWARE HACKERS SIG. ... Bandwidth Capacity and IP Connectivity. IoT Traffic is steadily Increasing with the ... - Only one …

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.

Page 5: WELCOME SD HARDWARE HACKERS SIG - … · WELCOME SD HARDWARE HACKERS SIG. ... Bandwidth Capacity and IP Connectivity. IoT Traffic is steadily Increasing with the ... - Only one …

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.

Page 6: WELCOME SD HARDWARE HACKERS SIG - … · WELCOME SD HARDWARE HACKERS SIG. ... Bandwidth Capacity and IP Connectivity. IoT Traffic is steadily Increasing with the ... - Only one …

OSI MODEL DIAGRAM

Page 7: WELCOME SD HARDWARE HACKERS SIG - … · WELCOME SD HARDWARE HACKERS SIG. ... Bandwidth Capacity and IP Connectivity. IoT Traffic is steadily Increasing with the ... - Only one …
Page 8: WELCOME SD HARDWARE HACKERS SIG - … · WELCOME SD HARDWARE HACKERS SIG. ... Bandwidth Capacity and IP Connectivity. IoT Traffic is steadily Increasing with the ... - Only one …

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

Page 9: WELCOME SD HARDWARE HACKERS SIG - … · WELCOME SD HARDWARE HACKERS SIG. ... Bandwidth Capacity and IP Connectivity. IoT Traffic is steadily Increasing with the ... - Only one …

SAMD21 XPLAINED PRO

Page 10: WELCOME SD HARDWARE HACKERS SIG - … · WELCOME SD HARDWARE HACKERS SIG. ... Bandwidth Capacity and IP Connectivity. IoT Traffic is steadily Increasing with the ... - Only one …

SAMD21 XPLAINED PRO WITH WING BOARDS

Page 11: WELCOME SD HARDWARE HACKERS SIG - … · WELCOME SD HARDWARE HACKERS SIG. ... Bandwidth Capacity and IP Connectivity. IoT Traffic is steadily Increasing with the ... - Only one …

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.

Page 12: WELCOME SD HARDWARE HACKERS SIG - … · WELCOME SD HARDWARE HACKERS SIG. ... Bandwidth Capacity and IP Connectivity. IoT Traffic is steadily Increasing with the ... - Only one …

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

Page 13: WELCOME SD HARDWARE HACKERS SIG - … · WELCOME SD HARDWARE HACKERS SIG. ... Bandwidth Capacity and IP Connectivity. IoT Traffic is steadily Increasing with the ... - Only one …

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

Page 14: WELCOME SD HARDWARE HACKERS SIG - … · WELCOME SD HARDWARE HACKERS SIG. ... Bandwidth Capacity and IP Connectivity. IoT Traffic is steadily Increasing with the ... - Only one …

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.

Page 15: WELCOME SD HARDWARE HACKERS SIG - … · WELCOME SD HARDWARE HACKERS SIG. ... Bandwidth Capacity and IP Connectivity. IoT Traffic is steadily Increasing with the ... - Only one …

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

Page 16: WELCOME SD HARDWARE HACKERS SIG - … · WELCOME SD HARDWARE HACKERS SIG. ... Bandwidth Capacity and IP Connectivity. IoT Traffic is steadily Increasing with the ... - Only one …

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.

Page 17: WELCOME SD HARDWARE HACKERS SIG - … · WELCOME SD HARDWARE HACKERS SIG. ... Bandwidth Capacity and IP Connectivity. IoT Traffic is steadily Increasing with the ... - Only one …

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.

Page 18: WELCOME SD HARDWARE HACKERS SIG - … · WELCOME SD HARDWARE HACKERS SIG. ... Bandwidth Capacity and IP Connectivity. IoT Traffic is steadily Increasing with the ... - Only one …

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

Page 19: WELCOME SD HARDWARE HACKERS SIG - … · WELCOME SD HARDWARE HACKERS SIG. ... Bandwidth Capacity and IP Connectivity. IoT Traffic is steadily Increasing with the ... - Only one …

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

Page 20: WELCOME SD HARDWARE HACKERS SIG - … · WELCOME SD HARDWARE HACKERS SIG. ... Bandwidth Capacity and IP Connectivity. IoT Traffic is steadily Increasing with the ... - Only one …

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

Power saving modes for Wi-Fi STA mode.

Page 21: WELCOME SD HARDWARE HACKERS SIG - … · WELCOME SD HARDWARE HACKERS SIG. ... Bandwidth Capacity and IP Connectivity. IoT Traffic is steadily Increasing with the ... - Only one …

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

Page 22: WELCOME SD HARDWARE HACKERS SIG - … · WELCOME SD HARDWARE HACKERS SIG. ... Bandwidth Capacity and IP Connectivity. IoT Traffic is steadily Increasing with the ... - Only one …

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

Page 23: WELCOME SD HARDWARE HACKERS SIG - … · WELCOME SD HARDWARE HACKERS SIG. ... Bandwidth Capacity and IP Connectivity. IoT Traffic is steadily Increasing with the ... - Only one …

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()).

Page 24: WELCOME SD HARDWARE HACKERS SIG - … · WELCOME SD HARDWARE HACKERS SIG. ... Bandwidth Capacity and IP Connectivity. IoT Traffic is steadily Increasing with the ... - Only one …

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.

Page 25: WELCOME SD HARDWARE HACKERS SIG - … · WELCOME SD HARDWARE HACKERS SIG. ... Bandwidth Capacity and IP Connectivity. IoT Traffic is steadily Increasing with the ... - Only one …

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.

Page 26: WELCOME SD HARDWARE HACKERS SIG - … · WELCOME SD HARDWARE HACKERS SIG. ... Bandwidth Capacity and IP Connectivity. IoT Traffic is steadily Increasing with the ... - Only one …

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.

Page 27: WELCOME SD HARDWARE HACKERS SIG - … · WELCOME SD HARDWARE HACKERS SIG. ... Bandwidth Capacity and IP Connectivity. IoT Traffic is steadily Increasing with the ... - Only one …

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.

Page 28: WELCOME SD HARDWARE HACKERS SIG - … · WELCOME SD HARDWARE HACKERS SIG. ... Bandwidth Capacity and IP Connectivity. IoT Traffic is steadily Increasing with the ... - Only one …

Begin DEMO

Page 29: WELCOME SD HARDWARE HACKERS SIG - … · WELCOME SD HARDWARE HACKERS SIG. ... Bandwidth Capacity and IP Connectivity. IoT Traffic is steadily Increasing with the ... - Only one …

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.

Page 30: WELCOME SD HARDWARE HACKERS SIG - … · WELCOME SD HARDWARE HACKERS SIG. ... Bandwidth Capacity and IP Connectivity. IoT Traffic is steadily Increasing with the ... - Only one …
Page 31: WELCOME SD HARDWARE HACKERS SIG - … · WELCOME SD HARDWARE HACKERS SIG. ... Bandwidth Capacity and IP Connectivity. IoT Traffic is steadily Increasing with the ... - Only one …

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

Page 32: WELCOME SD HARDWARE HACKERS SIG - … · WELCOME SD HARDWARE HACKERS SIG. ... Bandwidth Capacity and IP Connectivity. IoT Traffic is steadily Increasing with the ... - Only one …

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

Page 33: WELCOME SD HARDWARE HACKERS SIG - … · WELCOME SD HARDWARE HACKERS SIG. ... Bandwidth Capacity and IP Connectivity. IoT Traffic is steadily Increasing with the ... - Only one …
Page 34: WELCOME SD HARDWARE HACKERS SIG - … · WELCOME SD HARDWARE HACKERS SIG. ... Bandwidth Capacity and IP Connectivity. IoT Traffic is steadily Increasing with the ... - Only one …
Page 35: WELCOME SD HARDWARE HACKERS SIG - … · WELCOME SD HARDWARE HACKERS SIG. ... Bandwidth Capacity and IP Connectivity. IoT Traffic is steadily Increasing with the ... - Only one …

Open browser and type url;Atmelconfig.com

Page 36: WELCOME SD HARDWARE HACKERS SIG - … · WELCOME SD HARDWARE HACKERS SIG. ... Bandwidth Capacity and IP Connectivity. IoT Traffic is steadily Increasing with the ... - Only one …
Page 37: WELCOME SD HARDWARE HACKERS SIG - … · WELCOME SD HARDWARE HACKERS SIG. ... Bandwidth Capacity and IP Connectivity. IoT Traffic is steadily Increasing with the ... - Only one …

SSID = HackPassPhrase = 123

LOGIN CREDENTIALS

Page 38: WELCOME SD HARDWARE HACKERS SIG - … · WELCOME SD HARDWARE HACKERS SIG. ... Bandwidth Capacity and IP Connectivity. IoT Traffic is steadily Increasing with the ... - Only one …

Start up Atmel Studio IoT projectOpen TeraTerm serial monitorPress Start Debugging

Page 39: WELCOME SD HARDWARE HACKERS SIG - … · WELCOME SD HARDWARE HACKERS SIG. ... Bandwidth Capacity and IP Connectivity. IoT Traffic is steadily Increasing with the ... - Only one …

WEBSITE UPDATEGlen JohnsonSys-admin

Page 40: WELCOME SD HARDWARE HACKERS SIG - … · WELCOME SD HARDWARE HACKERS SIG. ... Bandwidth Capacity and IP Connectivity. IoT Traffic is steadily Increasing with the ... - Only one …

Reformatting a MicroSD card

Technologies section

Page 41: WELCOME SD HARDWARE HACKERS SIG - … · WELCOME SD HARDWARE HACKERS SIG. ... Bandwidth Capacity and IP Connectivity. IoT Traffic is steadily Increasing with the ... - Only one …

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

Page 42: WELCOME SD HARDWARE HACKERS SIG - … · WELCOME SD HARDWARE HACKERS SIG. ... Bandwidth Capacity and IP Connectivity. IoT Traffic is steadily Increasing with the ... - Only one …

CAR-PUTER PROJECT

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

Page 43: WELCOME SD HARDWARE HACKERS SIG - … · WELCOME SD HARDWARE HACKERS SIG. ... Bandwidth Capacity and IP Connectivity. IoT Traffic is steadily Increasing with the ... - Only one …

B4UGOROUGH DRAFT After meeting event