EasyManua.ls Logo

Avnet SmartEdge - 5.3. SYSTEM OPERATIONS; 5.4. WHATS NEXT; 5.5. PROVISIONING MULTIPLE DEVICES

Avnet SmartEdge
39 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
SmartEdge Industrial IoT Gateway
User Guide
http://www.element14.com/gateway Page 31
For the CloudSDKDefault options, you should add the section names [CloudSDKDefaultObject<xxx>] sequentially
numbered and update the DefaultObjectCount in the CloudSystemControl section accordingly
EXAMPLE
You can add/modify the python code in user_functions.py. The user_callbackMessage(msg) receives COMMANDS from
the cloud and user_Initialize() is called when the SDK starts to contain any custom initialization code. Both of these
functions must be present.
For a simple test, add a section to the IoTConnectSDK.conf file:
[CloudSDKDefaultObject2]
# Predefined objects can go here. NUMBER/STRING/OBJECT
Value=NUMBER
Name=TestUserFunction
UsePythonInterface=ThisIsMyFunction
Then uncomment the function ThisIsMyFunction() in user_functions.py
Restart the SDK (either reboot, or sudo systemctl restart iotconnectservice)
The new information you just added should show up on the cloud
5.3. SYSTEM OPERATIONS
CONFIGURATION MODE
On initial boot, the system comes up in configuration mode. A REST API runs, and the Gateway's WiFi is configured for
Access Point mode. From a mobile device or other WiFi connected PC, you can connect directly to the Gateway's WiFi
(SSID = "IotGateway <sn/cpuid>"). You can determine your Gateway's S/N from the HDMI monitor output.
If you have trouble with the mobile App configuration, and no longer have the WiFi AP as an option, you may have to re-
enter configuration mode on the Gateway. To do this, press and hold the factory reset button for 10 seconds. This will
restart and re-enable the WiFi AP mode.
NORMAL MODE
Once configured the Gateway enters normal mode. The WiFi AP and REST API are disabled, IoTConnect API is running.
TOP LED STATUS INDICATORS
Configuration Mode: green-off-red-off
Normal Mode with cloud connection: green-off-green-off
Shutdown/Reboot/Halt: red fast blink
5.4. WHAT’S NEXT
The IoTConnect SDK can be customized for your application. Additional sensors and controls can be added for the
cloud connection. See the custom github (Sec 4.1) for information.
5.5. PROVISIONING MULTIPLE DEVICES
Multiple gateways can be provisioned without the Mobile Application. It is best to use the Ethernet connection to the
Gateway for this. See section 6.3 for the supported REST API.

Table of Contents

Other manuals for Avnet SmartEdge