Last modified by Xiaoling on 2025/07/21 09:23

Show last authors
1
2
3 [[image:image-20250513170154-1.png||data-xwiki-image-style-alignment="center" height="437" width="500"]]
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 LC01 LoRaWAN Relay ==
23
24
25 The Dragino LC01 is a LoRaWAN®-enabled relay controller designed for smart control of electrical appliances and lighting. Ideal for remote switching and status monitoring, the LC01 is built to deliver reliable performance in demanding environments.
26
27 **Key Features:**
28
29 * **Wide Voltage Support**: Compatible with appliances operating from 80–275V AC, with a maximum resistive load of 15A.
30 * **Dual Terminal Design**: Equipped with two input and two output terminals for easy power connection.
31 * **LoRaWAN® Class C**: Operates in Class C mode for low-latency communication and continuous listening.
32
33 **Built-In Protection & Durability:**
34
35 * **Advanced Safety**: Integrated protection against overcurrent, overvoltage, short circuits, and temperature rise, helping reduce the risk of damage from lightning strikes.
36 * **Rugged Enclosure**: Made from fireproof PC material with UV-resistant additives, ensuring long-term durability without discoloration.
37
38 **Plug & Play Connectivity:**
39
40 * **Preloaded Credentials**: Comes with a unique **DevEUI**, **AppEUI**, and **AppKey**, enabling fast and secure registration on any LoRaWAN network.
41 * **Auto Join Capability**: Automatically connects to the pre-registered network once powered on.
42
43 **Longer Life with Zero-Crossing Trigger:**
44
45 * The LC01 includes a patented zero-crossing trigger, which minimizes electrical stress and extends the device’s operational life.
46
47
48
49 == 1.2 ​Features ==
50
51
52 * Frequency Bands: CN470/EU433/KR920/US915/EU868/AS923/AU915/RU864/IN865/MA869
53 * Dual Terminal Design: Equipped with two input and two output terminals for easy power connection.
54 * LoRaWAN® Class C: Operates in Class C mode for low-latency communication and continuous listening.
55 * Receiver on/ off times 400,000 times
56 * Log function and key reset function
57 * AT Commands to change parameters
58 * Remotely configure parameters via LoRaWAN Downlink
59 * Firmware upgradable via program port
60 * Uplink on periodically
61 * Downlink to change configure
62
63 == 1.3 Specification ==
64
65
66 (% style="color:#037691" %)**Common DC Characteristics:**
67
68 * Supply Voltage: 80-275V AC
69 * Operating Temperature: -40~~+70°C
70 * (((
71 Current : 15A Resistive load
72 )))
73
74 (% style="color:#037691" %)**LoRa Spec:**
75
76 * Frequency Range,  Band 1 (HF): 862 ~~ 1020 Mhz
77 * Max +22 dBm constant RF output vs.
78 * RX sensitivity: down to -139 dBm.
79 * Excellent blocking immunity
80
81 == 1.4 Applications ==
82
83
84 * Smart buildings & home automation
85 * Logistics and supply chain management
86 * Smart metering
87 * Smart agriculture
88 * Smart cities
89 * Smart factory
90
91 == 1.5 Working mode ==
92
93
94 (% 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).
95
96
97 == 1.6 Button & LEDs ==
98
99 [[image:image-20250510085336-2.png||height="441" width="288"]]
100
101 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %)
102 |=(% 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**
103 |(% style="width:167px" %)[[image:1749518621646-995.png]] >5s|(% style="width:117px" %)Active Device|(% style="width:225px" %)(((
104 (% style="color:red" %)**The Red LED **(%%)will blink rapidly 4 seconds. The device will then enter (% style="color:#037691" %)**Bootloader mode**(%%) for 5 seconds, and afterward, start joining the LoRaWAN network.
105 (% style="color:red" %)**The Red LED **(%%)will stay solid for 5 seconds after successfully joining the network.
106 )))
107
108 (% style="display:none" %)
109
110
111 == 1.7 Mechanical ==
112
113 (% class="wikigeneratedid" id="H" %)
114 [[image:image-20250510085050-1.png||height="439" width="313"]]
115
116 = 2. Configure LC01 to connect to LoRaWAN network =
117
118 == 2.1 How it works ==
119
120
121 The LC01 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 LC01. It will automatically join the network via OTAA and start to send the sensor value. The default uplink interval is 1 hour.
122
123
124 == 2.2 ​Quick guide to connect to LoRaWAN server (OTAA) ==
125
126
127 The following network diagram shows how LC01 communicates with a LoRaWAN Network Server,  for example [[TTN v3 LoRaWAN Network>>url:https://console.cloud.thethings.network/]]. We use the [[LPS8N>>https://www.dragino.com/products/lora-lorawan-gateway/item/200-lps8n.html]]  as a LoRaWAN gateway in this example and ThingsEye as the IoT platform.
128
129
130 [[image:lc01-network.jpg]]
131
132 (% style="color:blue" %)**Step 1:**(%%) Create a device in The Things Stack with the OTAA keys from LC01.
133
134 Each LC01 is shipped with a unique DevEUI, AppEUI, and AppKey. You can find it inside the package of the device. Please keep your registration information in a safe place and  don't share with anyone.
135
136 [[image:image-20230426084152-1.png||alt="图片-20230426084152-1.png" height="233" width="502"]]
137
138
139 You can enter this key in the LoRaWAN Network Server portal.
140
141 The following steps describe how to do it with The Things Stack network server portal. Follow the screenshots for correct configuration:
142
143 **Create an application.**
144
145
146 * On the home screen, click the **+ Add application** button.
147 * On the **Create application** page, enter an **Application ID** to identify your **application **within The Things Stack and provide an **Application name**. Read [[https:~~/~~/thethingsindustries.com/docs/integrations/adding-applications>>url:https://thethingsindustries.com/docs/integrations/adding-applications]] for more information on how to do that.
148 * Click the **Create application** button.
149
150
151
152 [[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"]]
153
154
155 **Add devices to the created Application**
156
157
158 * After creating the application, you will be redirected to the **Application overview** page.
159 * On the Application overview page, click the **+ Register end device** button.
160
161 [[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"]]
162
163 [[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"]]
164
165
166 **Enter end device specifics manually**
167
168
169 We use Over The Air Activation (**OTAA) **to activate LC01 with The Things Stack. OTAA is the most secure way of activating an end device with a LoRaWAN network server.
170
171 * On the **Register end device** page, select the ‘**Enter end device specifics manually**’ option under the **input method**.
172 * Select the correct **Frequency plan** and **LoRaWAN version**. **The Regional parameters version** will appear automatically based on the LoRaWAN version.
173
174 {{info}}
175 **//The Frequency plan should match the  frequency of the LC01.//**
176 {{/info}}
177
178 * Make sure the **Over the air activation (OTAA)** is selected by default.
179 * Select **Class C (Continuous)**  from the **Additional LoRaWAN class** capabilities dropdown list.
180
181 [[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"]]
182
183
184 Using the registration information sheet that comes with the LC01,
185
186 * Fill the **JoinEUI**. The LC01 uses **AppEUI **instead of JoinEUI. You can enter it in the JoinEUI text box. Then click the **Confirm **button.
187 * Enter the **DevEUI **and **AppKey**.
188 * Enter an **End device ID** that can be used to identify your LC01 within this application.
189
190 Click the **Register end device** button.
191
192 [[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"]]
193
194
195 (% style="color:blue" %)**Step 2:**(%%) Add decoder.
196
197 LoRaWAN uplink and downlink payloads are encoded. To understand the data, you need a small script to decode them. We use a JavaScript function for this. It is called a payload formatter. It reads the payload and extracts useful information, such as relay status, event type, and timestamp. We have written a JavaScript function to decode uplinks from the LC01 device.
198
199
200 To add an uplink payload formatter code to The Things Stack, follow the steps below:
201
202 * Go to your LC01 device page and click Payload formatters.
203 * Click, Uplink.
204 * Select ‘Custom Javascript formatter’ from the ‘Formatter type’ drop-down list.
205 * Now copy the Uplink Formatter code from here: [[dragino-end-node-decoder/LC01/LC01_V1.0.0_TTN_Decoder.txt at main · dragino/dragino-end-node-decoder · GitHub>>url:https://github.com/dragino/dragino-end-node-decoder/blob/main/LC01/LC01_V1.0.0_TTN_Decoder.txt]]
206 * Then paste it in the ‘Formatter code’ box:
207
208 [[image:image-20250510090425-4.png||height="502" width="1080"]]
209
210
211 You can now test the formatter code with a sample payload.
212
213 * Enter 00 00 00 06 03 00 in the ‘Byte payload’ box.
214 * Change the FPort to 2 (because our payload formatter only accepts uplinks  from FPort 2).
215 * Click the ‘Test decoder’ button.
216
217 The payload will be decoded into the following JSON object and shown in the 'Decoded test payload' box.
218
219 To save the payload formatter, click the ‘Save changes’ button.
220
221 [[image:image-20250510090555-5.png||height="545" width="1071"]]
222
223
224 After applying the uplink payload formatter, you can see that all uplink payloads shown in the Live Data section are decoded into fields.
225
226
227 (% style="color:blue" %)**Step 3:**(%%) Activate on LC01
228
229 Press the reset button once to activate the LC01.
230
231 (% 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.
232
233 After join success, it will start to upload messages to TTN and you can see the messages in the panel.
234
235 == 2.3 ​Uplink Payload ==
236
237 === 2.3.1 Device Status, FPort~=5 ===
238
239
240 You can use the downlink command (% class="mark" %)**0x26 01**(%%) to request LC01 to send the device configuration details, including the configuration status. LC01 will then uplink a payload to the server via FPort 5. The payload format is shown below.
241
242 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %)
243 |(% colspan="6" style="background-color:#4f81bd; color:white" %)**Device Status (FPort=5)**
244 |(% style="width:103px" %)**Size (bytes)**|(% style="width:89px" %)**1**|(% style="width:98px" %)**2**|(% style="width:102px" %)**1**|(% style="width:116px" %)**1**
245 |(% style="width:103px" %)Value|(% style="width:89px" %)Sensor Model|(% style="width:98px" %)Firmware Version|(% style="width:102px" %)Frequency Band|(% style="width:116px" %)Sub-band
246
247 This is an example of a payload parsed in The Things Stack.
248
249 [[image:image-20250510091326-6.png]]
250
251
252 (% style="color:#037691" %)**Sensor Model**(%%): For LC01, this value is **0x47**
253
254 (% style="color:#037691" %)**Firmware Version**(%%): 0x0100, which means version **v1.0.0**
255
256 (% style="color:#037691" %)**Frequency Band**:
257
258 0x01: EU868
259
260 0x02: US915
261
262 0x03: IN865
263
264 0x04: AU915
265
266 0x05: KZ865
267
268 0x06: RU864
269
270 0x07: AS923
271
272 0x08: AS923-1
273
274 0x09: AS923-2
275
276 0x0a: AS923-3
277
278 0x0b: CN470
279
280 0x0c: EU433
281
282 0x0d: KR920
283
284 0x0e: MA869
285
286
287 (% style="color:#037691" %)**Sub-Band**:
288
289 AU915 and US915: value 0x00 ~~ 0x08
290
291 CN470: value 0x0B ~~ 0x0C
292
293 Other bands: Always 0x00
294
295
296 === 2.3.2  Sensor Data, FPort~=2 ===
297
298
299 Sensor data is uplinked via FPort 2
300
301 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:360px" %)
302 |=(% style="width: 60px;background-color:#4F81BD;color:white" %)(((
303 **Size(bytes)**
304 )))|=(% style="width: 100px;background-color:#4F81BD;color:white" %)4|=(% style="width: 100px; background-color: rgb(79, 129, 189); color: white;" %)1|=(% style="width: 100px; background-color: rgb(79, 129, 189); color: white;" %)1
305 |(% style="width:99px" %)Value|(% style="width:130px" %)(((
306 Unix Timestamp
307 )))|(% style="width:139px" %)EventType|(% style="width:136px" %)RelayStatus
308
309 [[image:image-20250510092453-7.png||height="173" width="1245"]]
310
311
312 ==== (% style="color:#4472c4" %)**Unix timestamp**(%%) ====
313
314 Unix Timestamp Example: 681EAB65(H) = 1746840421(D)
315
316 Paste the decimal value into this link ([[https:~~/~~/www.epochconverter.com)>>https://www.epochconverter.com]]) to convert it to human-readable time.
317
318
319 ==== (% style="color:#4472c4" %)**Event**(%%) ====
320
321 **Example**:
322
323 If the payload is: 01H:  PLUG_INSERT_EVENT
324
325 If the payload is: 02H : PLUG_PULL_EVENT
326
327 If the payload is: 03H : HEARTBEAT_EVENT
328
329 If the payload is: 04H : RELAY_ACK_EVENT
330
331
332 ==== (% style="color:#4472c4" %)**Relay status**(%%) ====
333
334 **Example**:
335
336 If the payload is: 01H: Relay is 'open'.
337
338 If the payload is: 00H: Relay is 'closed'.
339
340
341 == 2.4 Payload Decoder ==
342
343
344 In The Things Stack, you can add a custom payload decoder to convert the raw payload into human-readable fields.
345
346 To do this go to: (% style="color:#037691" %)**Applications ~-~-> Payload Formats ~-~-> Custom ~-~-> Decoder**(%%) and add the decoder code from the following link:
347
348 [[https:~~/~~/github.com/dragino/dragino-end-node-decoder/tree/main/LC01>>https://github.com/dragino/dragino-end-node-decoder/tree/main/LC01]]
349
350
351 == 2.5 Datalog Feature ==
352
353
354 The Datalog feature ensures that the IoT server can receive all sampled data from the sensor, even if the LoRaWAN network is temporarily unavailable. For each sampling event, the LC01 stores the reading for future retrieval.
355
356
357 === 2.5.1 Retrieving Datalog via LoRaWAN ===
358
359
360 Using the platform downlink 07 01, you can enable the device to automatically send **non-ACK** messages. Once enabled, the LC01 will wait for an acknowledgment (ACK) for every uplink. If there is no LoRaWAN network available, LC01 will mark these records as non-ACK messages, store the sensor data, and continue checking for network availability (at 10-second intervals) to resend all stored messages once the network is restored.
361
362 * (((
363 a) LC01 performs an ACK check for each data record to ensure it successfully reaches the server.
364 )))
365 * (((
366 b) When automatic sending of non-ACK messages is enabled, the LC01 transmits data in **CONFIRMED** mode. If an ACK is not received, it does not resend the packet; instead, it marks it as a **non-ACK** message. During subsequent uplinks, if the LC01 receives an ACK, it considers the network restored and will resend all stored non-ACK messages.
367 )))
368
369 === 2.5.2 Unix TimeStamp ===
370
371
372 LC01 uses Unix Timestamp format based on the following table:
373
374 [[image:image-20250328173339-5.jpeg]]
375
376 You can get the Unix epoch time from this link:  [[https:~~/~~/www.epochconverter.com/>>url:https://www.epochconverter.com/]] :
377
378 Below is the Unix epoch time to Hex conversion example:
379
380 [[image:image-20250328173355-6.jpeg]]
381
382
383 So, you can use downlink 30**60137afd**00 to set the current time 2021 – Jan ~-~- 29 Friday 03:03:25
384
385
386 === 2.5.3 Set Device Time ===
387
388
389 You need to run downlink command 28 01 to enable time synchronization.
390
391 Once the LC01 joins the LoRaWAN network, it will send the MAC command **DeviceTimeReq**, and the server will reply with **DeviceTimeAns** to provide the current time to the LC01. If the LC01 fails to receive the time from the server, it will use its internal time and wait for the next time request. //(By default, this occurs once every 10 days.)//
392
393 {{info}}
394 The LoRaWAN server must support LoRaWAN v1.0.3 (MAC v1.0.3) or higher to use this MAC command feature. ChirpStack, The Things Stack v3, and Loriot support it, but The Things Stack v2 does not. If the server does not support this command, it will discard the uplink packet containing it. As a result, the user will lose the time request packet when the automatic time synchronization function is enabled on TTN v2.
395 {{/info}}
396
397 (% style="color:#4f81bd" %)**Downlink Command: 0x28**
398
399 * Example: 0x28 01  ~/~/ Automatic time synchronization Enabled
400 * Example: 0x28 00  ~/~/  Automatic time synchronization Disable.
401
402 === 2.5.4 Datalog Uplink payload (FPort~=3) ===
403
404
405 The Datalog uplinks will use the following payload format.
406
407 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:370px" %)
408 |=(% style="width: 60px;background-color:#4F81BD;color:white" %)(((
409 **Size(bytes)**
410 )))|=(% 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
411 |(% style="width:103px" %)Value|(% style="width:68px" %)(((
412 Unix Timestamp
413 )))|(% style="width:65px" %)Event|(% style="width:89px" %)RelayStatus|(% style="width:94px" %)DatalogReply
414
415 **No ACK Message**:  1: This message means this payload is from Uplink Message which doesn't get ACK from the server before (for **Automatically send None-ACK** feature)
416
417 **DatalogReply**: 1: This message is a poll message reply.
418
419 * Poll Message Flag is set to 1.
420
421 * Each data entry is 7 bytes, to save airtime and battery, devices will send max bytes according to the current DR and Frequency bands.
422
423
424
425 For example, in US915 band, the max payload for different DR is:
426
427 **a) DR0:** max is 11 bytes so one entry of data
428
429 **b) DR1:** max is 53 bytes so devices will upload 4 entries of data (total 44 bytes)
430
431 **c) DR2:** total payload includes 11 entries of data
432
433 **d) DR3: **total payload includes 22 entries of data.
434
435 If devise doesn't have any data in the polling time. Device will uplink 7 bytes of 0   
436
437
438 **Example:**
439
440 If user sends below downlink command: 31681D4580681D6FB005
441
442 Where : Start time: 681D4580 = time 25/5/9 08:00:00
443
444 Stop time: 681D6FB0 = time 25/5/9 11:00:00
445
446
447 **LC01 will uplink this payload.**
448
449 [[image:image-20250510101025-8.png||height="487" width="1027"]]
450
451 (((
452
453
454 68 1E A7 AF 03 00 40 68 1E A8 C3 03 00 40 68 1E A8 FF 03 00 40 68 1E A9 3E 03 00 40 68 1E A9 5C 03 00 40 68 1E A9 7A 03 00 40 68 1E A9 98 03 00 40 68 1E A9 B6 03 00 40
455 )))
456
457 (((
458 Where the first 8 bytes is for the first entry:
459 )))
460
461 (((
462 68 1E A7 AF 03 00 40
463 )))
464
465 (((
466 **Unix time** is 0x68 1E A7 AF = 1746839471s=25/5/10 09:11:00 (GMT+8)
467
468 (((
469 **Event **= 0x03 = HEARTBEAT_EVNET
470 )))
471
472 (((
473 **RelayStatus = **0x00 = Relay closed
474
475 **DatalogReply = **0x40 = Represents the current data as polled data
476
477
478 )))
479 )))
480
481 (% 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="单击并拖动以调整大小" %)的
482
483 == 2.6 Frequency Plans ==
484
485
486 The LC01 uses OTAA mode and uses the below frequency plans by default (please visit the link below). Each frequency band uses different firmware. You should update the firmware to the corresponding band for your country.
487
488 [[http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/End%20Device%20Frequency%20Band/>>http://wiki.dragino.com/xwiki/bin/view/Main/End%20Device%20Frequency%20Band/]]
489
490
491 == 2.7 ​Firmware Change Log ==
492
493
494 **The firmware can be downloaded from this link: **[[Dropbox~~-~~-firmware>>https://www.dropbox.com/scl/fo/ztlw35a9xbkomu71u31im/AM0IIEW1tnNP-XJd7vq_4_c/LoRaWAN%20End%20Node/LC01/Firmware?dl=0&rlkey=ojjcsw927eaow01dgooldq3nu&subfolder_nav_tracking=1]]
495
496
497 = 3. Configure LC01 =
498
499 == 3.1 Configure Methods ==
500
501
502 LC01 supports the following configure method:
503
504 * **LoRaWAN Downlink**: Instruction for different platforms: See [[IoT LoRaWAN Server>>http://wiki.dragino.com/xwiki/bin/view/Main/]] section.
505
506 == 3.2 General Commands ==
507
508
509 The general commands are used to configure:
510
511 * General system settings like uplink interval.
512 * LoRaWAN protocol and radio related commands.
513
514 These commands are common for all Dragino Devices which support DLWS-005 LoRaWAN Stack. These commands can be found on the wiki:
515
516 [[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/]]
517
518
519 == 3.3 Commands special design for LC01 ==
520
521
522 These commands only valid for LC01, as below:
523
524
525 === 3.3.1 Set Transmit Interval Time ===
526
527
528 (% style="color:#037691" %)**AT Command:**
529
530 There is no AT command to set TDC time.
531
532
533 **Feature**: Change LoRaWAN End Node Transmit Interval.
534
535 (% style="color:blue" %)**Downlink Command: 0x01**
536
537 Format: Command Code (0x01) followed by 3 bytes time value.
538
539 If the downlink payload is **0100003C**, it means set the end node's transmit Interval is set to 0x00003C = 60 seconds, with the type code 01.
540
541 * **Example 1**: Downlink Payload: 0100001E  ~/~/  Sets the transmit interval (TDC) to 30 seconds
542 * **Example 2**: Downlink Payload: 0100003C  ~/~/  Sets the transmit interval (TDC) to 60 seconds
543
544 === 3.3.2 Get Device Status ===
545
546
547 Send a LoRaWAN downlink to request the device's alarm settings.
548
549
550 (% style="color:blue" %)**Downlink Payload:  **(%%)**0x26 01**
551
552 The sensor will upload device status via FPort=5. See the payload section for details.
553
554
555 === 3.3.3 Clear Flash Record ===
556
557
558 (% style="color:#037691" %)**AT Command:**
559
560 There is no AT command to enable or disable the relay.
561
562
563 **Feature**: Clear flash storage for the  data log feature.
564
565 (% style="color:#4f81bd" %)**Downlink Command: 0x08**
566
567 * Example: 0x0801  ~/~/ Clears all saved data in flash.
568
569 === 3.3.4 Relay enable or disable ===
570
571
572 (% style="color:#037691" %)**AT Command:**
573
574 There is no AT Command to control the Relay output.
575
576
577 **Feature**: Controls turning appliances on or off through the socket.
578
579 (% style="color:#4f81bd" %)**Downlink Command: 0x06**
580
581 * Example: 0x06 01  ~/~/ Relay enabled.
582 * Exampie: 0x06 00  ~/~/  Relay disable.
583
584 === 3.3.5 Relay ~-~- Control Relay Output time ===
585
586
587 **Feature**: Controls the relay output duration.
588
589
590 (% style="color:#037691" %)**AT Command:**
591
592 There is no AT Command to control the Relay output
593
594
595 (% style="color:#037691" %)**Downlink Payload (prefix 0x09):**
596
597 (% style="color:blue" %)**0x09 aa bb cc dd ee ff     ** (%%)~/~/ Sets relay with time control
598
599
600 This command controls the relay output duration and includes 4 bytes:
601
602 (% style="color:#4f81bd" %)**First byte **(%%)**:** Type code (0x09)
603
604 (% style="color:#4f81bd" %)**Second byte (aa)**(%%): Inverter mode
605
606 (% class="mark" %)01(%%): Relay returns to its original state after the timeout
607
608 (% class="mark" %)00(%%): Relay switches to the inverse state after the timeout
609
610
611 (% style="color:#4f81bd" %)**Third byte (bb)**(%%): Control method and port status:
612
613 [[image:image-20250509161958-1.png||height="151" width="606"]]
614
615
616 (% style="color:#4f81bd" %)**Fourth/Fifth/Sixth/Seventh bytes (cc dd ee ff)**(%%): Latching time (minimum: 6 seconds, unit: seconds)
617
618
619 (% style="color:red" %)**The device will send an uplink packet if the downlink command is executed successfully.**
620
621
622 **Example payload:**
623
624 **~1. (% class="mark" %)09 01 01 00 00 00 06(%%)**
625
626 The relay will be set to NC, remain for 6 seconds, and then revert to its original state.
627
628 **2. (% class="mark" %)09 01 00 00 00 00 06(%%)**
629
630 The relay will change to NC, remain for 6 seconds, and then change to NO.
631
632 **3. (% class="mark" %)09 00 01 00 00 00 06(%%)**
633
634 Relay 1 will change to NO, remain for 6 seconds, and then change to NC.
635
636 **4. (% class="mark" %)09 01 01 00 00 00 06(%%)**
637
638 The relay will change to NO, remain for 6 seconds, and then revert to its original state.
639
640
641 === 3.3.6 Confirmed Mode ===
642
643
644 (% style="color:#037691" %)**AT Command:**
645
646 There is no AT command to control whether Confirmed Mode is enabled or disabled.
647
648
649 **Feature**: Mode for sending data that requires acknowledgment.
650
651 (% style="color:#4f81bd" %)**Downlink Command: 0x07**
652
653 * Example: 0x07 01  ~/~/ Confirmed Mode enabled.
654 * Example: 0x07 00  ~/~/  Confirmed Mode disable.
655
656 === 3.3.7 Set the time synchronization interval ===
657
658
659 **Feature**: Set how often to perform time synchronization (default: 10 days, unit: days)
660
661
662 (% style="color:#4f81bd" %)**Downlink Command: 0x28**
663
664 * Example: 0x28 01  ~/~/ Synchronize once a day
665 * Example: 0x28 03  ~/~/  Synchronize once every three days
666
667 = 4. OTA Firmware update =
668
669
670 (% class="wikigeneratedid" %)
671 You can update the firmware on LC01 to:
672
673 * Change the frequency band/region.
674 * Add new features.
675 * Fix bugs.
676
677 The firmware and changelog can be downloaded from : **[[Firmware download link>>https://www.dropbox.com/scl/fo/p4mtsf7yf0aendxjgt6jk/AFtc6kaJInU3mbETde9vqG0?rlkey=ohkknefsf0lfpnytjq62olpel&st=3xxmrr0z&dl=0]]**
678
679
680 Methods to Update Firmware:
681
682 * (Recommended ) 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/]]**
683
684 = 5. FAQ =
685
686
687 This will be added later.
688
689
690 = 6. Order Info =
691
692
693 Part Number: (% style="color:blue" %)**LC01-XX**
694
695 (% style="color:red" %)**XX**(%%): The default frequency band
696
697 * (% style="color:red" %)**AS923**(%%): LoRaWAN AS923 band
698
699 * (% style="color:red" %)**AU915**(%%): LoRaWAN AU915 band
700
701 * (% style="color:red" %)**EU433**(%%): LoRaWAN EU433 band
702
703 * (% style="color:red" %)**EU868**(%%): LoRaWAN EU868 band
704
705 * (% style="color:red" %)**KR920**(%%): LoRaWAN KR920 band
706
707 * (% style="color:red" %)**US915**(%%): LoRaWAN US915 band
708
709 * (% style="color:red" %)**IN865**(%%): LoRaWAN IN865 band
710
711 * (% style="color:red" %)**CN470**(%%): LoRaWAN CN470 band
712
713 = 7. ​Packing Info =
714
715
716 (% style="color:#037691" %)**Package Includes**:
717
718 * LC01 LoRaWAN Relay
719
720 (% style="color:#037691" %)**Dimension and weight**:
721
722 * Device Size: cm
723
724 * Device Weight: g
725
726 * Package Size / pcs : cm
727
728 * Weight / pcs : g
729
730 = 8. Support =
731
732
733 * **Support is provided Monday to Friday, from 09:00 to 18:00 GMT+8.** Due to time zone differences, we cannot offer live support. However, your questions will be answered as soon as possible within the mentioned schedule.
734
735 * Please provide as much information as possible regarding your inquiry (e.g., product model, a clear description of the issue, and steps to reproduce it), and send an email to [[Support@dragino.cc>>mailto:Support@dragino.cc]].