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...
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...
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...
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...
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...
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...
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...
/ 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...
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...
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...
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...
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...
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...