Difference between revisions of "IoTGateway/SDK"
(Created page with "=Sensor Network Manager APIs=") |
Eric.liang (talk | contribs) (→Overview) |
||
(30 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | =[[IoTGateway/SDK/ | + | =Overview= |
+ | :This tutorial is designed for software programmers who want to learn the basics of '''''WSN API SDK''''' and its architectural concepts. This tutorial will give you enough understanding on all the necessary components of '''''WSN API SDK''''' with suitable examples. | ||
+ | <br /><br /> | ||
+ | |||
+ | [[File:WsnAPIFramework.jpg|500x350px|WSN API Software Stack]] | ||
+ | |||
+ | =Documentation= | ||
+ | [[IoTGateway/SDK/WirelessSensorNetworkSDK|'''<big><big>Advantech Sensor Format in JSON</big></big>''']] | ||
+ | <br /> | ||
+ | |||
+ | =Install WSN SDK= | ||
+ | You can get the latest Wireless Sensor Network Software Development Kit(SDK) version from: | ||
+ | *[[WISE-3310/IoTGwWSNSDKDownload|WSN API SDK for WISE-3310]] | ||
+ | |||
+ | 1. Copy the WSN SDK to your Target Device ( ex: WISE-3310 ) | ||
+ | |||
+ | 2. Unzip the SDK | ||
+ | #unzip sennet-wise_3310-1.2.00.0280.zip | ||
+ | [[File:Installation WSN SDK 1.jpg|761×73px|unzip]] | ||
+ | |||
+ | 3. To install the wsn sdk & select target folder ( Recommend use the Default "/usr/lib/" setting <- Enter ) | ||
+ | #./sennet-wise_3310-1.2.00.0280.run | ||
+ | [[File:Installation WSN SDK 2.jpg|761×99px|installer]] | ||
+ | |||
+ | 4. Completed the Installation | ||
+ | [[File:Installation WSN SDK 3.jpg|761×772px|Completed]] | ||
+ | |||
+ | 5. You can then run the wsn demo application | ||
+ | #sampleSNManagerAPI | ||
+ | [[File:Installation WSN SDK 4.jpg|745×665px|sample]] | ||
+ | |||
+ | [[IoTGateway/SDK/InstallationOfWsnSDK|'''<big><big>Installation of Wireless Sensor Network (WSN) SDK</big></big>''']] | ||
+ | <br /><br /> | ||
+ | |||
+ | =Sample Code Use Case= | ||
+ | ==Sample Code of WSN API SDK== | ||
+ | =Note= | ||
+ | '''Please disable "cagnet" to run the sample code. Because the COM port can be used by one program only.''' | ||
+ | #/ect/init.d/saagent stop | ||
+ | |||
+ | =Abstrac= | ||
+ | The following example shows how to use the '''"WSN API SDK"'''. The sample code for the command line tool to perform get/set IoT gateway(WISE-3310) and Sensor Hub(WISE-1020)s' status. | ||
+ | |||
+ | =Sample Code= | ||
+ | [[IoTGW/WSNApiSDK/SampleCode/C|Sample Code]] demonstrates how to use the WSN API SDK to manage IoTGW and Sensor Hubs. | ||
+ | |||
+ | |||
+ | [[IoTGW/SDK/SampleCodeUseCase|'''<big><big>Use Case</big></big>''']] | ||
+ | ==Sample Code of WSN APIMux SDK== | ||
+ | '''<big><big>Abstrac</big></big>'''<br /> | ||
+ | |||
+ | The following example shows how to use the '''"WSN APIMux SDK"'''. The sample code for the command line tool to perform get/set IoT gateway(WISE-3310) and Sensor Hub(WISE-1020)s' status.<br /> | ||
+ | WSN APIMux SDK only supports '''SN_Manager_GetData''' and '''SN_Manager_SetData''' two functions. | ||
+ | |||
+ | |||
+ | =Sample Code= | ||
+ | [[IoTGW/WSNApiMuxSDK/SampleCode/C|Sample Code]] demonstrates how to use the WSN API Mux SDK to manage IoTGW and Sensor Hubs. | ||
+ | |||
+ | =Sample Code Use Case= | ||
+ | [[IoTGW/SDK/APIMuxSampleCodeUseCase|'''<big><big>Use Case</big></big>''']] | ||
+ | |||
+ | =Creating a New Network Type= | ||
+ | [[IoTGateway/SDK/NALInterface|'''<big><big>Network Abstraction Layer Interface</big></big>''']] | ||
+ | <br /><br /> | ||
+ | |||
+ | [[Category:Product & Service]] |
Latest revision as of 04:17, 18 August 2016
Contents
Overview
- This tutorial is designed for software programmers who want to learn the basics of WSN API SDK and its architectural concepts. This tutorial will give you enough understanding on all the necessary components of WSN API SDK with suitable examples.
Documentation
Advantech Sensor Format in JSON
Install WSN SDK
You can get the latest Wireless Sensor Network Software Development Kit(SDK) version from:
1. Copy the WSN SDK to your Target Device ( ex: WISE-3310 )
2. Unzip the SDK #unzip sennet-wise_3310-1.2.00.0280.zip![]()
3. To install the wsn sdk & select target folder ( Recommend use the Default "/usr/lib/" setting <- Enter ) #./sennet-wise_3310-1.2.00.0280.run![]()
4. Completed the Installation![]()
5. You can then run the wsn demo application #sampleSNManagerAPI![]()
Installation of Wireless Sensor Network (WSN) SDK
Sample Code Use Case
Sample Code of WSN API SDK
Note
Please disable "cagnet" to run the sample code. Because the COM port can be used by one program only. #/ect/init.d/saagent stop
Abstrac
The following example shows how to use the "WSN API SDK". The sample code for the command line tool to perform get/set IoT gateway(WISE-3310) and Sensor Hub(WISE-1020)s' status.
Sample Code
Sample Code demonstrates how to use the WSN API SDK to manage IoTGW and Sensor Hubs.
Sample Code of WSN APIMux SDK
Abstrac
The following example shows how to use the "WSN APIMux SDK". The sample code for the command line tool to perform get/set IoT gateway(WISE-3310) and Sensor Hub(WISE-1020)s' status.
WSN APIMux SDK only supports SN_Manager_GetData and SN_Manager_SetData two functions.
Sample Code
Sample Code demonstrates how to use the WSN API Mux SDK to manage IoTGW and Sensor Hubs.