Advantech WISE-2410 Series User Manual

Advantech WISE-2410 Series User Manual

Frame data parser for wise lora modules
Hide thumbs Also See for WISE-2410 Series:

Advertisement

Quick Links

Frame Data Parser for WISE LoRa modules v1.3.7
User Manual
Frame Data Parser for
WISE LoRa modules
(JavaScript version)
V1.3.7
1
Advantech Co., Ltd., Copyright 2020

Advertisement

Table of Contents
loading

Summary of Contents for Advantech WISE-2410 Series

  • Page 1 Frame Data Parser for WISE LoRa modules v1.3.7 User Manual Frame Data Parser for WISE LoRa modules (JavaScript version) V1.3.7 Advantech Co., Ltd., Copyright 2020...
  • Page 2: Table Of Contents

    Device ......................20 3.1.4 Digital Input ....................20 3.1.5 Digital Output ....................22 3.1.6 Analog Input ....................23 3.1.7 RS-485 Coil Data .................... 25 3.1.8 RS-485 Register Data ..................26 3.1.9 FFT (Fast Fourier Transform) ................. 27 Advantech Co., Ltd., Copyright 2020...
  • Page 3 Frame Data Parser for WISE LoRa modules v1.3.7 3.1.9.1 FFT in CSV format ..................27 3.1.9.2 FFT in JSON format ..................27 3.1.9.3 FFT Data Re-transmission ................28 3.1.10 Axis Data ......................28 3.2. Sample Output ....................29 Appendix .......................... 38 Advantech Co., Ltd., Copyright 2020...
  • Page 4 Chapter 2.2 and Chapter 3.1.9.3 1.3.4 2020/05/14 In Chapter 3.1.2, add column LogIndex 1.3.5 2020/07/08 In Chapter 3.1.2, edit field name Displacement 1.3.6 2020/09/03 In Chapter 3.1.2, add column Time 1.3.7 2020/09/30 In Chapter 3, change DO output format Advantech Co., Ltd., Copyright 2020...
  • Page 5 Frame Data Parser for WISE LoRa modules v1.3.7 Chapter Advantech Co., Ltd., Copyright 2020...
  • Page 6: Introduction

    WISE LoRa modules received in LoRa Gateway. WISE-2410 is a vibration sensor with LoRa/LoRaWAN wireless technology provided by Advantech. In this document, we use Advantech WISE-6610 as the gateway to receive frame data sent from WISE-2410.
  • Page 7 Frame Data Parser for WISE LoRa modules v1.3.7 Chapter Advantech Co., Ltd., Copyright 2020...
  • Page 8: Installations

    First, please establish connection between WISE-6610 and WISE-2410. Then start the Node-Red service in WISE-6610. 2.2. Operation Steps Open web browser and navigate to Node-Red pages in WISE-6610. In Node-Red, create a new Flow and add MQTT node, JSON node. Advantech Co., Ltd., Copyright 2020...
  • Page 9 Fill the MQTT server information in MQTT node. One parser function only support a single node uplink, Topic is the node MAC. Place a Function Node and a Debug node. Then connect all nodes mentioned above. You will see below figure. Advantech Co., Ltd., Copyright 2020...
  • Page 10 Use Text Editor to open the JS file provided by this sample and copy all file content into clipboard. Double click Function node (named “parsePayload” here) and paste all content of JS file into Function node. Advantech Co., Ltd., Copyright 2020...
  • Page 11 WISE-6610, you will see the parsed output of sample program in the Debug Tab on the right side. (Optional) Get FFT (Fast Fourier Transform) data in CSV format from MQTT subscription. Set outputs of function node to 2. Advantech Co., Ltd., Copyright 2020...
  • Page 12 Frame Data Parser for WISE LoRa modules v1.3.7 Place a MQTT out node and connect it with “parsePayload“ node. iii. Fill the MQTT server and Topic information in MQTT out node. User could define MQTT Server and Topic name. Advantech Co., Ltd., Copyright 2020...
  • Page 13 FFT data to WISE-6610. 10. (Optional) If packet lost occurs, user could get packet re-transmission information from MQTT subscription. Set outputs of function node to 3. Place a MQTT out node and connect it with “parsePayload“ node. Advantech Co., Ltd., Copyright 2020...
  • Page 14 Fill the MQTT server and Topic information in MQTT out node. Deploy the Node-Red and use software tool (ex: MQTT.fx) to subscribe this topic. You will get data re-transmission information in JSON format when lost packet. Please refer to Chapter 3.1.9.3 JSON definition. Advantech Co., Ltd., Copyright 2020...
  • Page 15 Frame Data Parser for WISE LoRa modules v1.3.7 Chapter Advantech Co., Ltd., Copyright 2020...
  • Page 16: Data Structure Definition

    Digital Input. Please refer to Chapter 3.1.4. DO(channel) Digital Output. Please refer to Digital Output Chapter 3.1.5. AI(channel) Analog Input Analog Input. Please refer to Chapter 3.1.6. RtuCoil(port)-(channel) Coil Data RS-485 Coil data. Please refer to Chapter 3.1.7. Advantech Co., Ltd., Copyright 2020...
  • Page 17: Temperature

    Range: 0x0 – 0x3 Temp./Humidity Bit 0 High alarm status Read 1: high alarm occurred. 0: not occurred Write 0: clear the high alarm status Bit 1 Low Alarm Status Read 1: low alarm occurred. 0: not occurred Advantech Co., Ltd., Copyright 2020...
  • Page 18: Accelerometer

    3.1.2 Accelerometer Field Name Data Type Description LogIndex Index number of logged feature data, raw data or FFT data Time The time to start measuring vibration X-Axis, Object X, Y, or Z Axis Y-Axis, Z-Axis Advantech Co., Ltd., Copyright 2020...
  • Page 19 ) (2 Bytes) RMSmg RMS of Acceleration (0.001g or 0.01 m/s ) (2 Bytes) Kurtosis Kurtosis (0.01) (2 Bytes) CrestFactor Crest factor (0.01) (2 Bytes) Skewness Skewness (0.01) (2 Bytes) Deviation Standard deviation (0.01) (2 Bytes) Advantech Co., Ltd., Copyright 2020...
  • Page 20: Device

    Battery low RTC low Reserved PowerSrc Bit Order Description Power line Battery Solar panels Reserved BatteryVolt The battery voltage, unit: mV. Time Timestamp GNSS Object Latitude Longitude 3.1.4 Digital Input Field Name Data Type Description Advantech Co., Ltd., Copyright 2020...
  • Page 21 Write 0: clear the overflow status Get/Clear L2H Latch Status Read 1: L2H latch occurred. 0: no L2H latch Write 0: clear the L2H latch status Get/Clear H2L Latch Status Read 1: H2L latch occurred. 0: no H2L latch Advantech Co., Ltd., Copyright 2020...
  • Page 22: Digital Output

    / 0: Output signal is Logic High or Low Pulse Output Continue / 0: Pulse outputting is continuous or not DO Change PulsAbs When DO mode is set in Pulse Output mode, this is the absolute pulse value. Advantech Co., Ltd., Copyright 2020...
  • Page 23: Analog Input

    When DO mode is set in Pulse Output mode, this is the incremental pulse value. 3.1.6 Analog Input Field Name Data Type Description Range -150mv~150mv -500mv~500mv -1v~1v -5v~5v -10v~10v 0~150mv 0~500mv 0~1v 0~5v 0~10v 4mA~20mA -20mA~20mA 0~20mA Reserved Reserved PT100(385) -200~ +600℃ Advantech Co., Ltd., Copyright 2020...
  • Page 24 AI value is the measurement raw data with range 0 to 0xFFFF. Event Bit Order Description Fail to provide AI value (UART timeout, ADC error) Over Range Under Range Open Circuit (Burnout) Reserved Unavailable Channel Configuration (Channel Disabled, DI Mode Used) Advantech Co., Ltd., Copyright 2020...
  • Page 25: Rs-485 Coil Data

    0 (0x00) No error 1 (0x01) Illegal function 2 (0x02) Illegal data address 3 (0x03) Illegal data value 4 (0x04) Slave device failure 5 (0x05) Acknowledge 6 (0x06) Slave device busy 7 (0x07) Negative acknowledge Advantech Co., Ltd., Copyright 2020...
  • Page 26: Rs-485 Register Data

    3.1.8 RS-485 Register Data Field Name Data Type Description Status The error status of polling this channel can refer to Coil Status in the previous section. Data The register data with range 0 to 0xFFFF. Advantech Co., Ltd., Copyright 2020...
  • Page 27: Fft (Fast Fourier Transform)

    3.1.9.2 FFT in JSON format Field Name Data Type Description LOG_INDEX (For packet transmission only) Index number of each FFT data round. TIME FFT Data time. SAMPLING_RATE The average number of samples obtained in one second. Advantech Co., Ltd., Copyright 2020...
  • Page 28: Fft Data Re-Transmission

    FFT data round contains 4800 bytes (2400 data), the range of the value is 0 to 4799. LENGTH Length of lost FFT data, unit: byte. 3.1.10 Axis Data Field Name Data Type Description AXIS_TYPE String X, Y, or Z Axis. Advantech Co., Ltd., Copyright 2020...
  • Page 29: Sample Output

    0 to 799. DATA Array Array of FFT Data value, unit: mg. 3.2. Sample Output "SequenceNumber": 110, "TotalLength": 45, "SourceAddress": null, "TempHumi": { "Range": 0, "Event": 0, "SenVal": 33312 "Accelerometer": { "X-Axis": { "SenEvent": 0, "OAVelocity": 530, Advantech Co., Ltd., Copyright 2020...
  • Page 30 "Kurtosis": -12, "CrestFactor": 359, "Skewness": 46, "Deviation": 24, "Peak-to-Peak Displacement": 6 "Y-Axis": { "SenEvent": 0, "OAVelocity": 174, "Peakmg": 257, "RMSmg": 182, "Kurtosis": -26, "CrestFactor": 654, "Skewness": 38, "Deviation": 26, "Peak-to-Peak Displacement": 4 "Z-Axis": { "SenEvent": 0, Advantech Co., Ltd., Copyright 2020...
  • Page 31 "Skewness": 0, "Deviation": 0, "Peak-to-Peak Displacement": 0 "LogIndex": 10, "Time":1487060882 "DI0": { "status": { "Signal Logic": 0, "Start Counter": 1, "Get/Clean Counter Overflow": 0, "Get/Clean L2H Latch": 0, "Get/Clean H2L Latch": 0, "DI Change": 0 Advantech Co., Ltd., Copyright 2020...
  • Page 32 "Get/Clean Counter Overflow": 0, "Get/Clean L2H Latch": 0, "Get/Clean H2L Latch": 0, "DI Change": 0 "mode": 0, "value": 0 "DO0": { "Mode": "Pulse output", "status": { "Signal Logic": 0, "Pulse Output Continue": 0, "DO Change": 0 Advantech Co., Ltd., Copyright 2020...
  • Page 33 "PulsInc": 0 "AI0": { "Range": 4, "status": { "Low Alarm": 0, "High Alarm": 0 "Raw Data": 32767, "Event": 0, "MaxVal": 32768, "MinVal": 32767 "AI1": { "Range": 4, "status": { "Low Alarm": 0, "High Alarm": 0 Advantech Co., Ltd., Copyright 2020...
  • Page 34 "MinVal": 32767 "AI2": { "Range": 4, "status": { "Low Alarm": 0, "High Alarm": 0 "Raw Data": 32768, "Event": 0, "MaxVal": 32768, "MinVal": 32767 "AI3": { "Range": 4, "status": { "Low Alarm": 0, "High Alarm": 0 Advantech Co., Ltd., Copyright 2020...
  • Page 35 Frame Data Parser for WISE LoRa modules v1.3.7 "Raw Data": 32767, "Event": 0, "MaxVal": 32768, "MinVal": 32767 "RtuCoil0-2": { "Status": 17, "Data": 0 "RtuRegister0-0": { "Status": 17, "Data": 0 "RtuCoil1-0": { "Status": 0, "Data": 1 "RtuCoil1-1": { "Status": 0, "Data": 1 Advantech Co., Ltd., Copyright 2020...
  • Page 36 "RtuRegister1-0": { "Status": 0, "Data": 65535 "Device": { "Events": 0, "PowerSrc": 2, "BatteryVolt": 4064, "Time": 1552645805, "GNSS": { "Latitude": "48.11730 N", "Longitude": "11.51666 W" "FFT": { "LOG_INDEX": 126, "TIME": 1552536694, "SAMPLING_RATE": 3200, "NUMBER_OF_SAMPLES": 2048, "START_BYTE_OFFSET": 1570, Advantech Co., Ltd., Copyright 2020...
  • Page 37 Frame Data Parser for WISE LoRa modules v1.3.7 "END_BYTE_OFFSET": 1581, "AXIS_DATA": [ "AXIS_TYPE": "X", "START_SAMPLE_INDEX": 797, "END_SAMPLE_INDEX": 799, "DATA": [ "AXIS_TYPE": "Y", "START_SAMPLE_INDEX": 0, "END_SAMPLE_INDEX": 2, "DATA": [ 1160, 580, Advantech Co., Ltd., Copyright 2020...
  • Page 38: Appendix

    In FFT Data payload, user could check if there is any packet lost by checking the discontinuous of SequenceNumber or BYTE_OFFSET. If packet lost occurs, user could use FFT index, offset and lost length to get lost packet. Advantech Co., Ltd., Copyright 2020...

This manual is also suitable for:

Wise-4610 series

Table of Contents