MCU/WISE-1540 SDK

From ESS-WIKI
Revision as of 05:00, 14 August 2017 by Will.chen (talk | contribs)
Jump to: navigation, search

Introduction

This document is description about WISE-1540 software development kit (SDK). It includes source tree of SDK, development environment, flash programming…etc. There are some examples provided by WISE-1540 SDK the user can refer to it for how to do about connection to WISE-PaaS, communication between mote and gateway…etc., and also can refer to it for developing their application.

Glossary

  • Gateway
The gateway like WISE-3310 has connectivity with SmartMesh IP manager responsible for communication with WISE-1540.

  • Mote
The mote is WISE-1540 that has connectivity with SmartMesh IP mote responsible for communication with gateway.


WISE-1540 Software Development Kit (SDK)

Source Tree

The user can find source tree as below from xxx.


Directory Description
doc/ Documents about WISE-1540 SDK.
inc/ Header files including examples, sensor driver and etc.
lib/ Library.
src/ Source files including examples, sensor driver and etc.


Setup Development Environment

Preparing for Hardware

The user needs to prepare for hardware as following:
  • For mote, WISE-1540, WISE-1500 and WISE-ED20 or WISE-ED22.
  • For gateway, WISE-3310.
  • PC running LINUX operating systems such as Ubuntu 16.04.1.

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

Step01: Please prepare boards as below.
WISE1520 SDK HW 04-6.png
WISE-1540

WISE-1500

WISE-ED20

SW2 on WISE-ED20

  • Please check pin1 and pin2 to “ON” as default.
  • Switch pin1 to “ON”: flash programming, “OFF”: boot from flash.

CN2 on WISE-1500

  • Booting into the mode of network connection when both 3.3V and GPIO0 are opened.
  • Booting into the mode of console of API when both 3.3V and GPIO0 are shorted.

SW3 on WISE-1500

  • Please check pin1 and pin2 to “OFF” as default.
  • Switch pin2 to decide whether running “backup to default” while device booting. “ON”: enabled, “OFF”: disabled.

One reset button on WISE-1500 and the other on WISE-ED20

Micro USB connector

  • Power supplies for UART3 debug port.

Com port

  • No supported.


Setting for Connectivity

WISE-1540 is designed in connectivity for wireless IoT communication with Linear Dust SmartMesh IP wireless sensor networks. The Linear Dust networks support a self-forming and self-healing mesh network solution complaint to 6LoWPAN Internet Protocol (IP) and IEEE802.15.4e standard. Before using WISE-1540 SDK, the user needs to check or set some parameters through the console for API.


Console for API


Information and Parameters Setting

The user needs to double check connectivity setting the same as below table with SmartMesh IP networks before using WISE-1540 SDK:

Parameter​ Expected Setting
Network ID 2001 (The same as manager on WISE-3310)
Join Key 4A4F494E414456414E54454348494F54 (The same as manager on WISE-3310)
Auto Join On