www.dragino o.com WTTSTemperaature Sensor UserM Manual Do ocument Version: 0.1 Image Version: v1.
www.dragino.com 0.1 Draft 1.0 Fix typo. 2021-Aug-9 1. Introduction ................................................................................................................................ 4 1.1 What is WTS Temperature & Humidity Sensor .............................................................................. 4 1.2 Features ......................................................................................................................................... 5 1.3 Specifications ..........
www.dragino.com 3.3 Set system time ............................................................................................................................ 29 3.4 Set Time Sync Mode ..................................................................................................................... 29 3.5 Set Time Sync Interval .................................................................................................................. 29 3.6 Clear Flash Record ...................................
www.dragino o.com 1. Introductio on 1.1 What is WTTS Temperaature & Hum midity Sensor The WTS Temperrature sensor isa Long Ran nge LoRaWAN NSensor. It inccludes a builtt-in Temperatture senssor. The WTS allows users u to send data and reaach extremelyy long rangess. It provides ultra-long ran nge spreead spectrum communicattion and high h interference e immunity whilst w minimizzing current conssumption.
www.dragino.com WTS supports Data-log feature, it will store the data when there is no LoRaWAN network and upload them to LoRaWAN server when there is LoRaWAN network coverage again WTS has a built-in 3.8Ah non-chargeable battery which can be used for long term. WTS is full compatible with LoRaWAN v1.0.3Class A protocol, it can work with standard LoRaWAN gateway. 1.2 Features Wall mountable, in place / out of place detection LoRaWAN v1.0.3 Class A Protocol Built-in 3.
www.dragino.com MAX: 1.5 Storage & Operation Temperature -40°C to 65°C 1.6 Applications Food Chain Smart Buildings & Home Automation Logistics and Supply Chain Management Smart Cities Smart Factory 1.
www.dragino o.
www.dragino.com 2. Operation Mode 2.1 How to activateWTS? The WTS has two working modes: Deep Sleep Mode: WTSdoesn’t have any LoRaWAN activate. This mode is used for storage and shipping to save battery life. Working Mode: In this mode, WTS will work as LoRaWAN Sensor to Join LoRaWAN network and send out sensor data to server. Between each sampling/transmit periodically, WTS will be in STOP mode (IDLE mode), in STOP mode, WTS has the same power consumption as Deep Sleep mode.
www.dragino o.com ume the LG30 08 is already set s to connecct to TTN V3 network . Wee need to add d the WTS device Assu in TTTN V3: Step p 1: Create a device d in TTN N V3 with the OTAA keys frrom WTS.
www.dragino.com User can enter these keys in the LoRaWAN Server portal. Below is TTN V3 screen shot: Add APP EUI in the application.
www.dragino.com Add APP KEY and DEV EUI Step 2: Use ACT button to activate WTS and it will auto join to the TTN V3 network. After join success, it will start to upload sensor data to TTN V3 and user can see in the panel.
www.dragino.com 2.4 Uplink Payload The uplink payload includes totally 11 bytes. Uplink packets use FPORT=2 and every 20 minutes send one uplink by default. After each uplink of WTS-10 and WTS-11, the blue LED will flash once If the PT100 is not connected, the red LED will flash once every time the WTS-11 uplinks Normal Uplink Payload. Total 11 Bytes.
www.dragino.com External Temperature (Temp_PT100): 2 bytes ( For model WTS-11 only) Temperature: 0x0ABB/100=27.47℃ Temperature: (0xF5C6-65536)/100=-26.18℃ In WTS-10, WTS-12, these 2 bytes are always 00 00 Open Duration & Open Timeout Alarm: 2 bytes ( For model WTS-12 only) Bits 15 14 [13:0] Value: Reserve Timeout Alarm Bright Duration Timeout Alarm: This bit indicates if the bright detection exceeds certain time. The default timeout is 5 minutes.
www.dragino.com Magnetic_switch_status:0x8E3C=1000 1110 0011 1100 1(15th bit) 1:out_of_place 0:in_place EXT=2 Example:0E2F020A9714256170D3B2 Batv:0x0E2F=0000 1110 0010 1111 00 1110 0010 1111/1000=3.631 V EXT:0x02=0002=2 (3:0th bit) Systimestamp:0x6170D3B2=1634784178=2021-10-21 10:42:58(GMT+8) Temp_TMP117:0x0A97/100=27.11℃ Temp_PT100:0x1425/100=51.
www.dragino.com Ext=3 Example:8E00030AAD0003617116F6 Batv:0x8E00=1000 1110 0000 0000 00 1110 0000 0000/1000=3.584 V EXT:0x03=0003=3(3:0th bit) Systimestamp:0x6170D3B2=1634784178=2021-10-21 10:42:58(GMT+8) Temp_TMP117:0x0A97/100=27.
www.dragino.com Uplink payload=8E3C010B3200006170BCFD "BatV": 3.644, "Ext": 1, "Systimestamp": 1634778365, "Temp_TMP117": 28.66 "magnetic_switch_status": "out of place" 2.5.2 Decode in TTN V3 function Decoder(bytes, port) { var poll_message_status=(bytes[2]&0x40)>>6; var decode = {}; decode.Ext= bytes[2]&0x0F; decode.BatV= ((bytes[0]<<8 | bytes[1]) & 0x3FFF)/1000; decode.magnetic_switch_status=bytes[0]&0x80?"out_of_place":"in_place" if(decode.Ext==0x01) { decode.
www.dragino.com decode.light_alarm_status=bytes[5]&0x40?"true":"false"; } decode.Systimestamp=(bytes[7]<<24 | bytes[8]<<16 | bytes[9]<<8 | bytes[10] ); if(poll_message_status===0) { if(bytes.length==11) { return decode; } } } 2.6 Show data on Datacake Datacake IoT platform provides a human friendly interface to show the sensor data, once we have sensor data in TTN V3, we can use Datacake to connect to TTN V3 and see the data in Datacake.
www.dragino.com Add Datacake: In Datacake console (https://datacake.
www.dragino.
www.dragino.
www.dragino.
www.dragino.
www.dragino.
www.dragino.com 2.7 Datalog Feature 2.7.1 How Datalog works WTS uses confirmed uplink to send each uplink packet to LoRaWAN server, after the packet is sent, WTS will waiting for the ACK message from LoRaWAN server. If WTS didn’t got the ACK, WTS will consider out of LoRaWAN service and mark the Status None ACK Flag bit to 1, meanwhile, WTS will record this unarrived packet. If WTS got the ACK from LoRaWAN server, WTS will consider it is in LoRaWAN service.
www.dragino.com WTS will uplink this payload when in LoRaWAN service Uplinkpayload: 8E0F410A840000617801848E0F410A82000617801C008E0F410A81000617801FC8E0F410A8000 00617802388E0F410A7D000617802748E0F410A7D0000617802B08E0F410A7B0000617802EC8E 0F410A7A0000617803288E0F410A790000617803648E0F410A770000617803A0 Where the first 11 bytes is for the first entry: 8E0F410A84000061780184 BAT:0x8E0F=1000 1110 0000 1111 00 1110 0000 1111/1000=3.599V Temp_TMP117:0x0A84/100=26.
www.dragino o.com So, we w can downlink 3060137 7afd00 to set current time2021– Jan -- 29Friday 03:0 03:25 2.7..3 Set Devvice Time Oncee WTS Joined d LoRaWAN network, n it wiill send the MAC M command (DeviceTim meReq) and se erver will reply with (D DeviceTimeAn ns) to send the current tim me to WTS. If WTS fails to gget the time from f servver, WTS will use u the intern nal time and wait for nextt time request (AT+SYNCTD DC to set time requ uest period, default d is 10 days).
www.dragino.com Transmit Data Rate 2.10 Feature:Lock SF AT Command: AT+HDR Command Example Function Response AT+HDR=1 Lock SF The sending rate will be in DR2-DR5 OK Downlink Command: 0xA1 Example: 0xA101 //Same as AT+HDR=1 2.11 LED Indicator The WTS has a triple color LED which for easy showing different stage. While user press ACT button, the LED will work as per LED status with ACT button. In a normal working state: For each uplink, the BLUE LED or RED LED will blink once.
www.dragino.com Commands special design for WTS These commands only valid for WTS, as below: 3.1 SetTransmit Interval Time Feature: Change LoRaWAN End Node Transmit Interval. AT Command: AT+TDC Command Example AT+TDC? AT+TDC=60000 Function Response Show current transmit Interval 30000 OK the interval is 30000ms = 30s Set Transmit Interval OK Set transmit interval to 60000ms = 60 seconds Downlink Command: 0x01 Format: Command Code (0x01) followed by 3 bytes time value.
www.dragino.com 0xA2030005: Same as AT+EXT=3,5 (Model to photoresistor, and set bright timeout to 5 Second) 0xA200: Get the current timeout setting 3.3 Set system time Feature: Set system time, unix format. See here for format detail. AT Command: Command Example Function AT+TIMESTAMP=1611104352 OK Set System time to 2021-01-20 00:59:12 Downlink Command: 0x306007806000 // Set timestamp to 0x(6007806000),Same as AT+TIMESTAMP=1611104352 3.
www.dragino.com Downlink Command: 0x29 0A // Same as AT+SYNCTDC=0x0A 3.6 Clear Flash Record Feature: Clear flash storage for data log feature. AT Command: AT+CLRDTA Command Example Function Response AT+CLRDTA Clear date record Clear all stored sensor data… OK Downlink Command: 0xA3 Example: 0xA301 //Same as AT+CLRDTA 4. FAQ 4.1 What is the frequency plan of WTS? WTS use the same frequency as other Dragino products. User can see the detail from this link: http://wiki.dragino.com/index.
www.dragino.com 5. Order Info Part Number: WTS-XX-YY XX: Model Variant 1: Basic Model, with internal Temperature sensor. 2: Equal to WTS-11 + External Temperature Sensor 3: Equal to WTS-12 + Light Detection Sensor YY: The default frequency band AS923: LoRaWAN AS923 band AU915: LoRaWAN AU915 band EU433: LoRaWAN EU433 band EU868: LoRaWAN EU868 band KR920: LoRaWAN KR920 band US915: LoRaWAN US915 band IN865: LoRaWAN IN865 band CN470: LoRaWAN CN470 band 6.
www.dragino.com 8. warning FCC Caution: Any Changes or modifications not expressly approved by the party responsible for compliance could void the user's authority to operate the equipment. This device complies with part 15 of the FCC Rules. Operation is subject to the following two conditions: (1) This device may not cause harmful interference, and (2) this device must accept any interference received, including interference that may cause undesired operation.