Advertisement

Quick Links

Getting Started
#Overview
WizFi360-CON
WizFi360 is a low cost and low-power consumption industrial-grade WiFi module. It is compatible with
IEEE802.11 b/g/n standard and supports SoftAP, Station and SoftAP+Station modes. The serial port baud rate can
be up to 2Mbps, which can meet the requirement of various applications.
#Features
WiFi 2.4G, 802.11 b/g/n
Support Station / SoftAP / SoftAP+Station operation modes
Support "Data pass-through" and "AT command data transfer" mode
Support serial AT command configuration
Support TCP Server / TCP Client / UDP operating mode
Support configuration of operating channel 0 ~ 13
Support auto 20MHz / 40MHz bandwidth
Support WPA_PSK / WPA2_PSK encryption
Serial port baud rate up from 600bps to 2Mbps with 16 common values
Support up to 5 TCP / UDP links
Obtaining IP address automatically from the DHCP server (Station mode)
DHCP service for Wireless LAN clients (AP mode)
Support DNS for communication with servers by domain name
Support "Keep-Alive" to monitor TCP connection
Support "Ping" for monitoring network status
Built-in SNTP client for receiving the network time
Support built-in unique MAC address and user configurable
Support firmware upgrade by UART Download / OTA (via WLAN)
Industrial grade (operating temperature range: -40 ° C ~ 85 ° C)
CE, FCC certification
#Details
Documents
Datasheet
information and etc.
AT Instruction
by AT command of WizFi360.
AT command
UDP, SSL use.
Quick Start
order from Hardware setting to example of AT command use
: A brief introduce about WizFi360. These documents describe the Features, package
set: It describes the AT Command of WizFi360 and you can confirm the return message
Example: It includes the Basic example using AT command and it is examples of TCP,
Guide: The examples using the WizFi360-EVB or WizFi360io, it describes the scenarios in
WizFi360-PA

Advertisement

Table of Contents
loading

