
Chapter 12 Device Logic (Pawn)
Chapter 12 Device Logic (Pawn)
12.1 General
The following chapter describes the functionality of the device logic. The programming language used is
"Pawn" (previously SMALL), a scripting language similar to C that runs on embedded systems.
Additional, more detailed information is provided on the developer's website:
http://www.compuphase.com/pawn/pawn.htm.
There are several ways to create a device logic for the myDatalogEASY IoTmini :
l
Direct entry in the "Device Logic" input field in the "Control" configuration section
l
Upload of a previously created binary file (*.amx) to the myDatanet server
l
Usage of the CODEbed of the web-based development environment rapidM2M Studio
12.1.1 Direct entry of a device logic
The device logic is entered via the "Control" configuration section (see "Control" on page 73) of the input
screen for configuring the site. "Pawn" must be selected as the "Device Logic Type" so that the
myDatalogEASY IoTmini interprets the commands entered under "Device Logic" as a pawn script.
12.1.2 Uploading a binary file
If the "Upload a compiled device logic" entry was selected via the "Device logic source" list selection in the
"Control" configuration section (see "Control" on page 73) of the input screen for configuring the site, a binary
file that was, for example, previously created via the web-based development environment rapidM2M Studio
(see "rapidM2M Studio " on page 79) can be uploaded to the myDatanet server. This is then loaded into the
myDatalogEASY IoTmini during the next connection. When using this method, "Pawn" must also be selected
as the "Device Logic Type" so that the myDatalogEASY IoTmini interprets the commands as a pawn script.
12.1.3 Using the CODEbed of the web-based development environment rapidM2M
Studio
The CODEbed is one of the two main interfaces of the web-based development environment rapidM2M
Studio . The CODEbed serves to create and compile source codes for all elements (device logic, backend
logic, data descriptor and portal view) of an IoT application. The functional scope of the rapidM2M Studio also
includes transfer of the compiled device logic into the myDatalogEASY IoTmini via a USB connection and
copying of the data descriptor to the development site with which the myDatalogEASY IoTmini is linked.
Rev. 01
83
Содержание myDatalogEASY IoTmini
Страница 2: ......
Страница 11: ...Chapter 2 Declaration of conformity Chapter 2 Declaration of conformity Rev 01 11 ...
Страница 12: ......
Страница 34: ......
Страница 66: ......
Страница 78: ......
Страница 82: ......
Страница 186: ......
Страница 194: ......
Страница 196: ......
Страница 202: ......
Страница 205: ...Chapter 19 Document history Chapter 19 Document history Rev Date Changes 01 28 08 2020 First version Rev 01 205 ...
Страница 206: ......
Страница 208: ......