Difference between revisions of "WISE-1530 SDK"

From ESS-WIKI
Jump to: navigation, search
Line 175: Line 175:
  
 
= Example: BLE WiFi Introducer =
 
= Example: BLE WiFi Introducer =
 +
 +
== Introduction ==
  
 
The BLE WiFi Introducer app shows an example interfacing the BLE and WiFi components on a combo chip. It demonstrates GATT database initialization, DCT configuration, processing read/write requests from a BLE client, and sending data to the client. The BLE WiFi Introducer has two components, an app running on a WICED devices, and an app(BLE Scanner) running on Android device.
 
The BLE WiFi Introducer app shows an example interfacing the BLE and WiFi components on a combo chip. It demonstrates GATT database initialization, DCT configuration, processing read/write requests from a BLE client, and sending data to the client. The BLE WiFi Introducer has two components, an app running on a WICED devices, and an app(BLE Scanner) running on Android device.
Line 182: Line 184:
  
  
Step by step usage guide:
+
== Step by step usage guide: ==
  
 
Step 1: download [[Media:WISE-1530_ble_wifi_introducer.zip|ble_wifi_introducer.bin]] to WISE-1530, then see the below on console screen.
 
Step 1: download [[Media:WISE-1530_ble_wifi_introducer.zip|ble_wifi_introducer.bin]] to WISE-1530, then see the below on console screen.
Line 216: Line 218:
 
Step 7: If the join is successful can see network IP on console screen.
 
Step 7: If the join is successful can see network IP on console screen.
  
[[File:WISE-1530 BLE scanner-5.png|563x348px]]
+
[[File:WISE-1530 BLE scanner-5.png|563x348px|WISE-1530 BLE scanner-5.png]]

Revision as of 03:15, 21 August 2017

Overview

WISE-1530 is used Cypress's WICED®  SDKs to develop Wi-Fi and BLE application. WISE-1530 SDK use C/C++ language Runs on Windows® through Eclipse®-based integrated development environment (IDE).

Single installer package with support for:

  • ​Wi-Fi + Bluetooth combo solution
    • Wi-Fi solutions
    • Bluetooth (Basic Rate, Enhanced Data Rate and Bluetooth Low Energy)
  • Sample applications for many popular use cases like
    • Connecting to cloud services
    • Low-power BLE-based sensors and beacons
    • Smart home gateways
    • BLE-WiFi introducer
  • Code snippets to understand WICED APIs

User can refer to WICED Software to get more information.

Setup Development Environment

Preparing for Hardware

The user needs to prepare for hardware as following:

  • WISE-1530, WISE-1500 and WISE-ED22.
  • 802.11b/g/n (2.4 GHz) Wireless Access Point (AP).
  • PC running the Microsoft Windows 7 operating systems

Please refer to the following steps for setup a WISE series of boards before using WISE-1520.

Step01: Please prepare boards as below.

          RTENOTITLE

 WISE-1530

 WISE-1500

 WISE-ED22

 WISE-ED22 reset button

 CN2 on WISE-1500

 SW3 on WISE-1500    

  • Pleas check pin1 and pin2 to “OFF” as default.
  • Switch pin2 to decide whether running “backup to default” while device

booting. “ON”: enabled, “OFF”: disable

 WISE-1530 reset button, one button on WISE-1500 and the other on WISE-ED22

⑧ Micro USB connector    

  • Drag-n-drop programming
  • Serial port and debugging
  • Power supplies for UART1 debug port

 RF connector

Step02: Connect the WISE-ED22 to PC using micro-USB cable.

  • The device will be visible in the Device Manager as below, user can use serial tools (putty, tera term ...etc.) to key-in command. 

          Mbed  uart.png

WICED Studio

The user can refer to the following steps for setup WICED Studio with WISE-1530 SDK.

Windows Install

  1. Download WICED-Studio-4.1.1.8-IDE-Installer.exe.zip
  2. Extract the installer exe from the zip file to temp folder on your computer; do not execute the installer from the zip file
  3. Double click the installer exe to install WICED Studio as below picture

WICED installer 1.png

WICED installer 2.png

WICED installer 3-1.png

WICED installer 4.png

WICED installer 5.png

  1. After installation in completed, launch WICED Studio IDE from shortcut on desktop
  2. When you see the Select WICED Platform page, choose the 43xxx_Wi-Fi item. You can change in "WICED Platform"  in SDK toolbar also.


WICED installer 6.png

Copy patch file

  1. Download and unzip WISE-1530_SDK_4.1.8_platform_patch.zip
  2. Copy platforms and WICED folders to <SDK folder>\43xxx_Wi-Fi\ and select replace

Build Source File

Make a "Make Target" file

       Step1: In Make Target window click mouse right button

       Step2: Select New...

WICED make target new.png

       Step3: Type "snip.gpio-WISE_1530"

RTENOTITLE

Field explanation: snip.gpio-WISE_1530

  • snip.gpio: application project name
  • WISE_1530: platform name, for WISE-1530 platform don't change this field 

RTENOTITLE



​       

Build Project

Double click "Make Target" file to build project.

RTENOTITLE

It is build complete when you see below 

RTENOTITLE

Generate a Programming File

It will generate three bin files in <SDK folder>\43xxx_Wi-Fi\build folder when build complete.

  1. Bootloader: waf.bootloader-NoOS-WISE_1530.bin 
  2. DCT( Device Configuration Table): DCT.bin:
  3. Application: snip.gpio-WISE_1530.bin

RTENOTITLE

Download and install J-Link software, we need J-Flash tool to combine three bin files for programming.

Launch J-Flash

RTENOTITLE

Open bootloader bin file

RTENOTITLE

Merge DCT bin file

RTENOTITLE

Merge application bin file

RTENOTITLE

Save as a final bin file

RTENOTITLE

Programming 

Generate a programming file then use WISE-ED22 to program WISE-1530. User can refer WISE-ED22 Drag-n-drop Programming section.

Example: BLE WiFi Introducer

Introduction

The BLE WiFi Introducer app shows an example interfacing the BLE and WiFi components on a combo chip. It demonstrates GATT database initialization, DCT configuration, processing read/write requests from a BLE client, and sending data to the client. The BLE WiFi Introducer has two components, an app running on a WICED devices, and an app(BLE Scanner) running on Android device.

RTENOTITLE


Step by step usage guide:

Step 1: download ble_wifi_introducer.bin to WISE-1530, then see the below on console screen.

WISE-1530 Ble Wifi Introducer start v2.png

Step 1: Install BLE Scanner and launch the app in cell phone.

Step 2: Drop the screen to rescan device, it will list out BLE device nearby.

Step 3: Find WiFiInt device and press CONNECT button.

WISE-1530 BLE scaaner-1.png 


Step 4: If the connection is successful can see the below picture then press  "CUSTOM SERVICE" button.

WISE-1530 BLE scaaner-2.png


Step 5: Find the UUID: ACA0EF7C-EEAA-48AD-9508-19A6F6B356CE for SSID characteristic. Press the "W" button then input new SSID name.

            User can press "R" button to chedk new SSID name.

WISE-1530 BLE scaaner-3.png

Step 6:  Find the UUID: 40B7DE33-93E4-4C8B-A876-D833B415A6CE for Password characteristic then procedure as Step5.

WISE-1530 BLE scanner-4.png

Step 7: If the join is successful can see network IP on console screen.

WISE-1530 BLE scanner-5.png