Last modified by Xiaoling on 2025/06/21 14:33

Show last authors
1 [[image:image-20250513170842-1.png||data-xwiki-image-style-alignment="center"]]
2
3
4
5
6
7
8
9
10
11 **Table of Contents:**
12
13 {{toc/}}
14
15
16
17
18
19
20 = 1. Introduction =
21
22 == 1.1 What is LC03 LoRaWAN Socket ==
23
24
25 The Dragino LC03 is a (% style="color:blue" %)**LoRaWAN Socket**(%%) for Internet of Things solution. It controls the device power switch via the IoT server downlink of the LoRaWAN wireless protocol.
26
27 It can be applied to (% style="color:blue" %)**smart agricultural irrigation, smart home, industrial automation and other industries**(%%).
28
29 The LoRa wireless technology used in the LC03 allows devices to send data at low rates and reach extremely long transmission distances. The technology provides ultra-long-range spread spectrum communication and high anti-interference capabilities while minimizing current consumption.
30
31 By default, LC03 has the function of detecting the access status of devices that need power. When the device that needs power is connected, it will automatically upload the data packet; when the device that needs power is disconnected, LC03 will also automatically upload the data packet.
32
33 LC03 (% style="color:blue" %)**wireless OTA update**(%%) which make user easy to use.
34
35 Each LC03 is pre-load with a set of unique keys for LoRaWAN registrations, register these keys to local LoRaWAN server and it will auto connect after power on.
36
37
38 == 1.2 ​Features ==
39
40
41 * LoRaWAN Class C modes
42 * Optional Customized LoRa Protocol
43 * Frequency Bands: CN470/EU433/KR920/US915/EU868/AS923/AU915/RU864/IN865/MA869
44 * US standard socket
45 * Detect machine plug/unplug status
46 * Support Downlink and Timing control relay opening and closing
47 * AT Commands to change parameters
48 * Remotely configure parameters via LoRaWAN Downlink
49 * Firmware upgradable via program port
50 * Support wireless OTA update firmware
51 * Uplink on periodically
52 * Downlink to change configure
53
54 == 1.3 Specification ==
55
56
57 (% style="color:#037691" %)**Common DC Characteristics:**
58
59 * Supply Voltage: 80~~275V AC
60 * Operating Temperature: -40~~+70°C
61 * Current: 15A Resistive load
62
63 (% style="color:#037691" %)**LoRa Spec:**
64
65 * Frequency Range,  Band 1 (HF): 862 ~~ 1020 Mhz
66 * Max +22 dBm constant RF output vs.
67 * RX sensitivity: down to -139 dBm.
68 * Excellent blocking immunity
69
70 == 1.4 Applications ==
71
72
73 * Smart buildings & home automation
74 * Logistics and supply chain management
75 * Smart metering
76 * Smart agriculture
77 * Smart cities
78 * Smart factory
79
80 == 1.5 Working mode ==
81
82
83 (% style="color:blue" %)**Working Mode:** (%%)In this mode, Sensor will work as LoRaWAN Sensor to Join LoRaWAN network and send out sensor data to server. Between each sampling/tx/rx periodically, sensor will be in IDLE mode).
84
85
86 == 1.6 Button & LEDs ==
87
88 [[image:image-20250507165509-5.jpeg||height="320" width="320"]]
89
90
91 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %)
92 |=(% style="width: 167px;background-color:#4F81BD;color:white" %)**Behavior on ACT**|=(% style="width: 117px;background-color:#4F81BD;color:white" %)**Function**|=(% style="width: 226px;background-color:#4F81BD;color:white" %)**Action**
93 |(% style="width:167px" %)[[image:1749521513171-639.png]] x1|(% style="width:117px" %)Active Device|(% style="width:225px" %)(((
94 (% style="color:red" %)**Red led**(%%) will fast blink 5 times, device will enter (% style="color:#037691" %)**Bootloader mode**(%%) for 5 seconds. And then start to JOIN LoRaWAN network.
95 (% style="color:red" %)**Red led**(%%) will solidly turn on for 5 seconds after joined in network.
96 )))
97
98 (% style="display:none" %)
99
100
101 == 1.7 Mechanical ==
102
103 (% class="wikigeneratedid" id="H" %)
104 [[image:image-20250507180603-11.png]]
105
106
107 = 2. Configure LC03 to connect to LoRaWAN network =
108
109 == 2.1 How it works ==
110
111
112 The LC03 is configured as (% style="color:#037691" %)**LoRaWAN OTAA Class C**(%%) mode by default. It has OTAA keys to join LoRaWAN network. To connect a local LoRaWAN network, you need to input the OTAA keys in the LoRaWAN IoT server and press the button to activate the LC03. It will automatically join the network via OTAA and start to send the sensor value. The default uplink interval is 1 hour.
113
114
115 == 2.2 ​Quick guide to connect to LoRaWAN server (OTAA) ==
116
117
118 Following is an example for how to join the [[TTN v3 LoRaWAN Network>>url:https://console.cloud.thethings.network/]]. Below is the network structure; we use the [[LPS8v2>>url:https://www.dragino.com/products/lora-lorawan-gateway/item/228-lps8v2.html]] as a LoRaWAN gateway in this example.
119
120 The LPS8V2 is already set to connected to [[TTN network >>url:https://console.cloud.thethings.network/]], so what we need to now is configure the TTN server.
121
122 [[image:image-20250507171046-7.png]]
123
124 (% style="color:blue" %)**Step 1:**(%%) Create a device in TTN with the OTAA keys from LC03.
125
126 Each LC03 is shipped with a sticker with the default device EUI as below:
127
128 [[image:image-20230426084152-1.png||alt="图片-20230426084152-1.png" height="233" width="502"]]
129
130
131 You can enter this key in the LoRaWAN Server portal. Below is TTN screen shot:
132
133 **Create the application.**
134
135 [[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SAC01L_LoRaWAN_Temperature%26Humidity_Sensor_User_Manual/WebHome/image-20250423093843-1.png?width=756&height=264&rev=1.1||alt="image-20250423093843-1.png"]]
136
137 [[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LTC2-LB--LoRaWAN_Temperature_Transmitter_User_Manual/WebHome/image-20240907111305-2.png?width=1000&height=572&rev=1.1||alt="image-20240907111305-2.png"]]
138
139
140 **Add devices to the created Application.**
141
142 [[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LTC2-LB--LoRaWAN_Temperature_Transmitter_User_Manual/WebHome/image-20240907111659-3.png?width=977&height=185&rev=1.1||alt="image-20240907111659-3.png"]]
143
144 [[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LTC2-LB--LoRaWAN_Temperature_Transmitter_User_Manual/WebHome/image-20240907111820-5.png?width=975&height=377&rev=1.1||alt="image-20240907111820-5.png"]]
145
146
147 **Enter end device specifics manually.**
148
149 [[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LTC2-LB--LoRaWAN_Temperature_Transmitter_User_Manual/WebHome/image-20240907112136-6.png?width=697&height=687&rev=1.1||alt="image-20240907112136-6.png"]]
150
151
152 **Add DevEUI and AppKey.**
153
154 **Customize a platform ID for the device.**
155
156 [[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LTC2-LB--LoRaWAN_Temperature_Transmitter_User_Manual/WebHome/image-20240907112427-7.png?rev=1.1||alt="image-20240907112427-7.png"]]
157
158
159 (% style="color:blue" %)**Step 2:**(%%) Add decoder.
160
161 In TTN, user can add a custom payload so it shows friendly reading.
162
163 Click this link to get the decoder: [[https:~~/~~/github.com/dragino/dragino-end-node-decoder/tree/main/>>url:https://github.com/dragino/dragino-end-node-decoder/tree/main/]]
164
165 Below is TTN screen shot:
166
167 [[image:image-20250507171147-8.png||height="566" width="1079"]]
168
169 [[image:image-20250507171423-9.png||height="552" width="1080"]]
170
171
172 (% style="color:blue" %)**Step 3:**(%%) Activate on LC03
173
174 Press the reset button once to activate the LC03.
175
176 (% style="color:red" %)**Red led**(%%) will fast blink 5 times, device will enter (% style="color:blue" %)**bootloader mode**(%%) for 5 seconds. And then start to JOIN LoRaWAN network. (% style="color:red" %)**Red led**(%%) will solidly turn on for 5 seconds after joined in network.
177
178 After join success, it will start to upload messages to TTN and you can see the messages in the panel.
179
180
181 == 2.3 ​Uplink Payload ==
182
183 === 2.3.1 Device Status, FPORT~=5 ===
184
185
186 Users can use the downlink command(**0x26 01**) to ask LC03 to send device configure detail, include device configure status. LC03 will uplink a payload via FPort=5 to server.
187
188 The Payload format is as below.
189
190 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %)
191 |(% colspan="6" style="background-color:#4f81bd; color:white" %)**Device Status (FPORT=5)**
192 |(% style="width:103px" %)**Size (bytes)**|(% style="width:89px" %)**1**|(% style="width:98px" %)**2**|(% style="width:102px" %)**1**|(% style="width:116px" %)**1**
193 |(% style="width:103px" %)Value|(% style="width:89px" %)Sensor Model|(% style="width:98px" %)Firmware Version|(% style="width:102px" %)Frequency Band|(% style="width:116px" %)Sub-band
194
195 Example parse in TTNv3
196
197 [[image:image-20250507171948-10.png]]
198
199
200 (% style="color:#037691" %)**Sensor Model**(%%): For LC03, this value is 0x46
201
202 (% style="color:#037691" %)**Firmware Version**(%%): 0x0110, Means: v1.1.0 version
203
204 (% style="color:#037691" %)**Frequency Band**:
205
206 0x01: EU868
207
208 0x02: US915
209
210 0x03: IN865
211
212 0x04: AU915
213
214 0x05: KZ865
215
216 0x06: RU864
217
218 0x07: AS923
219
220 0x08: AS923-1
221
222 0x09: AS923-2
223
224 0x0a: AS923-3
225
226 0x0b: CN470
227
228 0x0c: EU433
229
230 0x0d: KR920
231
232 0x0e: MA869
233
234
235 (% style="color:#037691" %)**Sub-Band**:
236
237 AU915 and US915:value 0x00 ~~ 0x08
238
239 CN470: value 0x0B ~~ 0x0C
240
241 Other Bands: Always 0x00
242
243
244 === 2.3.2  Sensor Data. FPORT~=2 ===
245
246
247 Sensor Data is uplink via FPORT=2
248
249 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:480px" %)
250 |=(% style="width: 60px;background-color:#4F81BD;color:white" %)(((
251 **Size(bytes)**
252 )))|=(% style="width: 120px;background-color:#4F81BD;color:white" %)4|=(% style="width: 100px; background-color: #4F81BD;color:white" %)1|=(% style="width: 100px; background-color: #4F81BD;color:white" %)**1**|=(% style="width: 100px; background-color: #4F81BD;color:white" %)1
253 |(% style="width:99px" %)Value|(% style="width:130px" %)(((
254 Unix TimeStamp
255 )))|(% style="width:194px" %)EventType|(% style="width:106px" %)Plugstatus|(% style="width:97px" %)Relaystatus
256
257 [[image:image-20250427155703-5.png]]
258
259
260 ==== (% style="color:#4472c4" %)**Unit timestamp**(%%) ====
261
262 Unit TimeStamp Example: 680DE31F(H) = 1745740575(D)
263
264 Put the decimal value into this link([[https:~~/~~/www.epochconverter.com)>>https://www.epochconverter.com]])to get the time.
265
266
267 ==== (% style="color:#4472c4" %)**Plugstatus**(%%) ====
268
269 **Example**:
270
271 If payload is: 01H: Electrical INSERT
272
273 If payload is: 00H: Electrical PULL_OUT
274
275
276 ==== (% style="color:#4472c4" %)**Event**(%%) ====
277
278 **Example**:
279
280 If payload is: 01H:  PLUG_INSERT_EVENT
281
282 If payload is: 02H : PLUG_PULL_EVNET
283
284 If payload is: 03H :HEARTBEAT_EVNET
285
286 If payload is: 04H :RELAY_ACK_EVENT
287
288
289 ==== (% style="color:#4472c4" %)**Relaystatus**(%%) ====
290
291 **Example**:
292
293 If payload is: 01H:  Relay open
294
295 If payload is: 00H : Relay closed
296
297
298 == 2.4 Payload Decoder file ==
299
300
301 In TTN, use can add a custom payload so it shows friendly reading
302
303 In the page (% style="color:#037691" %)**Applications ~-~-> Payload Formats ~-~-> Custom ~-~-> decoder**(%%) to add the decoder from:
304
305 [[https:~~/~~/github.com/dragino/dragino-end-node-decoder/tree/main/LC03>>https://github.com/dragino/dragino-end-node-decoder/tree/main/LC03]]
306
307
308 == 2.5 Datalog Feature ==
309
310
311 Datalog Feature is to ensure IoT Server can get all sampling data from Sensor even if the LoRaWAN network is down. For each sampling, LC03 will store the reading for future retrieving purposes.
312
313
314 === 2.5.1 Ways to get datalog via LoRaWAN ===
315
316
317 With the platform downlink **07 01**, turn on the device to send None-ACK message function automatically, LC03 will wait for every upstream ACK, when there is no LoRaWAN network, LC03 will mark these records as non ack message and store the sensor data, and wait for the network to be restored (10s interval) to send all the messages.
318
319 * (((
320 a) LC03 will do an ACK check for data records sending to make sure every data arrive server.
321 )))
322 * (((
323 b) When automatic sending of None-ACK messages is enabled, the LC03 will send data in CONFIRMED mode, but if an ACK is not received, the LC03 will not resend the packet, it will only mark it as a NONE-ACK message. On subsequent uplinks, if the LC03 receives an ACK, the LC03 will consider the network connected and resend all NONE-ACK messages.
324 )))
325
326 === 2.5.2 Unix TimeStamp ===
327
328
329 LC03 uses Unix TimeStamp format based on
330
331 [[image:image-20250328173339-5.jpeg]]
332
333 User can get this time from link:  [[https:~~/~~/www.epochconverter.com/>>url:https://www.epochconverter.com/]] :
334
335 Below is the converter example
336
337 [[image:image-20250328173355-6.jpeg]]
338
339
340 So, we can use downlink 3060137afd00 to set the current time 2021 – Jan ~-~- 29 Friday 03:03:25
341
342
343 === 2.5.3 Set Device Time ===
344
345
346 Users need to run downlink command (% style="color:blue" %)**28 01**(%%) to enable the synchronization time.
347
348 Once LC03 Joined LoRaWAN network, it will send the MAC command (DeviceTimeReq) and the server will reply with (DeviceTimeAns) to send the current time to LC03. If LC03 fails to get the time from the server, LC03 will use the internal time and wait for next time request (The default time is once every 10 days.).
349
350 (% style="color:red" %)**Note: LoRaWAN Server need to support LoRaWAN v1.0.3(MAC v1.0.3) or higher to support this MAC command feature, Chirpstack,TTN V3 v3 and loriot support but TTN V3 v2 doesn't support. If server doesn't support this command, it will through away uplink packet with this command, so user will lose the packet with time request for TTN V3 v2 if when the automatic time synchronization function is turned on.**
351
352
353 (% style="color:#4f81bd" %)**Downlink Command: 0x28**
354
355 * Example: 0x28 01  ~/~/ Automatic time synchronization Enabled
356 * Exampie: 0x28 00  ~/~/  Automatic time synchronization Disable.
357
358 === 2.5.4 Datalog Uplink payload (FPORT~=3) ===
359
360
361 The Datalog uplinks will use below payload format.
362
363 **Retrieval data payload:**
364
365 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:450px" %)
366 |=(% style="width: 60px;background-color:#4F81BD;color:white" %)(((
367 **Size(bytes)**
368 )))|=(% style="width: 100px; background-color:#4F81BD;color:white" %)4|=(% style="width: 50px; background-color: rgb(79, 129, 189); color: white;" %)1|=(% style="width: 80px; background-color: rgb(79, 129, 189); color: white;" %)**1**|=(% style="width: 80px; background-color: rgb(79, 129, 189); color: white;" %)1|=(% style="width: 80px; background-color: rgb(79, 129, 189); color: white;" %)1
369 |(% style="width:103px" %)Value|(% style="width:68px" %)(((
370 Unix Time Stamp
371 )))|(% style="width:65px" %)Event|(% style="width:78px" %)Plugstatus|(% style="width:89px" %)Relaystatus|(% style="width:94px" %)DatalogReply
372
373 **No ACK Message**:  1: This message means this payload is fromn Uplink Message which doesn't get ACK from the server before ( for **Automatically send None-ACK** feature)
374
375 **DatalogReply**: 1: This message is a poll message reply.
376
377 * Poll Message Flag is set to 1.
378
379 * Each data entry is 8 bytes, to save airtime and battery, devices will send max bytes according to the current DR and Frequency bands.
380
381 For example, in US915 band, the max payload for different DR is:
382
383 **a) DR0:** max is 11 bytes so one entry of data
384
385 **b) DR1:** max is 53 bytes so devices will upload 4 entries of data (total 44 bytes)
386
387 **c) DR2:** total payload includes 11 entries of data
388
389 **d) DR3: **total payload includes 22 entries of data.
390
391 If devise doesn't have any data in the polling time. Device will uplink 8 bytes of 0   
392
393 **Example:**
394
395 If user sends below downlink command: 31681D4580681D6FB005
396
397 Where : Start time: 681D4580 = time 25/5/9 08:00:00
398
399 Stop time: 681D6FB0 = time 25/5/9 11:00:00
400
401
402 **LC03 will uplink this payload.**
403
404 [[image:image-20250509112830-1.png||height="575" width="1213"]]
405
406 (((
407 68 1D 5C 51 04 00 00 40 68 1D 6A 61 03 00 00 40
408 )))
409
410 (((
411 Where the first 8 bytes is for the first entry:
412 )))
413
414 (((
415 68 1D 5C 51 04 00 00 40
416 )))
417
418 (((
419 **Unix time** is 0x68 1D 5C 51=1746754641s=25/5/9 09:37:00
420
421 (((
422 **Event**=0x04 = RELAY_ACK_EVENT
423 )))
424
425 (((
426 **Plugstatus**=0x00 = PULL_OUT
427
428 **Relaystatus = **0x00 = Relay closed
429
430 **DatalogReply = **0x40 = Represents the current data as polled data
431
432
433 )))
434 )))
435
436 (% aria-label="数据 URI 图像图像小部件" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||alt="数据 URI 图片" draggable="true" height="15" role="presentation" title="单击并拖动以移动" width="15"]](% aria-label="数据 URI 图像图像小部件" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220, 220, 220, 0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||alt="数据 URI 图片" draggable="true" height="15" role="presentation" title="单击并拖动以移动" width="15"]](% aria-label="数据 URI 图像图像小部件" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" title="单击并拖动以调整大小" %)的(% aria-label="数据 URI 图像图像小部件" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||alt="数据 URI 图片" draggable="true" height="15" role="presentation" title="单击并拖动以移动" width="15"]](% aria-label="数据 URI 图像图像小部件" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220, 220, 220, 0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||alt="数据 URI 图片" draggable="true" height="15" role="presentation" title="单击并拖动以移动" width="15"]](% aria-label="数据 URI 图像图像小部件" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" title="单击并拖动以调整大小" %)的
437
438 == 2.6 Frequency Plans ==
439
440
441 The LC03 uses OTAA mode and below frequency plans by default. Each frequency band use different firmware, user update the firmware to the corresponding band for their country.
442
443 [[http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/End%20Device%20Frequency%20Band/>>http://wiki.dragino.com/xwiki/bin/view/Main/End%20Device%20Frequency%20Band/]]
444
445
446 == 2.7 ​Firmware Change Log ==
447
448
449 **Firmware download link: **[[Dropbox - firmware>>https://www.dropbox.com/scl/fo/ztlw35a9xbkomu71u31im/ACSJBjZBSxj3UIzqL1otsH4/LoRaWAN%20End%20Node/LC03/Firmware?dl=0&rlkey=ojjcsw927eaow01dgooldq3nu&subfolder_nav_tracking=1]]
450
451
452 = 3. Configure LC03 =
453
454 == 3.1 Configure Methods ==
455
456
457 LC03 supports below configure method:
458
459 * LoRaWAN Downlink.  Instruction for different platforms: See [[IoT LoRaWAN Server>>http://wiki.dragino.com/xwiki/bin/view/Main/]] section.
460
461 == 3.2 General Commands ==
462
463
464 These commands are to configure:
465
466 * General system settings like: uplink interval.
467 * LoRaWAN protocol & radio related command.
468
469 They are same for all Dragino Devices which support DLWS-005 LoRaWAN Stack. These commands can be found on the wiki:
470
471 [[http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/End%20Device%20AT%20Commands%20and%20Downlink%20Command/>>http://wiki.dragino.com/xwiki/bin/view/Main/End%20Device%20AT%20Commands%20and%20Downlink%20Command/]]
472
473
474 == 3.3 Commands special design for LC03 ==
475
476
477 These commands only valid for LC03, as below:
478
479
480 === 3.3.1 Set Transmit Interval Time ===
481
482
483 (% style="color:#037691" %)**AT Command:**
484
485 There is no AT command to set TDC time.
486
487
488 Feature: Change LoRaWAN End Node Transmit Interval.
489
490 (% style="color:blue" %)**Downlink Command: 0x01**
491
492 Format: Command Code (0x01) followed by 3 bytes time value.
493
494 If the downlink payload=**0100003C**, it means set the END Node's Transmit Interval to 0x00003C=60(S), while type code is 01.
495
496 * Example 1: Downlink Payload: 0100001E  ~/~/  Set Transmit Interval (TDC) = 30 seconds
497 * Example 2: Downlink Payload: 0100003C  ~/~/  Set Transmit Interval (TDC) = 60 seconds
498
499 === 3.3.2 Get Device Status ===
500
501
502 Send a LoRaWAN downlink to ask device send Alarm settings.
503
504 (% style="color:blue" %)**Downlink Payload:  **(%%)**0x26 01**
505
506 Sensor will upload Device Status via FPORT=5. See payload section for detail.
507
508
509 === 3.3.3 Clear Flash Record ===
510
511
512 (% style="color:#037691" %)**AT Command:**
513
514 No AT command to control relay enable or disable
515
516
517 Feature: Clear flash storage for data log feature.
518
519 (% style="color:#4f81bd" %)**Downlink Command: 0x08**
520
521 * Example: 0x0801  ~/~/ Clear all saved data in flash.
522
523 === 3.3.4 Relay enable or disable ===
524
525
526 (% style="color:#037691" %)**AT Command:**
527
528 There is no AT Command to control the Relay Output
529
530
531 Feature: Controls the turning on and off of appliances plugged into the socket
532
533 (% style="color:#4f81bd" %)**Downlink Command: 0x06**
534
535 * Example: 0x06 01  ~/~/ Relay Enabled.
536 * Exampie: 0x06 00  ~/~/  Relay Disable.
537
538 === 3.3.5 Relay ~-~- Control Relay Output time ===
539
540
541 Feature: Controls the relay output time.
542
543
544 (% style="color:#037691" %)**AT Command:**
545
546 There is no AT Command to control the Relay Output
547
548
549 (% style="color:#037691" %)**Downlink Payload (prefix 0x09):**
550
551 (% style="color:blue" %)**0x09 aa bb cc dd ee ff     ** (%%)~/~/ Sets relays with time control
552
553
554 This controls the relay output time and includes 4 bytes:
555
556 (% style="color:#4f81bd" %)**First byte **(%%)**:** Type code (0x09)
557
558 (% style="color:#4f81bd" %)**Second byte (aa)**(%%): Inverter Mode
559
560 01: Relays will change back to their original state after a timeout.
561
562 00: Relays will change to the inverter state after a timeout.
563
564
565 (% style="color:#4f81bd" %)**Third byte (bb)**(%%): Control Method and Ports status:
566
567 [[image:image-20250509161958-1.png||height="151" width="606"]]
568
569
570 (% style="color:#4f81bd" %)**Fourth/Fifth/Sixth/Seventh bytes (cc dd ee ff)**(%%): Latching time. (Min:6 seconds ,Unit: seconds)
571
572
573 (% style="color:red" %)**The device will uplink a packet if the downlink code executes successfully.**
574
575
576 **Example payload:**
577
578 **~1. 09 01 01 00 00 00 06**
579
580 Relay will be set to NC, lasting 6 seconds, then revert to their original state
581
582 **2. 09 01 00 00 00 00 06**
583
584 Relay will change to NC, lasting 6 seconds, and then will will change to NO.
585
586 **3. 09 00 01 00 00 00 06**
587
588 Relay1 will change to NO, lasting 6 seconds, and then Relay will change to NC.
589
590 **4. 09 01 01 00 00 00 06**
591
592 Relay will change to NO, lasting 6 seconds, and then will revert to their original state.
593
594
595 === 3.3.6 Confirmed Mode ===
596
597
598 (% style="color:#037691" %)**AT Command:**
599
600 There is no AT command to control whether Confirmed mode is enabled or disabled.
601
602
603 Feature: Mode for sending data for which acknowledgment was not received
604
605 (% style="color:#4f81bd" %)**Downlink Command: 0x06**
606
607 * Example: 0x07 01  ~/~/ Confirmed Mode enabled.
608 * Exampie: 0x07 00  ~/~/  Confirmed Mode Disable.
609
610 === 3.3.7 Set the time synchronization interval ===
611
612
613 Feature: Set how often to perform time synchronization.(default is 10 days, Unit: days)
614
615
616 (% style="color:#4f81bd" %)**Downlink Command: 0x28**
617
618 * Example: 0x28 01  ~/~/ Synchronize once a day
619 * Exampie: 0x28 03  ~/~/  Synchronize once every three days
620
621 = 4. OTA Firmware update =
622
623
624 (% class="wikigeneratedid" %)
625 User can change firmware LC03 to:
626
627 * Change Frequency band/ region.
628 * Update with new features.
629 * Fix bugs.
630
631 Firmware and changelog can be downloaded from : **[[Firmware download link>>https://www.dropbox.com/scl/fo/h0528bmpy38imkc921nnh/ALsSmgwQDwKjJQELlj0cLpY?rlkey=g3ykgjhkv2fitsnqvnnzn9pme&st=w8rkqs2e&dl=0]]**
632
633
634 Methods to Update Firmware:
635
636 * (Recommanded way) OTA firmware update via wireless : **[[http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/Firmware%20OTA%20Update%20for%20Sensors/>>url:http://wiki.dragino.com/xwiki/bin/view/Main/Firmware%20OTA%20Update%20for%20Sensors/]]**
637
638 = 5. FAQ =
639
640
641
642 = 6. Order Info =
643
644
645 Part Number: (% style="color:blue" %)**LC03-XX**
646
647 (% style="color:red" %)**XX**(%%): The default frequency band
648
649 * (% style="color:red" %)**AS923**(%%): LoRaWAN AS923 band
650
651 * (% style="color:red" %)**AU915**(%%): LoRaWAN AU915 band
652
653 * (% style="color:red" %)**EU433**(%%): LoRaWAN EU433 band
654
655 * (% style="color:red" %)**EU868**(%%): LoRaWAN EU868 band
656
657 * (% style="color:red" %)**KR920**(%%): LoRaWAN KR920 band
658
659 * (% style="color:red" %)**US915**(%%): LoRaWAN US915 band
660
661 * (% style="color:red" %)**IN865**(%%): LoRaWAN IN865 band
662
663 * (% style="color:red" %)**CN470**(%%): LoRaWAN CN470 band
664
665 = 7. ​Packing Info =
666
667
668 (% style="color:#037691" %)**Package Includes**:
669
670 * LC03 LoRaWAN Socket
671
672 (% style="color:#037691" %)**Dimension and weight**:
673
674 * Device Size: cm
675
676 * Device Weight: g
677
678 * Package Size / pcs : cm
679
680 * Weight / pcs : g
681
682 = 8. Support =
683
684
685 * Support is provided Monday to Friday, from 09:00 to 18:00 GMT+8. Due to different timezones we cannot offer live support. However, your questions will be answered as soon as possible in the before-mentioned schedule.
686
687 * Provide as much information as possible regarding your enquiry (product models, accurately describe your problem and steps to replicate it etc) and send a mail to [[Support@dragino.cc>>mailto:Support@dragino.cc]].