Slide 1: Ultra-Low Power Wi-Fi Ready2Go with AT Commands
Ultra-Low Power Wi-Fi Ready2Go with AT Commands © 2022 Renesas Electronics Corporation. All rights reserved.
Slide 2: About Renesas
ABOUT RENESAS Global design centres coupled with local sales and expert field application support Headquarters EMEA Tokyo, Japan China Approx. 21,000 employees Americas Operating in 30+ countries Asia (excl. China and Japan) Japan 994.4 billion yen revenue in 2021 1,000 employees* Headquarters Major
Slide 3: Renesas: Long Term Commitment to Wi-Fi Market
RENESAS: LONG TERM COMMITMENT TO WI-FI MARKET • Full range of products in Wi-Fi. Several billion dollars on acquisitions in IoT Connectivity Space Low Power High Data Rate Portable PC/ Router/ Smart Home Wearables TV Phone Electronics Laptops Access Points Dialog Acquisition Celeno Acquisition Low p
Slide 4: Speaker Introduction
SPEAKER INTRODUCTION Ture Nielsen Head of Wi-Fi Marketing EMEA Paolo Scarlata Principal Field Application Engineer Sandeep Mistry Staff Software Engineer © 2022 Renesas Electronics Corporation. All rights reserved. Page 4
Slide 5: Ultra-Low Power Wi-Fi Ready2Go with AT Commands
ULTRA-LOW POWER WI-FI READY2GO WITH AT COMMANDS ▪ What is ultra–Low Power Wi-Fi? ▪ Showcase building blocks to make your Wi-Fi development easy ▪ Live demonstrate Ready2Go examples for your Wi-Fi development. © 2022 Renesas Electronics Corporation. All rights reserved. Page 5
Slide 6: Agenda
AGENDA Renesas - Ultra-Low Power Wi-Fi introduction Renesas - Wi-Fi Ready2Go Renesas – Host MCU AT Command examples ARM Presents – Arduino Sketch with DA16200 Wi-Fi Shield Q&A and Quiz © 2022 Renesas Electronics Corporation. All rights reserved. Page 6
Slide 7: Introduction - DA16200 Block Diagram
INTRODUCTION - DA16200 BLOCK DIAGRAM ▪ Fully integrated Wi-Fi system on an SoC ▪ ARM® Cortex®-M4 Wi-Fi SOC @160MHz ▪ 802.11 b/g/n 1x1 2.4 GHz ▪ All full front-end included − Wi-Fi BB/MAC/RF PA, LNA, RF switch ▪ CPU, SRAM, ROM, OTP ▪ Dedicated HW encryption security block ▪ Extensive I/O ▪ Low extern
Slide 8: Introduction: Lowest Power Wi-Fi SoC in Industry
INTRODUCTION: LOWEST POWER WI-FI SOC IN INDUSTRY Lowest Power Wi-Fi SoC in industry that delivers a multi-year battery life while maintaining industry leading range and security capabilities ▪ Lowest power validated by industry benchmarks Score: 815 (~815 days of battery life on 2 AA alkaline batter
Slide 9: Introduction - DA16200 VirtualZero Sleep Mode
INTRODUCTION - DA16200 VIRTUALZERO™ SLEEP MODE SLEEP MODE Unique sleep modes to optimize power consumption for each IoT application ▪ Virtually no power consumption in sleep state ▪ Validated for 200+ commonly used Legacy Access Points ▪ Has interoperability for both lower current and communication
Slide 10: Introduction - VirtualZero Technology
INTRODUCTION - VIRTUALZERO™ TECHNOLOGY • Beacon check and Keep Alive (KA) is DA16200 shows the lowest average current supported Sleep period Average Current Consumption • In case of DTIM10, the longest response time is 1 second and average response time is 0.5 1 second sleep seconds 72µA 1) (DTIM10)
Slide 11: Introduction – RF Performance
INTRODUCTION – RF PERFORMANCE For extended range, DA16200 has market leading link budget ▪ +20dBm TX output power Item Normal mode Tx (.11b - 1Mbps) +20.0dBm @ 280mA ▪ -99.5 dBm RX sensitivity Tx (.11n – MCS7) +15.5dBm @ 200mA ▪ 119.5 dB Link Budget Rx Sens (1Mbps) -99.5dBm Long distance checks @ op
Slide 12: Introduction: Industry Leading Security
INTRODUCTION: INDUSTRY LEADING SECURITY DA16200 Secures PSA Certified Level 1 to ensure security of IoT devices (press release) © 2022 Renesas Electronics Corporation. All rights reserved. Page 12
Slide 13: Agenda
AGENDA Renesas - Ultra-Low Power Wi-Fi introduction Renesas - Wi-Fi Ready2Go Renesas – Host MCU AT Command examples ARM presents – Arduino Sketch with DA16200 Wi-Fi Shield Q&A and Quiz © 2022 Renesas Electronics Corporation. All rights reserved. Page 13
Slide 14: Renesas Wi-Fi Ready2Go
RENESAS WI-FI READY2GO ▪ Modern day design dilemma ▪ Complex applications − Complex and powerful MCUs − Requirements for multiple communication interfaces − Cloud data management ▪ Competitive market − Product needs to stand out from competition − Fast to market is essential © 2022 Renesas Electroni
Slide 15: Renesas Wi-Fi Ready2Go
RENESAS WI-FI READY2GO ▪ Fast prototyping is essential ▪ Reduce development time and effort from first idea through concept and development phase to until production ▪ HW – plug and play shields available for concept design ▪ SW – Reference examples to reuse for concept design ▪ Minimize time consum
Slide 16: Renesas Wi-Fi Ready2Go - DA16200MOD
RENESAS WI-FI READY2GO - DA16200MOD LOW POWER WI-FI MODULE ▪ The fully integrated module consists of: ▪ DA16200 SoC ▪ 32Mbit (4MB) FLASH onboard ▪ Two XTAL integrated; 40MHz / 32.768KHz ▪ DA16200 module SKUs Optional Host Device ▪ DA16200MOD-AAC4WA32: with on board chip antenna depending on applicat
Slide 17: Renesas Wi-Fi Ready2Go - AT Commands
RENESAS WI-FI READY2GO - AT COMMANDS Making Ultra Low Power Wi-Fi development easy • Fast and easy development • Limited the SW development • No Wi-Fi Stack knowledge needed • Supports the fully Certified modules DA16200/DA16600 • Comprehensive example and use cases included UART or SPI © 2022 Renes
Slide 18: Renesas Wi-Fi Ready2Go – Fully Featured
RENESAS WI-FI READY2GO – FULLY FEATURED AT Commands with DA16200/DA16600 • All features supported over AT Command • All low power modes • Wi-Fi Provisioning • Support of network protocols for communication • TCP/UDP • HTTP • MQTT Commands • Sleep Commands • Firmware update Over The Air Commands (OTA
Slide 19: Renesas Wi-Fi Ready2Go – 3rd Party Shield
RENESAS WI-FI READY2GO – 3RD PARTY SHIELD Out of the box AT Command support • All features supported over AT Command • All low power modes • Wi-Fi Provisioning • mikroBUS™ Clik board • Arduino UNO R3 Shield • DA16200 – PMOD © 2022 Renesas Electronics Corporation. All rights reserved.
Slide 20: Renesas Wi-Fi Ready2Go – Fast Prototyping
RENESAS WI-FI READY2GO – FAST PROTOTYPING ▪ Quick - Connect IoT ▪ Wi-Fi enabled Cloud IoT Solution ▪ Available today ▪ RA MCU – Ready2Go Wi-Fi examples ▪ AT Command examples for DA16200 ▪ Easy to import examples for Arm based RA MCU ▪ 4 examples released today and more will come ▪ Available today ©
Slide 21: Agenda
AGENDA Renesas - Ultra-Low Power Wi-Fi introduction Renesas - Wi-Fi Ready2Go Renesas – Host MCU AT Command examples ARM presents – Arduino Sketch with DA16200 Wi-Fi Shield Q&A and Quiz © 2022 Renesas Electronics Corporation. All rights reserved. Page 21
Slide 22: Hands-On Workshop Introduction
HANDS-ON WORKSHOP INTRODUCTION © 2022 Renesas Electronics Corporation. All rights reserved. Page 22
Slide 23: Renesas Quick-Connect IoT Platform: Dialog Connectivity Adds New Dimension
RENESAS QUICK-CONNECT IOT PLATFORM: DIALOG CONNECTIVITY ADDS NEW DIMENSION Complete IoT system with ZMOD Air Quality The Power of Dialog Connectivity Renesas Analog + Power + Sensors ▪ Dialog connectivity options Embedded processing solutions ▪ Bluetooth Low Energy HS3001 ▪ Wi-Fi DA14531MOD BLE ▪ Ou
Slide 24: Renesas Quick-Connect IoT Platform
RENESAS QUICK-CONNECT IOT PLATFORM IDE OVERVIEW You need to install first our Flexible Software Package (FSP): ▪ FSP is an enhanced software package designed to provide easy-to-use, scalable, high-quality software for embedded system designs using Renesas RA Family of Arm Microcontrollers. Note: FSP
Slide 25: Renesas Wi-Fi Ready2Go – Wi-Fi Examples
RENESAS WI-FI READY2GO – WI-FI EXAMPLES DA16200 Wi-Fi AT Command Set | Dialog (dialog-semiconductor.com) Ready2Go Wi-Fi examples released today: ▪ Simple MQTT Client example (Button press) ▪ MQTT Client Air Quality example ▪ HTTP Client example ▪ Wi-Fi Enabled Cloud IoT solution kit © 2022 Renesas E
Slide 26: Web Server Example
WEB SERVER EXAMPLE © 2022 Renesas Electronics Corporation. All rights reserved. Page 26
Slide 27: Web Server Example
WEB SERVER EXAMPLE ▪ Hardware and software used in the example ▪ Example features ▪ AT CMD sequence to setup DA16200 wifi as Soft AP ▪ AT CMD exchange to refresh web page ▪ Live demo © 2022 Renesas Electronics Corporation. All rights reserved. Page 27
Slide 28: Hardware and Software Used in the Demo
HARDWARE AND SOFWTARE USED IN THE DEMO Hardware ▪ EK-RA6M4 ▪ DA16200 PMOD (US159-DA16200MEVZ) ▪ HS3001 PMOD (US082-HS3001EVZ) ▪ EU065-ARDUINO SHIELD SENSOR BOARD ▪ An USB-to-UART bridge to monitor UART0 (console) and UART1 (AT-CMD) of DA16200 Software For this demo we will use below project and we w
Slide 29: RA6M4 – High Performance 200-MHz Arm Cortex-M33 Core
RA6M4 – HIGH PERFORMANCE 200-MHz ARM® CORTEX® - M33 CORE FOR IOT ENDPOINTS SUCH AS WHITE GOODS, METERS, AND OTHER INDUSTRIAL AND CONSUMER High Performance ▪ 200MHz Arm® Cortex®-M33 CPU Highly integrated capabilities ▪ 512KB-1MB Flash Memory and 256KB SRAM ▪ 12-Bit ADC (x2),12-Bit DAC(x2) ▪ GPT 32-BI
Slide 30: EU065 Arduino Shield Sensor Board
EU065 ARDUINO SHIELD SENSOR BOARD System Overview: Renesas has a wealth of sensors; however, to use these in a sensible environment, a control MCU is needed as well as an output medium. To enable the sensors to be tested/connected to different MCU families, a common electrical and mechanically stabl
Slide 31: DA16200 – Wi-Fi Module for IoT Applications
DA16200 – WI-FI MODULE FOR IOT APPLICATIONS LOWEST POWER WI-FI MODULE IN THE INDUSTRY Ultra Low Power ▪ The module solution for IoT applications featuring lowest power Wi-Fi (DA16200) platform in the industry Fully Integrated ▪ DA16200 (Wi-Fi) ultra low power SoC ▪ Wi-Fi Specs: IEEE 802.11b/g/n, 1x1
Slide 32: Example Features
EXAMPLE FEATURES ▪ Measure values including temperature and humidity of HS3001, how many time S1 key on EK-RA6M4 has been pressed, and display these on web (the web page will have a different colors if S1 pressed time is even or odd) ▪ Initialize and control Wi-Fi module DA16200 by AT command to rea
Slide 33: AT CMD Sequence to Setup DA16200 WiFi as Soft AP
AT CMD SEQUENCE TO SETUP DA16200 WIFI AS SOFT AP Initialize AT command Set the Wi-Fi mode to 1 (Soft-AP) Set country code to IT Set up Soft-AP with SSID, WPA2, AES, PW, Ch 1, IT System restart Set the WLAN1(Soft-AP), IP address, Subnet, Gateway Start DHCP server Set an IP address range of the DHCP s
Slide 34: AT CMD Exchange to Refresh Web Page
AT CMD EXCHANGE TO REFRESH WEB PAGE Transmit data A remote TCP client through a socket: is connected to the <ESC>S TCP server that was 0(TCP Server) opened by Length AT+TRTS, followed Remote IP by IP and Port # Remote Port <Data> Receive data through TCP server socket, IP, Port, Length, <Data> Data
Slide 35: Live Demo
LIVE DEMO © 2022 Renesas Electronics Corporation. All rights reserved. Page 35
Slide 36: SmartCTherm Example
SMARTCTHERMO EXAMPLE © 2022 Renesas Electronics Corporation. All rights reserved. Page 36
Slide 37: SmartCTherm Example
SMARTCTHERMO EXAMPLE ▪ Hardware and software used in the example ▪ Example features ▪ AT CMD sequence to setup DA16200 wifi as MQTT client ▪ AT CMD exchange to publish a message with sensors data ▪ Live demo © 2022 Renesas Electronics Corporation. All rights reserved. Page 37
Slide 38: Hardware and Software Used in the Demo
HARDWARE AND SOFWTARE USED IN THE DEMO Hardware ▪ EK-RA6M3G − Evaluation Kit for RA6M3 MCU Group with Graphics Expansion Boards ▪ SparkFun Qwiic WiFi Shield with DA16200MOD ▪ HS3001 PMOD (US082-HS3001EVZ) ▪ ZMOD4410 PMOD (US082-ZMOD4410EVZ) ▪ Interposer Board for Pmod™ Type 2A/3A to 6A (US082-INTERP
Slide 39: RA6M3 – Ultra-Low Power 120-MHz Arm Cortex-M4 Core
RA6M3 – ULTRA-LOW POWER 120-MHz ARM® CORTEX ®- M4 CORE FOR APPLICATIONS NEEDING HMI/CONTROL/ SECURITY/GRAPHICAL AND CAPACITIVE TOUCH High Performance ▪ 120MHz Arm® Cortex®-M4 CPU Highly integrated capabilities ▪ 1MB-2MB Flash Memory and 640kB SRAM ▪ 128-bit unique ID ▪ 12-Bit ADC (x2) ▪ 12-Bit DAC C
Slide 40: Renesas Quick-Connect IoT Platform: Third Party DA16200 Shields
RENESAS QUICK-CONNECT IOT PLATFORM THIRD PARTY DA16200 SHIELDS: SPARKFUN ARDUINO WIFI SHIELD DA16200 Connection to the DA16200MOD ▪ UART to GPIOA4/5 (UART1) ▪ SPI to GPIOA0/1/2/3 (SPI1) ▪ I2C to GPIOA8/9 ▪ PWR_KEY signal ▪ WAKE_UP pin to wake-up DA16200 ▪ INT pin (GPIOA11) to wake-up host ▪ Factory
Slide 41: HS300x – Relative Humidity and Temperature Sensor
HS300X – RELATIVE HUMIDITY AND TEMPERATURE SENSOR HIGH ACCURACY HUMIDITY AND TEMPERATURE MEASUREMENT FOR ENVIRONMENTAL MONITORING High Accuracy VDD ▪ ±1.5%RH accuracy (HS3001) RP RP ▪ ±0.2°C temperature accuracy (HS3001, HS3002) 1 SCL VSS 6 Excellent Stability 2 SDA NC 5 ▪ 0.1%RH per year drift ▪ ME
Slide 42: ZMOD4410 – Indoor Air Quality Sensor Platform
ZMOD4410 – INDOOR AIR QUALITY SENSOR PLATFORM TVOC SENSOR FOR INDOOR AIR QUALITY APPLICATION Flexible Measure Target: ▪ Measurement of total organic compounds (TVOC) ▪ Concentrations and indoor air quality (IAQ) ▪ Module algorithm estimates carbon dioxide level (eCO2) ▪ Algorithm to set a control si
Slide 43: Example Features
EXAMPLE FEATURES SmartCTherm is a smart IoT sensor node solution that can monitor indoor climate conditions, including temperature, humidity, indoor air quality, and the presence of Total Volatile Organic Compounds (TVOC), and send the collected data to the Cloud. It is designed around the following
Slide 44: AT CMD Sequence to Set Cloud 1/2
AT CMD SEQUENCE TO SET CLOUD 1/2 Initialize AT command Set the Wi-Fi mode to 0 (Station) Check if it’s already connected to the AP Check RSSI Not connected: Send SSID and Password Check if connections is successful and get IP address Check RSSI Close all opened sockets Ask for IP address of the “wor
Slide 45: AT CMD Sequence to Set Cloud 2/2
AT CMD SEQUENCE TO SET CLOUD 2/2 Set the IP address and the port number of the MQTT Broker Set the MQTT QoS level - 0 (at most once) MQTT login information Set the MQTT Client ID Check the result of the MQTT client connection Check if wifi still connected Publish T/H/eCO2 and rsssi to the topic “air
Slide 46: Mosquitto Broker and MQTT Client
MOSQUITTO BROKER AND MQTT CLIENT © 2022 Renesas Electronics Corporation. All rights reserved. Page 47
Slide 47: Live Demo
LIVE DEMO © 2022 Renesas Electronics Corporation. All rights reserved. Page 48
Slide 48: Agenda
AGENDA Renesas - Ultra-Low Power Wi-Fi introduction Renesas - Wi-Fi Ready2Go Renesas – Host MCU AT Command examples ARM presents – Arduino Sketch with DA16200 Wi-Fi Shield Q&A and Quiz © 2022 Renesas Electronics Corporation. All rights reserved. Page 49
Slide 49: Arduino - Ecosystem
Arduino - Ecosystem Open-source electronics prototyping platform Used by millions of makers, hobbyists, artists, students, and engineers worldwide! Supports a broad set of official Arduino hardware and unofficial Arduino compatible hardware from 3rd parties • Hardware: boards and shields There are o
Slide 50: Arm based Arduino boards
Arm based Arduino boards Highlights Arduino Zero released by Arduino team in 2015 • Arm Cortex-M0+ processor running @ 48 MHz SparkFun RedBoard Turbo based on Arduino Zero design • Removed • On-board debugger • Added • RGB LED • LiPo battery connector • On-board external flash • Qwiic connector © 20
Slide 51: DA16200 Wi-Fi Library for Arduino
DA16200 Wi-Fi Library for Arduino Maps the Arduino Wi-Fi API the DA16200’s AT command set © 2022 Arm https://github.com/ArmDeveloperEcosystem/DA16200-WiFi-Library-for-Arduino
Slide 52: DA16200 Wi-Fi Library for Arduino
DA16200 Wi-Fi Library for Arduino Maps the Arduino Wi-Fi API the DA16200’s AT command set Included in the Arduino IDE’s library manager! • Sketch -> Include Libraries -> Manage Libraries … • Then search for “DA16200” Supports the SparkFun WiFi Shield DA16200! © 2022 Arm
Slide 53: DA16200 Wi-Fi Library for Arduino
DA16200 Wi-Fi Library for Arduino Maps the Arduino Wi-Fi API the DA16200’s AT command set © 2022 Arm
Slide 54: DA16200 Wi-Fi Library for Arduino
DA16200 Wi-Fi Library for Arduino Maps the Arduino Wi-Fi API the DA16200’s AT command set Host Board Shield long rssi = WiFi.RSSI(); AT+WFRSSI UART +RSSI:-61 OK // rssi variable now // has value of -61 © 2022 Arm
Slide 55: DA16200 Wi-Fi Library for Arduino
DA16200 Wi-Fi Library for Arduino Maps the Arduino Wi-Fi API the DA16200’s AT command set int32_t WiFiClass::RSSI() { int rssi = 0; if (this->AT("+WFRSSI") == 0 && _extendedResponse.startsWith("+RSSI:")) { sscanf(_extendedResponse.c_str(), "+RSSI:%d", &rssi); } return rssi; } © 2022 Arm
Slide 56: SparkFun Qwiic based Wi-Fi Demo
SparkFun “Qwiic” based Wi-Fi Demo Digital Twin RGB LED’s WebSockets Web Browser Wi-Fi + + MQTT TCP/IP + + Proximity Sensor JSON MQTT MQTT + Broker JSON I2C • Proximity sensor is used to control LED brightness • Browser controls LED color © 2022 Arm
Slide 57: SparkFun Qwiic based Wi-Fi Live Demo
SparkFun “Qwiic” based Wi-Fi Live Demo Backup Code © 2022 Arm
Slide 58: SparkFun Qwiic based Wi-Fi Live Demo
SparkFun “Qwiic” based Wi-Fi Live Demo Backup video © 2022 Arm
Slide 59: SparkFun Qwiic based Wi-Fi Demo
SparkFun “Qwiic” based Wi-Fi Demo Code highlights - Arduino Libraries used #include <Wire.h> // Official Arduino I2C library #include <Arduino_JSON.h> // Official Arduino JSON library #include <ArduinoMqttClient.h> // Official Arduino MQTT Client library #include <Qwiic_LED_Stick.h> // SparkFun LED
Slide 60: SparkFun Qwiic based Wi-Fi Demo
SparkFun “Qwiic” based Wi-Fi Demo Code highlights LED ledStick; // Used to control LED stick VCNL4040 proximitySensor; // Used for proximity sensor WiFiClient wifiClient; // Used for TCP client (via DA16200 AT commands) MqttClient mqttClient(wifiClient); // Used for MQTT client // ... ledStick.setLE
Slide 61: Recap
Recap Arm based Arduino compatible boards from SparkFun can be used with the Arduino IDE • This allows you to tap into broad set of open-source libraries from Arduino, SparkFun, and others • SparkFun has many Qwiic connector based sensors and actuators with accompanying libraries SparkFun WiFi Shiel
Slide 62: Renesas.com
Renesas.com © 2022 Renesas Electronics Corporation. All rights reserved.