Difference between revisions of "MCU/WISE-1540 SDK"

From ESS-WIKI
Jump to: navigation, search
Line 43: Line 43:
 
*For gateway, WISE-3310.
 
*For gateway, WISE-3310.
 
*PC running LINUX operating systems such as Ubuntu 16.04.1.
 
*PC running LINUX operating systems such as Ubuntu 16.04.1.
 +
</div><div style="margin-left:0.847cm;margin-right:0cm;"></div><div style="margin-left:0.847cm;margin-right:0cm;">
 +
Please refer to the following steps for setup a WISE series of boards before using WISE-1540 SDK.
 +
</div><div style="margin-left:0.75cm;margin-right:0cm;">
 +
'''Step01:''' Please prepare boards as below. [[File:WISE1520 SDK HW 04-6.png|center|WISE1520 SDK HW 04-6.png]] <span style="color:#7030a0;">'''①'''</span><span style="color:#7030a0;">WISE-1540</span>
 +
 +
<span style="color:#e36c0a;">'''②'''</span><span style="color:#e36c0a;">WISE-1500</span>
 +
 +
<span style="color:#ffc000;">'''③'''</span><span style="color:#ffc000;">WISE-ED20</span>
 +
 +
<span style="color:#ff0000;">'''④'''</span><span style="color:#ff0000;">SW2 on WISE-ED20</span>
 +
 +
*Please check pin1 and pin2 to “ON” as default.
 +
*<span style="color:#000000;">Switch pin1 to “ON”: flash programming, “OFF”: boot from flash.</span>
 +
 +
<span style="color:#808000;">'''⑤'''</span><span style="color:#808000;">CN2 on WISE-1500</span>
 +
 +
*Booting into the mode of network connection when both 3.3V and GPIO0 are opened.
 +
*Booting into the mode of console of API&nbsp;when both 3.3V and GPIO0 are shorted.
 +
 +
<span style="color:#00b0f0;">'''⑥'''</span><span style="color:#00b0f0;">SW3 on WISE-1500</span>
 +
 +
*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.
 +
 +
<span style="color:#47f31d;">'''⑦'''</span><span style="color:#47f31d;">One reset button on WISE-1500 and the other on WISE-ED20</span>
 +
 +
<span style="color:#984806;">'''⑧'''</span><span style="color:#632423;">Micro USB connector</span>
 +
 +
*Power supplies for UART3 debug port.
 +
 +
<span style="color:#ff719f;">'''⑨'''</span><span style="color:#ff719f;">Com port</span>
 +
 +
*<span style="color:#000000;">No supported.</span>
 +
 +
 
</div>
 
</div>

Revision as of 09:09, 10 August 2017

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.