Download M2mpower Application Guide - conrad
Transcript
M2M Power Application guide
Contents
1
Introduction ................................................................................................................. 4
1.1
Purpose of Guide ................................................................................................ 4
1.2
Who Should Read This Guide?........................................................................... 4
1.3
Prerequisites ....................................................................................................... 4
1.4
Related Documentation....................................................................................... 5
2
Software Features....................................................................................................... 9
2.1
M2mpower Integrated Development Environment .............................................. 9
2.2
PC Specification .................................................................................................. 9
2.3
Overview ............................................................................................................. 9
2.4
The IDE Software .............................................................................................. 10
2.4.1
Installing the IDE Software ........................................................................ 10
2.4.2
Getting Started with IDE ............................................................................ 11
2.4.3
Using the IDE software.............................................................................. 11
2.5
Library Toolbar .................................................................................................. 14
2.5.1
M2mpower IDE.......................................................................................... 15
3
How is the script embedded?.................................................................................... 17
3.1
Environment ...................................................................................................... 17
3.2
Limitations ......................................................................................................... 18
4
Script Interpreter ....................................................................................................... 19
4.1
Overview of the Script Interpreter...................................................................... 19
4.2
Interpreter Language......................................................................................... 19
4.3
Limitations ......................................................................................................... 19
4.4
5 Steps to Application Production ..................................................................... 20
4.4.1
Writing a script........................................................................................... 20
4.5
Script Memory Storage...................................................................................... 21
5
Support...................................................................................................................... 22
6
Intrinsic Function Library ........................................................................................... 23
6.1
Level 1 Functions .............................................................................................. 23
6.2
Level 2 Functions .............................................................................................. 25
6.3
Level 3 Functions .............................................................................................. 25
7
Application examples ................................................................................................ 27
8
Controller Mode......................................................................................................... 28
8.1
Introduction........................................................................................................ 28
8.2
Technical Description of Controller Mode ......................................................... 28
8.2.1
Limitations – restricted functionality........................................................... 29
8.3
Controller Mode Example.................................................................................. 30
8.3.1
Running the Example Script ...................................................................... 31
8.4
Controller Mode Script {Controller_Mode.sc} .................................................... 31
9
Keypad and I2C LCD ................................................................................................ 34
9.1
Introduction........................................................................................................ 34
9.2
Keypad .............................................................................................................. 34
9.2.1
Operation................................................................................................... 34
9.2.2
Set-up ........................................................................................................ 34
9.2.3
Example .................................................................................................... 36
9.3
I2C LCD............................................................................................................. 39
9.3.1
Operation................................................................................................... 39
9.3.2
Set-up ........................................................................................................ 39
9.4
Fixed Cellular Terminal Application {FCT.sc}.................................................... 43
10
Demo Board .......................................................................................................... 47
10.1 Demo Board Information ................................................................................... 47
LZT 123 7588 R2B
2