![Advantech WISE-1540 User Manual Download Page 41](http://html1.mh-extra.com/html/advantech/wise-1540/wise-1540_user-manual_2856916041.webp)
WISE-1540 User Manual
40
4.3.
Exchange Data with Sensor Format
This example is demonstrated how it could exchange data with sensor format
between mote and gateway. The sensor format defined by Advantech combines IPSO
data format with CoAP like protocol. By implementation the user needs to study
“WISE sensor API” to know how to add sensor by self. In example it adds fake
temperature sensor with sensor format and exchanges data between mote and
gateway. Finally the fake temperature will be transfer to WISE-PaaS and it is
presented by UI on browser, but WISE-PaaS has no more detailed in this document.
Please get contact about WISE-PaaS detailed with Advantech if needed.
How to Handle Data between Mote and Gateway
Based on sensor format, the brief in bidirectional explain how it has been
implemented in example as below:
From mote to gateway:
①
The data accessed from sensor are encoded as packet with sensor format by
mote.
②
The packet is sent from mote to gateway.
③
The packet is received and decoded by gateway and then the received information
will be transfer to WISE-PaaS.
From gateway to mote
:
①
The data and command are encoded as packet by gateway.
②
The packet is sent from gateway to mote.
③
The packet is received and decoded by mote.
④
Depend on command/data received from gateway, the information about
WISE-1540 and sensor data in real time are encoded by mote and send it back to
gateway.
Running Example
Please refer to the following to run example between mote and gateway:
Running example on Gateway
There is nothing to do. This example is supported as default on WISE-3310.