Summary of Contents for Wiznet WizFi360-CON

  • Page 1 Getting Started #Overview WizFi360-CON WizFi360-PA WizFi360 is a low cost and low-power consumption industrial-grade WiFi module. It is compatible with IEEE802.11 b/g/n standard and supports SoftAP, Station and SoftAP+Station modes. The serial port baud rate can be up to 2Mbps, which can meet the requirement of various applications.
  • Page 2 #Evaluation Boards WizFi360-EVB-Mini WizFi360-EVB-Shield - NodeMCU Pin-Compatible Arduino Pin-Compatible #Custom Modules WizFi360io-H WizFi360io-C Similar to XBee pinout 5V operation...
  • Page 3: Data Sheet

    Resources DataSheet provides a brief introduce about WizFi360. These documents describe the Features,package information and etc. Program Guide provides the AT Instruction set and AT command examles. The AT Instruction document include the description of AT command and the AT command examples document include TCP/UDP/SSL connection result and AT command used example.
  • Page 4 #Certification WizFi360 Certification Date Decription AUG2019 Initial Release #FCC WizFi360 Certification Date Decription AUG2019 Initial Release WizFi360-PA_EMC Certification WizFi360-CON_EMC Certification Date Decription NOV2019 Initial Release #J-MIC(TELEC) WizFi360-PA_EMC Certification WizFi360-CON_EMC Certification Date Decription NOV2019 Initial Release #RoHS SGS RoHS Test Report Date Decription NOV2019 Initial Release...
  • Page 5: Program Guide

    KORAS Operation Test - Korean KORAS Operation Test - Korean Date Decription NOV2019 Initial Release #Program Guide #AT Instruction set The AT Instruction set include the description of AT command. WizFi360 basically provides a command compatible with ESP8266. In addition, commands are provided for using MQTT and Azure IoT Hub. AT Instruction set V1.0.7 - English AT Instruction set V1.0.7 - Korean Version...
  • Page 6 WizFi360-EVB-Shield #Overview This document describes WizFi360-EVB-Shield. WizFi360-EVB-Shield is a development board for experiment, test and verification of WizFi360. WizFi360-EVB-Shield can also be used as an Arduino shield. WizFi360 is a low cost and low-power consumption industrial-grade WiFi module. It is compatible with IEEE802.11 b/g/n standard and supports SoftAP, Station and SoftAP+Station modes.
  • Page 7 JP1, JP2, JP3 2.54mm Pin Header Built-in Sensors Temprature/Humidity Sensor: DHT11 CDS Sensor: GL5537 Built-in Tact Switchs System Reset Switch: S1 WiFi Reset Switch: S2 Built-in LED Indicators D13 LED Built-in Level Shifters The voltage of the RXD/TXD signal changes according to the main board platform voltage. Built-in DIP Switchs UART RXD/TXD Selector: SW1 UART RTS/CTS Selector: SW2...
  • Page 8 WizFi360-EVB-Mini #Overview This document describes WizFi360-EVB-Mini. WizFi360-EVB-Mini is a compact development board for experiment, test and verification of WizFi360. WizFi360-EVB-Mini is the same form factor as the NodeMCU V2. WizFi360 is a low cost and low-power consumption industrial-grade WiFi module. It is compatible with IEEE802.11 b/g/n standard and supports SoftAP, Station and SoftAP+Station modes.
  • Page 9: Technical Reference

    CP2104-GM Micro USB B Type Connector #Quick Start Guide Quick Start Guide #Datasheet Download #Technical Reference #Ref Schematic & Other Board Schematics Link to Github #Library Link to Github #ETC #Serial Port Driver CP210x USB to UART Bridge VCP Drivers...
  • Page 10 WizFi360io #Overview This page describes the io interface boards using WizFi360. WizFi360io series boards can be customized according to customers' requests. #WizFi360io-C WizFi360io-C cable connector type io interface board. The operating voltage of the WizFi360io-C and the UART voltage are 5V. WizFi360io-C can connect the UART interface to the connector. The part name of the connector mounted on WizFi360io-C is “SMW200-06”.
  • Page 11 WizFi360io-H is a pin header type io interface board. The form factor of WizFi360io is an Xbee interface module. 2.00mm pin header is used, similar to the Xbee pin layout. But it is not exactly compatible. #Features WizFi360 WiFi 2.4G, 802.11 b/g/n Support Station / SoftAP / SoftAP+Station operation modes Support “Data pass-through”...
  • Page 12 #Library Link to Github #ETC #WizFi360io-C Connector Datasheet SMW200-06...
  • Page 13: Environment Setting

    Quickstart Guide #Environment setting There are two types of WizFi360-EVB, which can be classified as ‘Shield’ and ‘Mini’ versions. WizFi360 is controlled by sending AT command through UART. WizFi360-EVB-Mini and WizFi360-EVB-Shield uses UART1 by connecting Micro USB. WizFi360-EVB-Mini WizFi360-EVB-Shield In addition, WizFi360-EVB-Shield is Pin compatible with Arduino. So you can use UART in two cases. If you use Micro USB, turn SW1 ON and connect Micro USB.
  • Page 14 #TCP CLient Example A brief AT command describe for operating of WizFi360 as TCP Client in single connection mode. If you need AT command example of another mode, see the documentation called "AT command examples" Open TCP Server from PC which is connected to the same WiFi AP that WizFi360 is connected to. (IP : 192.168.10.100 Port : 5000) Copy //Set WizFi Station mode AT+CWMODE_CUR=1...
  • Page 15 In normal transmission mode, there are three commands to send data. (For more details, refer to AT Instruction set.) 1. AT+CIPSEND 2. AT+CIPSENDBUF 3. AT+CIPSENDEX In AT+CIPSEND and AT+CIPSENDEX, If the data is entered more than the length set (n) : the system will send the first n bytes and discard exceeded data.
  • Page 16 Firmware Upgrade Guide #There are three methods to update firmware: Tera Term(Serial Program), Cloud or Upgrade Tool. #Using Tera Term (Serial) #Required hardware and software WizFi360-EVB Tera Term USB cable or TTL-to-USB module WizFi360 Firmware .img file #How to download using Serial #Step 1 Update Firmware by communicating with Tera Term through Serial.
  • Page 17 While holding down the ESC key on the keyboard, press the reset button on the WizFi360 to enter the Boot mode. When boot mode is entered, the below screen is displayed. #Step 4 Go to 'File - Transfer - XMODEM - Send' menu, select the binary file and click OK button to proceed the firmware update. #Step 5 When the firmware update is completed, 'ready' is displayed on the terminal.
  • Page 18 Update Firmware by connecting to Cloud through WiFi. Connect PC, WizFi360, and Router as shown below. The router must be connected to the Internet, and the WizFi360 and WizFi360 and PC are assigned an IP by DHCP Server of router. To use AT Command, serial communication is used UART0 or UART1. In case of UART1 use USB cable and in case of UART0 use TTL to USB module.
  • Page 19 UART1 UART0 #Step 2 Open the WizFi Upgrade Tool and Open the Serial port of WizFi360. #Step 3 Click the folder icon to select the WizFi360 Firmware binary file. (WizFi360_SDK.img) #Step 4 Click the Start Upgrade button (arrow icon) and check the "Please Press reset button message."...
  • Page 20 #Step 5 Firmware upload is progressed and uploaded firmware size is displayed. #How to upgrade using Upgrade Tool (Wi-Fi) #Step 1 Update Firmware by communicating with Upgrade Tool through Wi-Fi. Select Firmware binary file to update in Upgrade Tool, and update firmware using AT Command (AT + CIUPDATE) in WizFi360.
  • Page 21 Click the WiFi option of the Upgrade Tool. #Step 3 Click IP list and select IP of PC. #Step 4 In Select FW, click the folder icon to select the WizFi360 Firmware binary file. (WizFi360_SDK.img)
  • Page 22 #Step 5 When WizFi360's Firmware Upgrade is ready, the following message will be displayed #Step 6 Use the AT command to upgrade the firmware.
  • Page 23: Spi Frame Format

    SPI Guide #Introduction WizFi360 operates in SPI slave mode and can be controlled via AT commands. In order to communicate with the MCU, the SPI pins must be connected and set the SPI_EN(PB13) pin to Low for SPI. Refer to Figure 1. WizFi360 Pinout to locate the SPI pins. Set the SPI_INT(PB14) pin to low when the user needs to send data from WizFi360 so that the SPI master can read the data.
  • Page 24 #AT CMD Frame The AT CMD frame reads the TX BUFF AVAIL from the SPI Control Frame and sets the Control Byte as 0x91 during the Control Phase if 0x0002 or bit 2 is high. Then the CMD length is set in units of 4bytes and AT CMD messages are included in the data for transmission. AT CMD reply uses the RX Data Frame method when receiving data.
  • Page 25: Operation

    RX Data Frame SPI Timing Graph (RX Data Frame) #Operation #AT CMD Operation Use AT CMD to set WizFi360 or follow the steps below to set SEND mode and request data. AT CMD Operation Flowchart #Data Operation Data can be sent if AT+CIPSEND, AT+CIPSENDEX, OR AT+CIPSENDBUF is entered in AT CMD or in DATA TRANS mode.
  • Page 26 DATA Operation Flowchart...
  • Page 27: Station Mode

    MQTT Client #Introduction MQTT is a light weight messaging protocol for use on top of the TCP/IP protocol. It is designed for connections with remote locations where a “small code footprint” is required or the network bandwidth is limited.It is a communication protocol which almost can link all networked objects with the external, and it is used as a sensor.
  • Page 28 AT Command Terminal AT+CWMODE_CUR=1 AT+CWDHCP_CUR=1,1 AT+CWLAP AT+CWJAP_CUR=”ssid”,”password” AT+CIPSTA_CUR? #MQTT Connect & Data Publish AT Command Terminal AT+MQTTSET="USER_ID","PASSWORD","CLIENT_ID",60 AT+MQTTTOPIC="PUB_TOPIC","SUB_TOPIC" AT+MQTTCON=0,"192.168.1.102",1883 AT+MQTTPUB=”0123456789”...
  • Page 29: Pin Definition

    Pin Function Module Reset Pin (Active Low) WizFi360-PA Reserved WizFi360-CON ANT pin for external antenna BOOT Pin (Active low) When power on or reset is low, it operates in Boot mode. In the normal operating mode, this pin can be controlled by AT command.
  • Page 30 Pin Name Type Value Pull up/down Pin Name Type Value Pull up/down I/O High Pull up I/O Low Pull down I/O Low Pull down PB15 I/O High Pull down PB18 I/O High Pull down PB13 I/O High Pull down PB14 I/O High Pull down PB17 I/O High Pull down...
  • Page 31 #UART UART1 UART1 is the main communication UART. AT command communication is possible with UART1 and data communication is possible. UART0 UART0 is not available to normal users. This UART is used at the factory stage (Module production) and intended for internal firmware developers of the WizFi360.
  • Page 32: Pcb Footprint

    #PCB Footprint...
  • Page 33: Pcb Layout

    #PCB Layout Power wiring width should not be less than 30mil. Except for the antenna portion of WizFi360, the bottom layer of the shield can must have a GND plane.
  • Page 34 Figures. 6 and Figures. 7 are 2 antenna placement which can best performance of antenna. We suggest customers to choose one of these 2 modes to design the placement. For the second placement mode, PCB antenna should be at least 5.0mm from both sides of the bottom board.
  • Page 36: Hardware Environment

    HTTP Client using WizFi360 #Introduction HTTP(Hypertext transfer protocol) is a communication protocol for exchanging data between server and client on the Web. HTTP exchanges data in the form that the client sends the request and the server sends the reply to the request. At this time, Server transmits response such as HTML, JSON, etc., and uses port 80.
  • Page 37 #Code Update your AP credentials (SSID and password) to connect WizFi360. Serial1 is the serial communicating with Arduino and WizFi360 and should have the same baud rate as WizFi360. The factory default baud rate for WizFi360 is 115200, and if you have not changed it, enter 115200. Enter the address of the HTTP server to connect to server. You can enter ip address or domain address.
  • Page 38 In this guide, Arduino (WizFi360EVB) connects to Web Server and sends the following data. Request /ascillogo.txt using the GET method. #Result Receive the following data from the server.
  • Page 39 HTTP Server using WizFi360 #Introduction HTTP(Hypertext transfer protocol) is a communication protocol for exchanging data between server and client on the Web. HTTP exchanges data in the form that the client sends the request and the server sends the reply to the request. At this time, Server transmits response such as HTML, JSON, etc., and uses port 80.
  • Page 40 #Code Update your AP credentials (SSID and password) to connect WizFi360. Serial1 is the serial communicating with Arduino and WizFi360 and should have the same baud rate as WizFi360. The factory default baud rate for WizFi360 is 115200, and if you have not changed it, enter 115200. Enter the address of the HTTP server to connect to server.
  • Page 41 #Result 1. Check the firmware version. The current firmware version is 3.0.0. 2. Attempted to connect to the AP, succeeded, and assigned a virtual IP address of 192.168.1.118. 3. TCP Server was created and WebServer was opened. 4. Check the connection of the client and receive the Get method data from the client 5.
  • Page 42 Throughput #Test Environment To UART throughput test, it controls using CTS / RTS and WizFi360 control software are required. WizFi360 EVB or WizFi360io STM32Fxxx EVB(NUCLEO-F401RE) Serial Tool YAT Serial Tool(Data Mode) WizFi360 Control Software(Command Mode) 1Mbyte data file WiFi Router(exclude when it use in softAP mode) When data mode uses, it sets RTS/CTS in flow control the using the YAT Serial Tool and it sets DTR as Data Read signal.
  • Page 43 AT Command Terminal AT+CWMODE_CUR=1 AT+CWDHCP_CUR=1,1 AT+CWLAP AT+CWJAP_CUR=”wizms1”,”maker0701” AT+CIPSTA_CUR? #UART CTS/RTS Setting AT Command Terminal AT+CWUART_CUR = 115200,8,1,0,1 Terminal setting AT Command Terminal 1. Pressing Ctrl+Shift+S and Open the Terminal Settings window 2. You have to change the Hardware(RFR/CTS) in Flow Control 3.
  • Page 44 AT Command Terminal AT+CIPSTART=”TCP”,”192.168.100.27”,5001 AT+CIPMODE=0 AT+CIPSENDBUF=2048 Send the 2048byte data * 512times = 1Mbyte #Result of UART Throughput PC sends the 1Mbyte through serial of WizFi360(UART1) and WizFi360 send the data to TCP Server. We measured the time from the start of data transfer to the end of data transfer using the wireshark tool, see Appendix 1. #Appendix 1 Item Detail...
  • Page 45 Item Detail Command mode Baudrate 1 000 000 Data mode Command mode Baudrate 1 250 000 Data mode Command mode Baudrate 1 500 000 Data mode Command mode Baudrate 2 000 000 Data mode...
  • Page 46 Item Detail Command mode...
  • Page 47 W600-SDK #Overview WizFi360 is based on the W600 chip which features ARM Cortex-M3 with 1MB on-chip flash and freeRTOS kernel. This page includes the software development kit (SDK) files, documents, and usage method. This SDK has integrated WizFi360 hardware driver (BSP), RTOS, TCP/IP protocol, Wi-Fi Protocol and other public function modules.
  • Page 48: Android Application

    Airkiss Configuration Guide #Introduction In this guide we introduce Airkiss method to configure WizFi360. #Airkiss sequence 1. Set module to station mode using AT+CWMODE_DEF=1 2. Airkiss start using AT+CWSTARTSMART=2 3. Launch Android app and input WiFi AP' SSID and password. 4.
  • Page 49 #TCP Client Test It is possible to test TCP connection between WizFi360 and smartphone, where smartphone will be TCP client and WizFi360 will be used as server. To conduct test follow below procedures: 1. Press "Menu" button on top left side of application. Then press "TCP Client Test" 2.
  • Page 50 Program WizFi360 using Arduino IDE #Introduction It is possible to program WizFi360 using Arduino IDE. In this guide we will show how to do it. #Requirements #Hardware WizFi360-EVB-mini or WizFi360-EVB-Shield USB cable Notebook or Desktop PC UartToUsb Connect UartToUsb to WizFi360 evaluation board as below: WizFi360 RXD0 →...
  • Page 51 #Software Arduino IDE important For this guide hourly build of Arduino IDE was used. Arduino IDE version was "LAST UPDATE 25 March 2020 23:34:57 GMT" at the moment of this guide creation. #Instructions 1. Open Preferences in Arduino IDE. 2. In preferences window set compiler warnings to "All". Also check all items except "Use external editor". http://wizwiki.net/download/WizFi360/arduino/package_WizFi360_index.json to board manager URL.
  • Page 52 4. Search for WizFi360 in boards manager and install latest version. 5. Select WizFi360-EVB-Mini or Shield in Tools -> Board menu.
  • Page 53 6. Set upload speed to 2000000 and check COM port. 7. Open example from File -> Examples...
  • Page 54 8. Compile and upload.
  • Page 55 Congratulations! Process is completed!
  • Page 56 WizFi360 MQTT AT Command를 이용하여 Azure IoT Hub에 연동 #시작하기 전에 Portal에 Login을 합니다. 계정이 없는 경우, 계정 생성 후에 Login을 진행합니다. Azure ※ 본 문서는 체험 계정으로 진행합니다. Azure Portal을 사용하여 IoT Hub 만들기 등 앞선 일련의 과정에 대하여 Azure Cloud 서비스...
  • Page 57 WizFi360의 조금 더 상세한 사용 방법은 Set을 참고 바랍니다. Quick Start Guide, AT Command는 AT Instruction #1. Mode 설정 Command Response AT+CWMODE_CUR=1 OK #2. DHCP 설정 Command Response AT+CWDHCP_CUR=1,1 OK #3. AP 접속 Command Response AT+CWJAP_CUR="ssid","password" WIFI CONNECTED WIFI GOT IP Example : AT+CWJAP_CUR="wiznet","0123456789"...
  • Page 58 #4. MQTT 연결 설정 Command AT+MQTTSET="iot_hub_host_name/device_id/?api-version=2018-06-30","sas_token","device_id",60 Example : AT+MQTTSET="MyWizFi360IoTHub.azure-devices.net/MyWizFi360IoTDevice/?api-version=2018-06-30","SharedAccessSignature sr=MyWizFi360IoTHub.az devices.net%2Fdevices%2FMyWizFi360IoTDevice&sig=t3R9nDS7ezMGBdb%2FNd5ktb3xQx5jx4NC02n325vRA6c%3D&se=1611895717","MyWizFi360IoT SAS Token 생성은 다음을 참고 바랍니다. Device Explorer를 사용하여 SAS Token 생성하기 Azure IoT Explorer를 사용하여 SAS Token 생성하기 #5. Topic 설정 Command Response AT+MQTTTOPIC="devices/device_id/messages/events/",devices/device_id/messages/devicebound/# Example : AT+MQTTTOPIC="devices/MyWizFi360IoTDevice/messages/events/","devices/MyWizFi360IoTDevice/messages/devicebound/#" #6. Broker 연결 Command Response AT+MQTTCON=1,"iot_hub_host_name",8883...
  • Page 59 #1. Stream Analytics 작업 시작 Stream Analytics에서 개요 > 시작 > 현재 > 시작을 선택합니다.
  • Page 60 #2. 출력 확인 1) Blob Storage에서 개요 > 컨테이너를 선택합니다. 2) 목록에서 Container를 선택하여 엽니다.
  • Page 61 3) 목록에서 Blob을 선택하여 엽니다. 4) 편집을 눌러 WizFi360으로부터 수신한 Data를 확인합니다.
  • Page 62 #더 보기 Azure Portal을 사용하여 Stream Analytics 작업 입 · 출력 구성 및 변환 Query 정의 2. WizFi360 MQTT AT Command를 이용한 Azure IoT Hub 연동 예제...
  • Page 63 Mbed Example Arduino Example...
  • Page 64: Step 1: Required Items

    Connect to Azure IoT Hub using WizFi360 MQTT AT Command #Getting started Login to Azure Portal. ※ In this guide we will procedd with free account. To learn how to create IoT Hub please refer to Azure Cloud Service Introduction. [MS] Create IoT Hub using Azure Portal Create Blob storage using Azure Portal Create Stream Analytics using Azure Portal...
  • Page 65: Step 3: Sample Application

    To learn more about WizFi360 please refer to Quick Start Guide, AT Instruction Set. #1. Mode setting Command Response AT+CWMODE_CUR=1 OK #2. DHCP setting Command Response AT+CWDHCP_CUR=1,1 OK #3. Connect to AP Command Response AT+CWJAP_CUR="ssid","password" WIFI CONNECTED WIFI GOT IP Example : AT+CWJAP_CUR="wiznet","0123456789" #4. MQTT Connection setting...
  • Page 66 Command Command AT+MQTTSET="iot_hub_host_name/device_id/?api-version=2018-06-30","sas_token","device_id",60 Example : AT+MQTTSET="MyWizFi360IoTHub.azure-devices.net/MyWizFi360IoTDevice/?api-version=2018-06-30","SharedAccessSignature sr=MyWizFi360IoTHub.az devices.net%2Fdevices%2FMyWizFi360IoTDevice&sig=t3R9nDS7ezMGBdb%2FNd5ktb3xQx5jx4NC02n325vRA6c%3D&se=1611895717","MyWizFi360IoT For SAS Token creation please refer below. Create SAS Token using Device Explorer Create SAS Token using Azure IoT Explorer #5. Topic Setting Command Response AT+MQTTTOPIC="devices/device_id/messages/events/",devices/device_id/messages/devicebound/# Example : AT+MQTTTOPIC="devices/MyWizFi360IoTDevice/messages/events/","devices/MyWizFi360IoTDevice/messages/devicebound/#" #6. Connect to Broker Command Response AT+MQTTCON=1,"iot_hub_host_name",8883...
  • Page 68 #2. Check output 1) Select in Blob Storage Introduction > Container. 2) Select Container in List.
  • Page 69 3) Select Blob in list. 4) Click Edit to check data received from WizFi360.
  • Page 71 WizFi360 Azure AT Command를 이용하여 Azure IoT Hub에 연결 #시작하기 전에 #Hardware Requirement Desktop or laptop computer MicroUSB 케이블 WizFi360-EVB-Shield #Software Requirement Preferred Serial Terminal (TeraTerm, YAT, etc.) Azure IoT Explorer Portal에 Login을 합니다. 계정이 없는 경우, 계정 생성 후에 Login을 진행합니다. Azure ※...
  • Page 72 #디바이스 연결 하드웨어 설정 후 MicroUSB 이용하여 PC와 연결합니다. PC운영체제에서 보드와 연결된 COM 포트를 확인할 수 있습니다. 윈도우 운영체제의 경우, 장치 관리자(Device Manager)에서 COM 포트를 확인할 수 있습니다. 장치 관리자에서 COM 포트를 확인할 수 없는 경우, 다음 링크에서 드라이버를 다운로드하여 설치하시기 바랍니다. Silicon Labs CP210x USB to UART Driver #AT 명령어...
  • Page 73: Enable Dhcp

    Mode Value Mode Value Station mode SoftAP mode (factory default) Station+SoftAP mode #2. Enable DHCP AT Command: AT+CWDHCP_CUR Syntax: Type Command Response +CWDHCP_CUR:<para> Query AT+CWDHCP_CUR? AT+CWMODE_CUR=<para>,<en> OK Defined values: Parameter Value SoftAP DHCP 와 Station DHCP 를 disable 한다. SoftAP DHCP 는 enable 하고 Station DHCP 는 disable 한다. 2: SoftAP DHCP 는...
  • Page 74 Parameter Value Parameter Value <hub ID> string parameter. IoT Hub의 ID <device ID> string parameter. IoT Device의 ID <key> string parameter, IoT Device의 Key #6. Set MQTT Topic AT Command: AT+MQTTTOPIC Syntax: Type Command Response AT+MQTTTOPIC=<publish topic>,<subscribe topic>,<subscribe topic2>,<subscribe topic3> OK Defined values: Parameter Value...
  • Page 75 #2. Set DHCP Enable Command Response AT+CWDHCP_CUR=1,1 // DHCP enable on Station mode OK #3. Get possible Wi-Fi AP List for connection Command Response AT+CWLAP +CWLAP : (3,"ssid",-57,"mac address",1,1) // encryption method, ssid, rssi, mac address, channel, wps #4. Connect to Wi-Fi AP Command Response WIFI CONNECTED...
  • Page 76 #동작 예제 결과 1. IoT Explorer 에서 Telemetry Section안에 "Start" 버튼을 누릅니다. MQTTPUB 명령을 통해 메시지를 보내기 전에 "Start" 버튼을 눌러야 합니다. 2. 터미널에서 MQTTPUB command으로 수신한 데이터를 확인 할 수 있습니다.
  • Page 77 #다음 단계 Azure Portal을 사용하여 Stream Analytics 작업 입 · 출력 구성 및 변환 Query 정의 2. WizFi360 Azure AT Command를 이용한 Azure IoT Hub 연동 예제 Mbed Example Arduino Example...
  • Page 78: Device Preparation

    Connect to Azure IoT Hub using WizFi360 Azure AT Command #Getting Started #Hardware Requirement Desktop or laptop computer MicroUSB cable WizFi360-EVB-Shield #Software Requirement Preferred Serial Terminal (TeraTerm, YAT, etc.) Azure IoT Explorer Login to Azure Portal. ※ In this guide we will procedd with free account.
  • Page 79: Device Connection

    #Device connection After connecting hardware, connect WizFi360-EVB-Shield to Desktop or Laptop using USB Cable. Check COM Port from Device Manager. If COM port cannot be found in Device manager, check drivers from link below. Silicon Labs CP210x USB to UART Driver #AT Commands #1.
  • Page 80 Mode Value Mode Value Station mode SoftAP mode (factory default) Station+SoftAP mode #2. Enable DHCP AT Command: AT+CWDHCP_CUR Syntax: Type Command Response +CWDHCP_CUR:<para> Query AT+CWDHCP_CUR? AT+CWMODE_CUR=<para>,<en> OK Defined values: Parameter Value DIsable SoftAP DHCP & Station DHCP. Enable SoftAP DHCP & Disable Station DHCP. Disable SoftAP DHCP &...
  • Page 81: Wifi Setting

    Parameter Value <hub ID> string parameter. IoT Hub ID <device ID> string parameter. IoT Device ID <key> string parameter, IoT Device Key #6. Set MQTT Topic AT Command: AT+MQTTTOPIC Syntax: Type Command Response AT+MQTTTOPIC=<publish topic>,<subscribe topic>,<subscribe topic2>,<subscribe topic3> OK Defined values: Parameter Value <publish topic>...
  • Page 82 #3. Get possible Wi-Fi AP List for connection Command Response AT+CWLAP +CWLAP : (3,"ssid",-57,"mac address",1,1) // encryption method, ssid, rssi, mac address, channel, wps #4. Connect to Wi-Fi AP Command Response WIFI CONNECTED AT+CWJAP_CUR="ssid","password" WIFI GOT IP #5. Query WizFi360 device' IP address Command Response +CIPSTA_CUR:ip:”192.168.10.13”...
  • Page 83 #Results 1. Press "Start" button in Telemetry Section in IoT Hub Explorer. "Start" button shall be pressed before sending data using MQTTPUB commands. 2. Check data sent with MQTTPUB command.
  • Page 85 WizFi360 MQTT AT Command를 이용한 Azure IoT Hub 연동 예제 #시작하기 전에 Portal에 Login을 합니다. 계정이 없는 경우, 계정 생성 후에 Login을 진행합니다. Azure ※ 본 문서는 체험 계정으로 진행합니다. Azure Portal을 사용하여 IoT Hub 만들기 등 앞선 일련의 과정에 대하여 Azure Cloud 서비스...
  • Page 86 #2. Device 연결 Hardware 설정 후, Mini USB Cable을 이용하여 NUCLEO-L476RG를 Desktop 혹은 Laptop Computer와 연결을 합니다. 장치 관리자에서 NUCLEO-L476RG와 연결된 COM Port를 확인 할 수 있습니다. 장치 관리자에서 COM Port를 확인 할 수 없는 경우, 다음 Link에서 Driver를 Downlonad하여 설치하시기 바랍니다. ST-LINK, ST-LINK/V2, ST-LINK/V2-1 USB driver #Step 3: 동작...
  • Page 87 #2. Parameter 값 수정 Azure IoT Hub에 연결을 하기 위하여, 다음의 Parameter를 수정합니다. Copy /* Wi-Fi info */ char ssid[] "xxxxxxxxxx"; char password[] "xxxxxxxxxx"; /* MQTT info */ int alive_time // range : 30 ~ 300 /* Azure info */ char hub_name[] "xxxxxxxxxx";...
  • Page 88 SAS Token 생성은 다음을 참고 바랍니다. Device Explorer를 사용하여 SAS Token 생성하기 Azure IoT Explorer를 사용하여 SAS Token 생성하기 #3. Project Build 및 Run Run Program을 눌러 Project Build 및 Run을 합니다. Note : Stream Analytics 실행 중이어야 Blob Storage로 Data가 전달됩니다.
  • Page 89 #Step 4: 동작 예제 결과 Terminal Program으로 WizFi360에서 Azure IoT Hub로 전송하는 Data, Blob Storage에서 WizFi360으로부터 수신한 Data를 확인 할 수 있습니다.
  • Page 90 #더 보기 WizFi360 MQTT AT Command를 이용하여 Azure IoT Hub에 연동...
  • Page 91 Connect to Azure IoT Hub using WizFi360 MQTT AT Command #Getting started Login to Azure Portal. ※ In this guide we will procedd with free account. To learn how to create IoT Hub please refer to Azure Cloud Service Introduction. [MS] Create IoT Hub using Azure Portal Create Blob storage using Azure Portal Create Stream Analytics using Azure Portal...
  • Page 92 #2. Device connection After connecting hardware, connect NUCLEO-L476RG to Desktop or Laptop using USB Cable. Check COM Port from Device Manager. If COM port cannot be found in Device manager, check link below and follow instructions. ST-LINK, ST-LINK/V2, ST-LINK/V2-1 USB driver #Step 3: Sample application #1.
  • Page 93 Copy /* Wi-Fi info */ char ssid[] "xxxxxxxxxx"; char password[] "xxxxxxxxxx"; /* MQTT info */ int alive_time // range : 30 ~ 300 /* Azure info */ char hub_name[] "xxxxxxxxxx"; char host_name[] "xxxxxxxxxx"; char device_id[] "xxxxxxxxxx"; char device_key[] "xxxxxxxxxx"; char sas_token[] "xxxxxxxxxx";...
  • Page 94 #Step 4: Results In terminal program we can check data sent from WizFi360 to Azure IoT Hub. In Blob Storage we can check received data.
  • Page 95 #References Connect to Azure IoT Hub using WizFi360 MQTT AT Command...
  • Page 96 NUCLEO-L476RG + WizFi360 Azure AT Command를 이용하여 Azure IoT Hub에 연결 #시작하기 전에 #Hardware Requirement NUCLEO-L476RG Desktop or laptop computer USB 케이블 WizFi360-EVB-Shield #Software Requirement Microsoft Azure Account (Azure 구독이 아직 없는 경우 체험 무료계정을 만듭니다.) Preferred Serial Terminal (TeraTerm, YAT, etc.) Azure IoT Explorer MBED Studio / MBED Online Compiler #소개...
  • Page 97 장치 관리자에서 NUCLEO-L476RG와 연결된 COM Port를 확인 할 수 있습니다. 장치 관리자에서 COM Port를 확인 할 수 없는 경우, 다음 Link에서 Driver를 Downlonad하여 설치하시기 바랍니다. [ST-LINK, ST-LINK/V2, ST-LINK/V2-1 USB driver][Link-St_Link_St_Link_V2_St_Link_V2_1_Usb_Driver] #AT 명령어 #1. Set current WiFi mode (not saved in flash) AT Command: AT+CWMODE_CUR Syntax: Type Command Response...
  • Page 98 Parameter Value Parameter Value 0: Open 1: WEP <ecn> 2: WPA_PSK 3: WPA2_PSK 4:WPA_WPA2_PSK <ssid> string parameter. AP의 ssid <rssi> signal strength <mac> string parameter. AP의 mac 0: WPS는 disable된다 <wps> 1: WPS는 enable된다 #4. Connect to AP AT Command: AT+CWJAP_CUR Syntax: Type Command Response +CWJAP_CUR:<ssid>,<bssid>,<channel>,<rssi>...
  • Page 99 #8. Publish a message AT Command: AT+MQTTPUB Syntax: Type Command Response AT+MQTTPUB=<message> OK Note: • 이 command 는 MQTT 가 연결되어 있을 때 사용됩니다. • Publish 한 data 의 topic 은 AT+MQTTTOPIC command 에 의해 결정되며, 사용 자는 broker 에 연결하기전에 topic 을 설정합니다. #동작...
  • Page 100 https://os.mbed.com/users/vikshin/code/Mbed-Azure-Atcmd-WizFi360/ #Modify parameters Azure IoT Hub 연결 위한 WiFi ssid, WiFi password, Hub ID, Device ID, Device Key 변경하여 테스트 해볼 수 있습니다. Copy /* WiFi info */ char ssid[] "XXXXXXXXXXXXXXXXXXXXXXXX"; char password[] "XXXXXXXXXXXXXXXXXXXXXXXXXX"; /* Azure info */ char hub_name[] "XXXXXXXXXXXXXXXXXXXXXXXXXX";...
  • Page 101 업로드를 완료한 후, 시리얼 모니터를 이용하여 정상적으로 Nucleo 보드에 업로드 되었는지 확인할 수 있습니다. #동작 예제 결과 1. IoT Explorer 에서 Telemetry Section안에 "Start" 버튼을 누릅니다. MQTTPUB 명령을 통해 메시지를 보내기 전에 "Start" 버튼을 눌러야 합니다. 2. MQTTPUB command으로 수신한 데이터를 확인 할 수 있습니다.
  • Page 102 #더 보기 WizFi360 Azure AT Command를 이용하여 Azure IoT Hub에 연결...
  • Page 103: Getting Started

    Connect to Azure IoT Hub using NUCLEO-L476RG + WizFi360 Azure AT Command #Getting Started #Hardware Requirement NUCLEO-L476RG Desktop or laptop computer USB cable WizFi360-EVB-Shield #Software Requirement Microsoft Azure Account (To create Azure account press here.) Preferred Serial Terminal (TeraTerm, YAT, etc.) Azure IoT Explorer MBED Studio / MBED Online Compiler #Introduction...
  • Page 104 #AT commands #1. Set current WiFi mode (not saved in flash) AT Command: AT+CWMODE_CUR Syntax: Type Command Response +CWMODE:<mode> Query AT+CWMODE_CUR? AT+CWMODE_CUR=<mode> OK Defined values: Mode Value Station mode SoftAP mode (factory default) Station+SoftAP mode #2. Enable DHCP AT Command: AT+CWDHCP_CUR Syntax: Type Command Response +CWDHCP_CUR:<para>...
  • Page 105 Parameter Value <hub ID> string parameter. IoT Hub ID <device ID> string parameter. IoT Device ID <key> string parameter, IoT Device Key #6. Set MQTT Topic AT Command: AT+MQTTTOPIC Syntax: Type Command Response AT+MQTTTOPIC=<publish topic>,<subscribe topic>,<subscribe topic2>,<subscribe topic3> OK Defined values: Parameter Value <publish topic>...
  • Page 106 Sample code also can be imported into Online Compiler from following link:...
  • Page 107 https://os.mbed.com/users/vikshin/code/Mbed-Azure-Atcmd-WizFi360/ #Modify parameters Update your credentials (WiFi ssid, WiFi pwd, Hub ID, Device ID, Device Key) in order to connect to Azure IoT Hub. Copy /* WiFi info */ char ssid[] "XXXXXXXXXXXXXXXXXXXXXXXX"; char password[] "XXXXXXXXXXXXXXXXXXXXXXXXXX"; /* Azure info */ char hub_name[] "XXXXXXXXXXXXXXXXXXXXXXXXXX";...
  • Page 108 Use Serial monitor to check if code was successfully uploaded to Nucleo board. #Results 1. Press "Start" button in Telemetry Section in IoT Hub Explorer. "Start" button shall be pressed before sending data using MQTTPUB commands. 2. Check data sent with MQTTPUB command.
  • Page 110 Arduino Mega 2560 + WizFi360 Azure AT Command를 이용하여 Azure IoT Hub에 연결 #시작하기 전에 #Hardware Requirement Arduino Mega 2560 board Desktop or laptop computer USB 케이블 WizFi360-EVB-Shield #Software Requirement MS Azure Account (Azure 구독이 아직 없는 경우 체험 무료계정을 만듭니다.) Preferred Serial Terminal (TeraTerm, YAT, etc.) Azure IoT Explorer Arduino IDE...
  • Page 111 WizFi360-EVB-Shield에 있는 DHT11 센서 사용을 위해 Arduino Mega D14 pin과 EVB D14 pin 연결해야 됩니다. #디바이스 연결 하드웨어 설정 후 USB 커넥터를 이용하여 Arduino Mega2560 Rev3 보드와 PC를 연결합니다. PC 운영체제 장치 관리자에서 장치와 연결된 COM 포트를 확 인할 수 있습니다.
  • Page 112 Arduino IDE를 정상적으로 설치하면, 위와 같이 장치 관리자에서 COM 포트를 확인할 수 있습니다. #AT 명령어 #1. Set current WiFi mode (not saved in flash) AT Command: AT+CWMODE_CUR Syntax: Type Command Response +CWMODE:<mode> Query AT+CWMODE_CUR? AT+CWMODE_CUR=<mode> OK Defined values: Mode Value Station mode SoftAP mode (factory default) Station+SoftAP mode...
  • Page 113 Parameter Value 2: SoftAP DHCP 는 disable 하고 Station DHCP 는 enable 한다. SoftAP DHCP 와 Station DHCP 를 enable 한다. (factory default) #3. List available APs AT Command: AT+CWLAP Syntax: Type Command Response Query AT+CWLAP +CWLAP:([<ecn>,<ssid>,<rssi>,<mac>,<channel>,<wps>]) Defined values: Parameter Value 0: Open 1: WEP <ecn>...
  • Page 114 AT Command: AT+AZCON Syntax: Type Command Response CONNECT AT+AZCON Note: • 이 command 를 전송하기전에 AT+AZSET command 와 AT+MQTTTOPIC command 를 설정합니다. • Connect 이후 AT+MQTTPUB command 를 통해 Azure Sever 에 데이터를 전송합니다. • 자세한 내용은 를 참 https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-mqtt-support 조하세요.
  • Page 115 컴파일이 완료 되면 다음과 같이 업로드를 수행하여 최종적으로 보드에 업로드를 수행 합니다. 업로드가 정상적으로 완료되면 'avrdude done. Thank you.' 메시지를 확인 할 수 있습니다. 업로드를 완료한 후, 시리얼 모니터를 이용하여 정상적으로 Arduino Mega2560 보드에 업로드 되었는지 확인할 수 있습니다. #동작 예제 결과 1.
  • Page 116 #다음 단계...
  • Page 117 Connect to Azure IoT Hub using Arduino Mega 2560 + WizFi360 Azure AT Command #Getting Started #Hardware Requirement Arduino Mega 2560 board Desktop or laptop computer USB cable WizFi360-EVB-Shield #Software Requirement MS Azure Account (To create Azure account press here.) Preferred Serial Terminal (TeraTerm, YAT, etc.) Azure IoT Explorer Arduino IDE...
  • Page 118 To use DHT11 sensor from WizFi360-EVB-Shield connect D14 pin on EVB board to D14 pin on Arduino Mega. #Device connection After configuring hardware connect Arduino Mega2560 board with PC. CHeck port number in Device Manager.
  • Page 119 If everything setup correctly, then COM port can be checked in Device manager as shown on picture above. #AT Commands #1. Set current WiFi mode (not saved in flash) AT Command: AT+CWMODE_CUR Syntax: Type Command Response +CWMODE:<mode> Query AT+CWMODE_CUR? AT+CWMODE_CUR=<mode> OK Defined values: Mode Value Station mode...
  • Page 120 Parameter Value Enable SoftAP DHCP & Station DHCP. (factory default) #3. List available APs AT Command: AT+CWLAP Syntax: Type Command Response Query AT+CWLAP +CWLAP:([<ecn>,<ssid>,<rssi>,<mac>,<channel>,<wps>]) Defined values: Parameter Value 0: Open 1: WEP <ecn> 2: WPA_PSK 3: WPA2_PSK 4:WPA_WPA2_PSK <ssid> string parameter. AP의 ssid <rssi>...
  • Page 121 Type Command Response CONNECT AT+AZCON Note: • Before sending this ocmmand, AT+AZSET command & AT+MQTTTOPIC command shall be set. • After connection data can be sent to Azure server using AT+MQTTPUB command. • For more details please refer to https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-mqtt-support. #8.
  • Page 122 When compile is done, upload to board. When upload is done, you will see 'avrdude done. Thank you.' message. Use Serial monitor to check if code was successfully uploaded to Adruino Mega2560 board. #Results 1. Press "Start" button in Telemetry Section in IoT Hub Explorer. "Start"...
  • Page 124 WizFi360 MQTT AT Command를 이용한 Azure IoT Hub 연동 예제 #시작하기 전에 Portal에 Login을 합니다. 계정이 없는 경우, 계정 생성 후에 Login을 진행합니다. Azure ※ 본 문서는 체험 계정으로 진행합니다. Azure Portal을 사용하여 IoT Hub 만들기 등 앞선 일련의 과정에 대하여 Azure Cloud 서비스...
  • Page 125 WizFi360-EVB-Shield : D2 - Arduino Mega 2560 : 19 WizFi360-EVB-Shield : SDA - Arduino Mega 2560 : 14 #2. Device 연결 Hardware 설정 후, USB Type-B Cable을 이용하여 Arduino Mega 2560을 Desktop 혹은 Laptop Computer와 연결을 합니다. 장치 관리자에서 Arduino Mega 2560과 연결된 COM Port를 확인 할 수 있습니다. Arduino IDE를...
  • Page 126 예제는 다음 경로에 위치하고 있는 Project를 참고 바랍니다. samples/Wi-Fi/Arduino_Mqtt_Atcmd_Wizfi360 #2. Parameter 값 수정 Azure IoT Hub에 연결을 하기 위하여, 다음의 Parameter를 수정합니다. Copy /* Wi-Fi info */ char ssid[] "xxxxxxxxxx"; char password[] "xxxxxxxxxx"; /* MQTT info */ int alive_time // range : 30 ~ 300 /* Azure info */ char hub_name[]...
  • Page 128 #Step 4: 동작 예제 결과 Terminal Program으로 WizFi360에서 Azure IoT Hub로 전송하는 Data, Blob Storage에서 WizFi360으로부터 수신한 Data를 확인 할 수 있습니다.
  • Page 129 #더 보기 WizFi360 MQTT AT Command를 이용하여 Auzre IoT Hub에 연동...
  • Page 130 Connect to Azure IoT Hub using WizFi360 MQTT AT Command #Getting started Login to Azure Portal. ※ In this guide we will procedd with free account. To learn how to create IoT Hub please refer to Azure Cloud Service Introduction. [MS] Create IoT Hub using Azure Portal Create Blob storage using Azure Portal Create Stream Analytics using Azure Portal...
  • Page 131 #2. Device connection After connecting hardware, connect Arduino Mega2560 to Desktop or Laptop using USB Type-B Cable. Check COM Port from Device Manager. Please check port number in Arduino IDE as shown on picture above. If COM port cannot be found in Device manager, check link below and follow instructions. Manually install Drivers on Windows #Step 3: Sample application #1.
  • Page 132 #2. Parameter update To connect to Azure IoT Hub, update next parameters. Copy /* Wi-Fi info */ char ssid[] "xxxxxxxxxx"; char password[] "xxxxxxxxxx"; /* MQTT info */ int alive_time // range : 30 ~ 300 /* Azure info */ char hub_name[] "xxxxxxxxxx";...
  • Page 134 #Step 4: Results In terminal program we can check data sent from WizFi360 to Azure IoT Hub. In Blob Storage we can check received data.
  • Page 135 #References Connect to Azure IoT Hub using WizFi360 MQTT AT Command...
  • Page 136 Connect WizFi360 to AWS IoT using AT Command #Getting Started #Hardware Requirement Desktop or laptop computer MicroUSB cable WizFi360-EVB-Shield #Software Requirement Preferred Serial Terminal (TeraTerm, YAT, etc.) AWS Console account Firmware v. 1.1.0.595 was used in this guide. Please contact us to receive this version. AWS IoT Core preparation before start Sign to console Create a thing...
  • Page 137 #Device preparation #Hardware setting We are going to use WizFi360-EVB-Shield in standalone mode. MicroUSB cable will be used to connect through UART. Switch SW1 into ON position and connect MicroUSB. #Device connection Please check COM port number in Device Manager.
  • Page 138: At Commands Description

    If COM port cannot be found in Device Manager, please install drivers below. Silicon Labs CP210x USB to UART Driver #AT Commands Description Please refer to AT Instruction Set to find information about all AT Commands. Below we will describe commands created for AWS connection. #1.
  • Page 139 For connection use following configuration in terminal: 115200-8-N-1, None. #Connect WizFi360 to WiFi Copy // Set module to station mode AT+CWMODE_CUR=1 // Get AP list AT+CWLAP // Connect to AP AT+CWJAP_CUR="ssid","password" // Query WizFi360 IP address AT+CIPSTA_CUR? #Enter Certificate Copy //Enter AWS Root CA AT+CASEND=1 //Enter Private key...
  • Page 140 AT+MQTTTOPIC="shadow_update_link","shadow_accepted_link" // User & password can be empty, thing name shall be entered AT+MQTTSET="","","thing_name",60 // Type your Rest API endpoint AT+AWSCON="REST_API_endpoint" // Publish message AT+MQTTPUB="{"state":{"reported":{"temp":"40","led":"on"}}}" // Disconnect from a broker AT+MQTTDIS Can't find shadow links & Rest API endpoint? (Click here) Below is screenshot from terminal #Results 1.
  • Page 141 Congratulations WizFi360 is successfully connected to AWS!
  • Page 142 WizFi360 AT Command를 이용하여 AWS IoT에 연결 #시작하기 전에 #Hardware Requirement Desktop or laptop computer MicroUSB 케이블 WizFi360-EVB-Shield #Software Requirement Preferred Serial Terminal (TeraTerm, YAT, etc.) AWS Console account 본 문서에서는 Firmware v.1.1.0.595사용되었습니다. Firmware 받으실려면 문의해주시기 바랍니다. 시작하기전에 AWS IoT Core 준비할것 AWS Console에...
  • Page 143 AWS IoT와 연결 및 데이터 통신 WiFi모듈 테스트를 위해 Evaluation 보드를 사용되었습니다. WizFi360-EVB-Shield #디바이스 준비 #하드웨어 설정 본 문서에서 WizFi360-EVB-Shield가 standalone mode에서 사용됩니다. 따라서 UART를 위해 MicroUSB를 사용할겁니다. MicroUSB 사용하는경우 SW1을 ON 시키고 MicroUSB 연결해야됩니다. #디바이스 연결 하드웨어 설정 후 MicroUSB 이용하여 PC와 연결합니다. PC운영체제에서 보드와 연결된 COM 포트를 확인할 수 있습니다. 윈도우...
  • Page 144 장치 관리자에서 COM 포트를 확인할 수 없는 경우, 다음 링크에서 드라이버를 다운로드하여 설치하시기 바랍니다. Silicon Labs CP210x USB to UART Driver #AT 명령어 WizFi360의 조금 더 상세한 사용 방법은 Set을 참고 바랍니다. Quick Start Guide, AT Command는 AT Instruction #1. Set SSL Certificate AT Command: AT+CASEND Syntax: Type Command...
  • Page 145 AT Command: AT+AWSCON Syntax: Type Command Response CONNECT AT+AWSCON="<Thing ARN>" important AWS에 접속하기 전에 certificates, MQTTTOPIC and MQTTSET 세팅 해야 됩니다. 그렇지 않으면 AT+AWSCON에서 오류가 반환됩니다. #동작 예제 #모듈 연결 및 터미널 실행 터미널에서 다음 setting 해서 WizFi360에 연결합니다: 115200-8-N-1, None. #WizFi360 WiFi설정...
  • Page 146 아래 그림에 참조하시기 바랍니다. #AWS에 연결 Copy " " 호 합 AT+MQTTTOPIC="shadow_update_link","shadow_accepted_link" // Username password . ClientID 해 AT+MQTTSET="","","thing_name",60 // Rest API 합 AT+AWSCON="REST_API_endpoint" // Publish message AT+MQTTPUB="{"state":{"reported":{"temp":"40","led":"on"}}}" // Disconnect from a broker AT+MQTTDIS 섀도우 링크 및 엔드포인트 못 찾으면 클릭 아래...
  • Page 147 #동작 예제 결과 1. 동작 예제 결과 AWS -> AWS IoT -> 관리 -> 사물 -> 섀도우 메뉴에서 확인 할 수 있습니다. 2. MQTTSET에서 "업데이트 숭인" topic에 subscribe 되어서 MQTT 메시지 전송할 때 바로 결과 볼 수 있습니다.
  • Page 148 축하합니다 이제 AWS에 연결 및 MQTT 메시지 전송 마쳤습니다.
  • Page 149 Location Tracker with WizFi360 #시작하기 전에 #Hardware Requirement Arduino Mega 2560 board Desktop and/or laptop computer USB 케이블 WizFi360-EVB-Shield #Software Requirement Preferred Serial Terminal (TeraTerm, YAT, etc.) Arduino IDE ArduinoJson library (version 6.14.1 was used in this guide ) #소개 This guide was inspired by post on [https://www.instructables.com].
  • Page 150 #디바이스 연결 하드웨어 설정 후 USB 커넥터를 이용하여 Arduino Mega2560 Rev3 보드와 PC를 연결합니다. PC 운영체제 장치 관리자에서 장치와 연결된 COM 포트를 확 인할 수 있습니다.
  • Page 151 Arduino IDE를 정상적으로 설치하면, 위와 같이 장치 관리자에서 COM 포트를 확인할 수 있습니다. #Unwired Labs Geolocation API As mentioned before, in this guide we are going to use Unwired Labs (https://www.unwiredlabs.com/) Geolocation API. Please go to the website and sign up. On sign up page, fill in your name, email and use case.
  • Page 152 컴파일이 완료 되면 다음과 같이 업로드를 수행하여 최종적으로 보드에 업로드를 수행 합니다. 업로드가 정상적으로 완료되면 'avrdude done. Thank you.' 메시지를 확인 할 수 있습니다. 업로드를 완료한 후, 시리얼 모니터를 이용하여 정상적으로 Arduino Mega2560 보드에 업로드 되었는지 확인할 수 있습니다.
  • Page 153 #5. 동작 예제 결과 1. After uploading code to Arduino board results can be checked on serial monitor. 2. Google Maps can be used to verify location coordinates.
  • Page 154 #다음 단계 In next guide we will connect WizFi360 with Google Location API.

This manual is also suitable for:

Wizfi360-pa

Table of Contents