Wiki source code of SE0X-NB/NS -- NB-IoT Soil Moisture & EC Sensor Transmitter User Manual
Last modified by Xiaoling on 2025/07/16 17:48
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | [[image:image-20250118092740-4.png||data-xwiki-image-style-alignment="center"]] | ||
2 | |||
3 | |||
4 | |||
5 | |||
6 | |||
7 | |||
8 | |||
9 | **Table of Contents :** | ||
10 | |||
11 | {{toc/}} | ||
12 | |||
13 | |||
14 | |||
15 | |||
16 | |||
17 | |||
18 | = 1. Introduction = | ||
19 | |||
20 | == 1.1 What is SE0X-NB/NS NB-IoT Soil Moisture & EC Sensor == | ||
21 | |||
22 | |||
23 | The Dragino SE0X-NB/NS is a (% style="color:blue" %)**NB-IoT Soil Moisture & EC Sensor**(%%) for Agri-IoT with up to 4 sensor probes. It is designed to measure the (% style="color:blue" %)**soil moisture of saline-alkali soil and loamy soil**(%%). The soil sensor uses (% style="color:blue" %)**FDR method**(%%) to calculate the soil moisture with the compensation from soil temperature and conductivity. It also has been calibrated in factory for Mineral soil type. | ||
24 | |||
25 | It detects (% style="color:blue" %)**Soil Moisture**(%%), (% style="color:blue" %)**Soil Temperature**(%%) and (% style="color:blue" %)**Soil Conductivity**(%%), and then upload to IoT server via NB-IoT network*. | ||
26 | |||
27 | SE0X-NB/NS supports different uplink methods include (% style="color:blue" %)**TCP, MQTT, UDP, MQTTs or CoAP**(%%) for different application requirement. and Support Uplinks to various IoT Servers. | ||
28 | |||
29 | SE0X-NB/NS (% style="color:blue" %)**supports BLE configure**(%%) and (% style="color:blue" %)**wireless OTA update**(%%) which make user easy to use. | ||
30 | |||
31 | SE0X-NB/NS is powered by (% style="color:blue" %)**8500mAh Li-SOCI2 battery **(%%)or (% style="color:blue" %)**solar powered + Li-ion battery**(%%), it is designed for long-term use up to several years. | ||
32 | |||
33 | [[image:image-20250416171004-1.jpeg]] | ||
34 | |||
35 | |||
36 | == 1.2 Features == | ||
37 | |||
38 | |||
39 | * NB-IoT Bands: B1/B2/B3/B4/B5/B8/B12/B13/B17/B18/B19/B20/B25/B28/B66/B70/B85 @H-FDD | ||
40 | * Ultra-low power consumption | ||
41 | * Up to 4 external sensor probes, probe length: 3.5 meters | ||
42 | * Monitor Soil Moisture | ||
43 | * Monitor Soil Temperature | ||
44 | * Monitor Soil Conductivity | ||
45 | * IP66 Waterproof Enclosure | ||
46 | * Multiply Sampling and one uplink | ||
47 | * Support Bluetooth v5.1 remote configure and update firmware | ||
48 | * Uplink on periodically | ||
49 | * AT Commands to change parameters | ||
50 | * Downlink to change configure | ||
51 | * 8500mAh Li/SOCl2 Battery (SE0X-NB) | ||
52 | * Solar panel + 3000mAh Li-ion battery (SE0X-NS) | ||
53 | * Nano SIM card slot for NB-IoT SIM | ||
54 | |||
55 | (% style="color:blue" %)**Common DC Characteristics:** | ||
56 | |||
57 | * Supply Voltage: Built-in Battery , 2.6v ~~ 3.6v | ||
58 | * Operating Temperature: -40 ~~ 85°C | ||
59 | |||
60 | (% style="color:blue" %)**Soil Moisture:** | ||
61 | |||
62 | * Range: 0-100.00 V/V % | ||
63 | * Resolution: 0.01 V/V % | ||
64 | * Accuracy: ±3% (0-53%)V/V %, ±5% (>53%) V/V % | ||
65 | * Measure Method: FDR , with temperature &EC compensate | ||
66 | |||
67 | (% style="color:blue" %)**Soil Temperature** | ||
68 | |||
69 | * Range: -40.00℃~85.00℃ | ||
70 | * Resolution: 0.01℃ | ||
71 | * Accuracy: -10℃~50℃:<0.3℃ ,All other: <0.6℃ | ||
72 | * Measure Method: RTD, and calibrate | ||
73 | |||
74 | (% style="color:blue" %)**Soil Conductivity** | ||
75 | |||
76 | * Range: 0-20000 uS/cm(25℃)(0-20.0EC) | ||
77 | * Resolution: 1 uS/cm | ||
78 | * Accuracy: 2%FS | ||
79 | * Measure Method: Conductivity , with temperature compensate | ||
80 | |||
81 | (% style="color:blue" %)**NB-IoT Spec:** | ||
82 | |||
83 | (% style="color:#037691" %)**NB-IoT Module: BC660K-GL** | ||
84 | |||
85 | (% style="color:#037691" %)**Support Bands:** | ||
86 | |||
87 | * B1 @H-FDD: 2100MHz | ||
88 | * B2 @H-FDD: 1900MHz | ||
89 | * B3 @H-FDD: 1800MHz | ||
90 | * B4 @H-FDD: 2100MHz | ||
91 | * B5 @H-FDD: 860MHz | ||
92 | * B8 @H-FDD: 900MHz | ||
93 | * B12 @H-FDD: 720MHz | ||
94 | * B13 @H-FDD: 740MHz | ||
95 | * B17 @H-FDD: 730MHz | ||
96 | * B18 @H-FDD: 870MHz | ||
97 | * B19 @H-FDD: 870MHz | ||
98 | * B20 @H-FDD: 790MHz | ||
99 | * B25 @H-FDD: 1900MHz | ||
100 | * B28 @H-FDD: 750MHz | ||
101 | * B66 @H-FDD: 2000MHz | ||
102 | * B70 @H-FDD: 2000MHz | ||
103 | * B85 @H-FDD: 700MHz | ||
104 | |||
105 | (% style="color:blue" %)**Battery:** | ||
106 | |||
107 | * Li/SOCI2 un-chargeable battery | ||
108 | * Capacity: 8500mAh | ||
109 | * Self-Discharge: <1% / Year @ 25°C | ||
110 | * Max continuously current: 130mA | ||
111 | * Max boost current: 2A, 1 second | ||
112 | |||
113 | (% style="color:blue" %)**Power Consumption** | ||
114 | |||
115 | * Sleep Mode: 5uA @ 3.3v | ||
116 | * LoRa Transmit Mode: 125mA @ 20dBm, 82mA @ 14dBm | ||
117 | |||
118 | == 1.4 Applications == | ||
119 | |||
120 | |||
121 | * Smart Agriculture | ||
122 | |||
123 | == 1.5 Sleep mode and working mode == | ||
124 | |||
125 | |||
126 | (% style="color:blue" %)**Deep Sleep Mode: **(%%)Sensor doesn't have any NB-IoT activate. This mode is used for storage and shipping to save battery life. | ||
127 | |||
128 | (% style="color:blue" %)**Working Mode:**(%%) In this mode, Sensor will work as NB-IoT Sensor to Join NB-IoT network and send out sensor data to server. Between each sampling/tx/rx periodically, sensor will be in IDLE mode), in IDLE mode, sensor has the same power consumption as Deep Sleep mode. | ||
129 | |||
130 | |||
131 | == 1.6 Button & LEDs == | ||
132 | |||
133 | |||
134 | [[image:image-20250416171032-2.jpeg]] | ||
135 | |||
136 | (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %) | ||
137 | |=(% 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** | ||
138 | |[[image:1749525625251-602.png]] 1~~3s|(% style="width:117px" %)Send an uplink|(% style="width:225px" %)((( | ||
139 | If sensor has already attached to NB-IoT network, sensor will send an uplink packet, (% style="color:blue" %)**blue led**(%%) will blink once. | ||
140 | Meanwhile, BLE module will be active and user can connect via BLE to configure device. | ||
141 | ))) | ||
142 | |[[image:1749525626551-333.png]] >3s|(% style="width:117px" %)Active Device|(% style="width:225px" %)((( | ||
143 | (% style="color:green" %)**Green led**(%%) will fast blink 5 times, device will enter (% style="color:#037691" %)**OTA mode**(%%) for 3 seconds. And then start to attach NB-IoT network. | ||
144 | Once sensor is active, BLE module will be active and user can connect via BLE to configure device, no matter if device attach NB-IoT network or not. | ||
145 | ))) | ||
146 | |[[image:1749525647290-758.png]] x5|(% style="width:117px" %)Deactivate Device|(% style="width:225px" %)(% style="color:red" %)**Red led**(%%) will solid on for 5 seconds. Means device is in Deep Sleep Mode. | ||
147 | |||
148 | (% style="color:red" %)**Note: When the device is executing a program, the buttons may become invalid. It is best to press the buttons after the device has completed the program execution.** | ||
149 | |||
150 | |||
151 | == 1.7 BLE connection == | ||
152 | |||
153 | |||
154 | SE0X-NB/NS support BLE remote configure and firmware update. | ||
155 | |||
156 | BLE can be used to configure the parameter of sensor or see the console output from sensor. BLE will be only activate on below case: | ||
157 | |||
158 | * Press button to send an uplink | ||
159 | * Press button to active device. | ||
160 | * Device Power on or reset. | ||
161 | |||
162 | If there is no activity connection on BLE in 60 seconds, sensor will shut down BLE module to enter low power mode. | ||
163 | |||
164 | |||
165 | == 1.8 Pin Definitions == | ||
166 | |||
167 | [[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SE02-NB_NB-IoT_Soil_Moisture%26EC_Sensor_User_Manual/WebHome/image-20231103172153-1.png?rev=1.1||alt="image-20231103172153-1.png"]] | ||
168 | |||
169 | === 1.8.1 Jumper JP2 === | ||
170 | |||
171 | |||
172 | Power on Device when put this jumper. | ||
173 | |||
174 | |||
175 | === 1.8.2 BOOT MODE / SW1 === | ||
176 | |||
177 | |||
178 | **1)** (% style="color:blue" %)**ISP:**(%%) upgrade mode, device won't have any signal in this mode. but ready for upgrade firmware. LED won't work. Firmware won't run. | ||
179 | |||
180 | **2)** (% style="color:blue" %)**Flash:**(%%) work mode, device starts to work and send out console output for further debug | ||
181 | |||
182 | |||
183 | === 1.8.3 Reset Button === | ||
184 | |||
185 | |||
186 | Press to reboot the device. | ||
187 | |||
188 | |||
189 | === 1.8.4 SIM Card Direction === | ||
190 | |||
191 | |||
192 | See this link. [[How to insert SIM Card>>url:http://wiki.dragino.com/xwiki/bin/view/Main/General%20Configure%20to%20Connect%20to%20IoT%20server%20for%20-NB%20%26%20-NS%20NB-IoT%20models/#H2.AttachNetwork]]. | ||
193 | |||
194 | |||
195 | == 1.9 Mechanical == | ||
196 | |||
197 | === 1.9.1 for NB version === | ||
198 | |||
199 | (% style="color:blue" %)**Main Device Dimension:** | ||
200 | |||
201 | [[image:image-20250118094401-6.png]] | ||
202 | |||
203 | |||
204 | (% style="color:blue" %)**Probe Dimension:** | ||
205 | |||
206 | [[image:image-20250331152911-1.jpeg]] | ||
207 | |||
208 | |||
209 | === 1.9.2 for NS version === | ||
210 | |||
211 | |||
212 | [[image:image-20250331152921-2.jpeg]] | ||
213 | |||
214 | |||
215 | === 1.9.3 for sensor cable === | ||
216 | |||
217 | (% style="color:blue" %)**Cable size:** | ||
218 | |||
219 | Total cable length: 3500mm, deviation ±30mm | ||
220 | |||
221 | [[image:1751702941319-628.png]] | ||
222 | |||
223 | |||
224 | == 1.10 Installation in Soil == | ||
225 | |||
226 | |||
227 | (% style="color:blue" %)**Measurement the soil surface** | ||
228 | |||
229 | [[image:image-20250331152934-3.jpeg]] | ||
230 | |||
231 | Choose the proper measuring position. Avoid the probe to touch rocks or hard things. Split the surface soil according to the measured deep. Keep the measured as original density. Vertical insert the probe into the soil to be measured. Make sure not shake when inserting. | ||
232 | |||
233 | |||
234 | [[image:image-20250331152945-4.jpeg]] | ||
235 | |||
236 | Dig a hole with diameter > 20CM. | ||
237 | |||
238 | Horizontal insert the probe to the soil and fill the hole for long term measurement. | ||
239 | |||
240 | |||
241 | = 2. Use SE0X-NB/NS to communicate with IoT Server = | ||
242 | |||
243 | == 2.1 Send data to IoT server via NB-IoT network == | ||
244 | |||
245 | |||
246 | The SE0X-NB/NS is equipped with a NB-IoT module, the pre-loaded firmware in SE0X-NB/NS will get environment data from sensors and send the value to local NB-IoT network via the NB-IoT module. The NB-IoT network will forward this value to IoT server via the protocol defined by SE0X-NB/NS. | ||
247 | |||
248 | Below shows the network structure: | ||
249 | |||
250 | (% style="display:none" %) (%%) [[image:image-20250118093145-5.png]] | ||
251 | |||
252 | |||
253 | There are two version: (% style="color:blue" %)**-GE**(%%) and (% style="color:blue" %)**-1T**(%%) version of SE0X-NB/NS. | ||
254 | |||
255 | |||
256 | (% style="color:blue" %)**GE Version**(%%): This version doesn't include SIM card or point to any IoT server. User needs to use AT Commands to configure below two steps to set SE0X-NB/NS send data to IoT server. | ||
257 | |||
258 | * Install NB-IoT SIM card and configure APN. See instruction of [[Attach Network>>url:http://wiki.dragino.com/xwiki/bin/view/Main/General%20Configure%20to%20Connect%20to%20IoT%20server%20for%20-NB%20%26%20-NS%20NB-IoT%20models/#H2.AttachNetwork]]. | ||
259 | |||
260 | * Set up sensor to point to IoT Server. See instruction of [[Configure to Connect Different Servers>>url:http://wiki.dragino.com/xwiki/bin/view/Main/General%20Configure%20to%20Connect%20to%20IoT%20server%20for%20-NB%20%26%20-NS%20NB-IoT%20models/#H3.Configuretoconnecttodifferentservers]]. | ||
261 | |||
262 | Below shows result of different server as a glance. | ||
263 | |||
264 | (% border="1" cellspacing="4" style="width:515px" %) | ||
265 | |(% style="background-color:#4f81bd; color:white; width:100px" %)**Servers**|(% style="background-color:#4f81bd; color:white; width:300px" %)**Dash Board**|(% style="background-color:#4f81bd; color:white; width:115px" %)**Comments** | ||
266 | |(% style="width:127px" %)[[Node-Red>>url:http://wiki.dragino.com/xwiki/bin/view/Main/General%20Configure%20to%20Connect%20to%20IoT%20server%20for%20-NB%20%26%20-NS%20NB-IoT%20models/#H3.5A0Node-RedA028viaA0MQTT29]]|(% style="width:385px" %)[[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SE02-NB_NB-IoT_Soil_Moisture%26EC_Sensor_User_Manual/WebHome/image-20230819113244-8.png?width=367&height=183&rev=1.1||alt="image-20230819113244-8.png"]]((( | ||
267 | |||
268 | )))|(% style="width:170px" %) | ||
269 | |(% style="width:127px" %)[[DataCake>>url:http://wiki.dragino.com/xwiki/bin/view/Main/General%20Configure%20to%20Connect%20to%20IoT%20server%20for%20-NB%20%26%20-NS%20NB-IoT%20models/#H3.4Datacake]]|(% style="width:385px" %)[[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SE02-NB_NB-IoT_Soil_Moisture%26EC_Sensor_User_Manual/WebHome/image-20230819113244-9.png?width=367&height=119&rev=1.1||alt="image-20230819113244-9.png"]]((( | ||
270 | |||
271 | )))|(% style="width:170px" %) | ||
272 | |(% style="width:127px" %)[[Tago.IO>>url:http://wiki.dragino.com/xwiki/bin/view/Main/General%20Configure%20to%20Connect%20to%20IoT%20server%20for%20-NB%20%26%20-NS%20NB-IoT%20models/#H3.7A0Tago.ioA028viaA0MQTT29]]|(% style="width:385px" %) |(% style="width:170px" %) | ||
273 | |(% style="width:127px" %)[[General UDP>>url:http://wiki.dragino.com/xwiki/bin/view/Main/General%20Configure%20to%20Connect%20to%20IoT%20server%20for%20-NB%20%26%20-NS%20NB-IoT%20models/#H3.1GeneralA0UDPA0Connection]]|(% style="width:385px" %)Raw Payload. Need Developer to design Dash Board|(% style="width:170px" %) | ||
274 | |(% style="width:127px" %)[[General MQTT>>url:http://wiki.dragino.com/xwiki/bin/view/Main/General%20Configure%20to%20Connect%20to%20IoT%20server%20for%20-NB%20%26%20-NS%20NB-IoT%20models/#H3.2GeneralA0MQTTA0Connection]]|(% style="width:385px" %)Raw Payload. Need Developer to design Dash Board|(% style="width:170px" %) | ||
275 | |(% style="width:127px" %)[[ThingSpeak>>url:http://wiki.dragino.com/xwiki/bin/view/Main/General%20Configure%20to%20Connect%20to%20IoT%20server%20for%20-NB%20%26%20-NS%20NB-IoT%20models/#H3.3A0ThingSpeakA028viaA0MQTT29]]|(% style="width:385px" %)[[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SE02-NB_NB-IoT_Soil_Moisture%26EC_Sensor_User_Manual/WebHome/image-20230819113244-10.png?width=367&height=104&rev=1.1||alt="image-20230819113244-10.png"]]((( | ||
276 | |||
277 | )))|(% style="width:170px" %) | ||
278 | |(% style="width:127px" %)[[ThingsBoard>>url:http://wiki.dragino.com/xwiki/bin/view/Main/General%20Configure%20to%20Connect%20to%20IoT%20server%20for%20-NB%20%26%20-NS%20NB-IoT%20models/#H3.6A0ThingsBoard.CloudA028viaA0MQTT29]]|(% style="width:385px" %)[[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SE02-NB_NB-IoT_Soil_Moisture%26EC_Sensor_User_Manual/WebHome/image-20230819113244-11.png?width=367&height=141&rev=1.1||alt="image-20230819113244-11.png"]]((( | ||
279 | |||
280 | ))) | ||
281 | |||
282 | (% style="color:blue" %)**1T Version**(%%): This version has 1NCE SIM card pre-installed and configure to send value to ThingsEye. User Just need to select the sensor type in ThingsEyeand Activate SE0X-NB/NS and user will be able to see data in ThingsEye. See here for [[ThingsEye Config Instruction>>url:https://wiki.thingseye.io/xwiki/bin/view/Main/]]. | ||
283 | |||
284 | |||
285 | === (% style="color:blue" %)**Soil Sensor Address Configuration**(%%) === | ||
286 | |||
287 | All soil sensors are shipped with (% style="color:#037691" %)**default address 0x01**(%%). | ||
288 | |||
289 | Do not use the same address repeatedly on the same node, otherwise the data will conflict, so if you connect more than 1 sensor to the SE0X-NB/NS node, you need to follow the steps below to change the address (supported addresses: **01-04**): | ||
290 | |||
291 | **Step 1**: Keep the default address **01** for the **first sensor**. No modification or operation is required. | ||
292 | |||
293 | **Step 2**: Connect the **second sensor**, and change its address to **02**. | ||
294 | |||
295 | **Step 3**:** **Disconnect the second sensor, connect the** third sensor**, and change its address to **03**. | ||
296 | |||
297 | **Step 3**: Repeat Step 3 to assign address **04** to the **fourth sensor**. | ||
298 | |||
299 | |||
300 | **For details, see [[Configure Methods>>||anchor="H3.1ConfigureMethods"]] in 3.1 and [[Command Description>>||anchor="H3.16Settingthesensoraddress"]] in 3.16.** | ||
301 | |||
302 | (% style="color:blue" %)**Connection:** | ||
303 | |||
304 | * Wiring during sensor operation: | ||
305 | |||
306 | [[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SE0X-LB--LoRaWAN_Soil_Moisture%26EC_Sensor_Transmitter_User_Manual/WebHome/image-20250414091358-1.jpeg?width=549&height=287&rev=1.1||alt="image-20250414091358-1.jpeg" height="287" width="549"]] | ||
307 | |||
308 | * Wiring when changing the sensor address: | ||
309 | |||
310 | [[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SE0X-LB--LoRaWAN_Soil_Moisture%26EC_Sensor_Transmitter_User_Manual/WebHome/image-20250414092154-2.jpeg?width=548&height=303&rev=1.1||alt="image-20250414092154-2.jpeg" height="303" width="548"]] | ||
311 | |||
312 | (% style="color:red" %)**Note: The yellow wire is only used when the address of the sensor is modified. After the address of the sensor is successfully modified, please disconnect the yellow cable and use tape to isolate the wire core to prevent the yellow wire from touching the motherboard element and causing a short circuit.** | ||
313 | |||
314 | |||
315 | == 2. Payload Types == | ||
316 | |||
317 | |||
318 | To meet different server requirement, SE0X-NB/NS supports different payload type. | ||
319 | |||
320 | **Includes:** | ||
321 | |||
322 | * [[General JSON format payload>>||anchor="H2.2.1GeneralJsonFormat28Type3D529"]]. (Type=5) | ||
323 | |||
324 | * [[HEX format Payload>>||anchor="H2.2.2HEXformatPayload28Type3D029"]]. (Type=0) | ||
325 | |||
326 | * [[ThingSpeak Format>>||anchor="H2.2.4ThingSpeakPayload28Type3D129"]]. (Type=1) | ||
327 | |||
328 | * [[ThingsBoard Format>>||anchor="H2.2.3ThingsBoardPayload28Type3D329"]]. (Type=3) | ||
329 | |||
330 | User can specify the payload type when choose the connection protocol. Example: | ||
331 | |||
332 | (% style="color:#037691" %)**AT+PRO=1,0** (%%) ~/~/ Use COAP Connection & hex Payload | ||
333 | |||
334 | (% style="color:#037691" %)**AT+PRO=1,5** (%%) ~/~/ Use COAP Connection & Json Payload | ||
335 | |||
336 | (% style="color:#037691" %)**AT+PRO=2,0** (%%) ~/~/ Use UDP Connection & hex Payload | ||
337 | |||
338 | (% style="color:#037691" %)**AT+PRO=2,5** (%%) ~/~/ Use UDP Connection & Json Payload | ||
339 | |||
340 | (% style="color:#037691" %)**AT+PRO=3,0** (%%) ~/~/ Use MQTT Connection & hex Payload | ||
341 | |||
342 | (% style="color:#037691" %)**AT+PRO=3,5** (%%) ~/~/ Use MQTT Connection & Json Payload | ||
343 | |||
344 | (% style="color:#037691" %)**AT+PRO=4,0** (%%) ~/~/ Use TCP Connection & hex Payload | ||
345 | |||
346 | (% style="color:#037691" %)**AT+PRO=4,5** (%%) ~/~/ Use TCP Connection & Json Payload | ||
347 | |||
348 | |||
349 | === 2.2.1 General Json Format(Type~=5) === | ||
350 | |||
351 | |||
352 | ==== 2.2.1.1 AT+CFGMOD~=0(Default Mode) ==== | ||
353 | |||
354 | This is the General Json Format. As below: | ||
355 | |||
356 | (% style="color:#4472c4" %)**{"IMEI":"863663062765285","IMSI":"460086859301435","Model":"SE0X-NB","interrupt":0,"interrupt_level":0,"battery":3.27,"signal":2,"sensor_flag":"1111","water_soil1":38.11,"temp_soil1":17.68,"conduct_soil1":8234,"water_soil2":32.01,"temp_soil2":17.69,"conduct_soil2":4323,"water_soil3":30.72,"temp_soil3":17.91,"conduct_soil3":5058,"water_soil4":32.07,"temp_soil4":17.80,"conduct_soil4":5116,"time":"2025/01/18 02:38:06"}** | ||
357 | |||
358 | [[image:image-20250118104526-1.png]] | ||
359 | |||
360 | |||
361 | (% style="color:red" %)**Notice, from above payload:** | ||
362 | |||
363 | * interrupt, interrupt_level, battery, signal, sensor_flag, water_soil1, temp_soil1, conduct_soil1, water_soil2, emp_soil2, conduct_soil2, water_soil3, temp_soil3, onduct_soil3, water_soil4, temp_soil4, | ||
364 | |||
365 | conduct_soil4 & time are the value at uplink time. | ||
366 | |||
367 | |||
368 | ==== 2.2.1.2 AT+CFGMOD~=1(Original value) ==== | ||
369 | |||
370 | This is the General Json Format. As below: | ||
371 | |||
372 | (% style="color:#4472c4" %)**{"IMEI":"863663062765285","IMSI":"460086859301435","Model":"SE0X-NB","interrupt":0,"interrupt_level":0,"battery":3.27,"signal":22,"sensor_flag":"1111","Soil_dielectric_constant1":26.1,"raw_water_soil1":4896,"raw_conduct_soil1":23564,"Soil_dielectric_constant2":20.8,"raw_water_soil2":4864,"raw_conduct_soil2":16536,"Soil_dielectric_constant3":6.9,"raw_water_soil3":3676,"raw_conduct_soil3":9028,"Soil_dielectric_constant4":18.8,"raw_water_soil4":4710,"raw_conduct_soil4":18000,"time":"2025/01/18 05:48:36"}** | ||
373 | |||
374 | [[image:image-20250118135106-3.png]] | ||
375 | |||
376 | (% style="color:red" %)**Notice, from above payload:** | ||
377 | |||
378 | * interrupt, interrupt_level, battery, signal, sensor_flag, Soil_dielectric_constant1, raw_water_soil1, raw_conduct_soil1, Soil_dielectric_constant2, raw_water_soil2, raw_conduct_soil2, | ||
379 | |||
380 | Soil_dielectric_constant3, raw_water_soil3, raw_conduct_soil3, Soil_dielectric_constant4, raw_water_soil4, raw_conduct_soil4 & time are the value at uplink time. | ||
381 | |||
382 | |||
383 | === 2.2.2 HEX format Payload(Type~=0) === | ||
384 | |||
385 | |||
386 | ==== 2.2.2.1 AT+CFGMOD~=0(Default Mode) ==== | ||
387 | |||
388 | This is the HEX Format. As below: | ||
389 | |||
390 | (% style="color:#4472c4" %)**f863663062765285f46008685930143536640cd1170000000f0fa006e817a30cac06f512410c9407031baa0cdf06ff14d7678b174** | ||
391 | |||
392 | [[image:image-20250321105237-1.png]] | ||
393 | |||
394 | If we use the MQTT client to subscribe to this MQTT topic, we can see the following information when the NB sensor uplink data. | ||
395 | |||
396 | [[image:image-20250118111500-2.png]] | ||
397 | |||
398 | |||
399 | (% style="color:blue" %)**Device ID(f+IMEI):**(%%)** **f863663062765285 =863663062765285 | ||
400 | |||
401 | (% style="color:blue" %)**SIM Card ID(f+IMSI):**(%%)** **f460086859301435 =460086859301435 | ||
402 | |||
403 | |||
404 | (% style="color:blue" %)**Version:** | ||
405 | |||
406 | These bytes include the hardware and software version. | ||
407 | |||
408 | (% style="color:#037691" %)**Higher byte:**(%%) Specify Sensor Model: 0x36 for SE0X-NB/NS | ||
409 | |||
410 | (% style="color:#037691" %)**Lower byte:**(%%) Specify the software version: 0x64=100, means firmware version 1.0.0 | ||
411 | |||
412 | |||
413 | (% style="color:blue" %)**BAT (Battery Info):** | ||
414 | |||
415 | Ex1: 0x0CD1 = 3281mV | ||
416 | |||
417 | |||
418 | (% style="color:blue" %)**Signal Strength:** | ||
419 | |||
420 | NB-IoT Network signal Strength. | ||
421 | |||
422 | **Ex1: 0x17 = 23** | ||
423 | |||
424 | **0** -113dBm or less | ||
425 | |||
426 | **1** -111dBm | ||
427 | |||
428 | **2...30** -109dBm... -53dBm | ||
429 | |||
430 | **31** -51dBm or greater | ||
431 | |||
432 | **99** Not known or not detectable | ||
433 | |||
434 | |||
435 | (% style="color:blue" %)**MOD** | ||
436 | |||
437 | This data field shows the current working mode. | ||
438 | |||
439 | **Ex1:** 0x00 default mode. | ||
440 | |||
441 | **Ex2: **0x01 original mode. | ||
442 | |||
443 | |||
444 | (% style="color:blue" %)**Interrupt** | ||
445 | |||
446 | This data field shows if this packet is generated by interrupt or not. | ||
447 | |||
448 | **Example:** | ||
449 | |||
450 | If byte[0]&0x01=0x00 : Normal uplink packet. | ||
451 | |||
452 | If byte[0]&0x01=0x01 : Interrupt Uplink Packet. | ||
453 | |||
454 | |||
455 | (% style="color:blue" %)**Interrupt_level:** | ||
456 | |||
457 | This byte shows whether the interrupt is triggered by a high or low level. | ||
458 | |||
459 | **Ex1:** 0x00 Interrupt triggered by falling edge (low level) | ||
460 | |||
461 | **Ex2: **0x01 Interrupt triggered by rising edge (high level) | ||
462 | |||
463 | |||
464 | (% style="color:blue" %)**Sensor_flag** | ||
465 | |||
466 | Displays whether sensors are connected. | ||
467 | |||
468 | **0:** Sensor connection not detected. | ||
469 | |||
470 | **1:** Sensor connection detected. | ||
471 | |||
472 | **For example,** s_flag=1111,.Represents recognition to four sensors. | ||
473 | |||
474 | Counting from left to right, | ||
475 | |||
476 | The first number represents the **01** address sensor, | ||
477 | |||
478 | The second number represents the **02** address sensor; | ||
479 | |||
480 | The third number represents the **03** address sensor; | ||
481 | |||
482 | The fourth number represents the **04** address sensor. | ||
483 | |||
484 | |||
485 | (% style="color:blue" %)**Soil Moisture ** | ||
486 | |||
487 | ((( | ||
488 | Get the moisture content of the soil. The value range of the register is 0-10000(Decimal), divide this value by 100 to get the percentage of moisture in the soil. | ||
489 | ))) | ||
490 | |||
491 | ((( | ||
492 | For example, if the data you get from the register is **__0x05 0xDC__**, the moisture content in the soil is (% style="color:blue" %)**05DC(H) = 1500(D) /100 = 15%.** | ||
493 | ))) | ||
494 | |||
495 | |||
496 | (% style="color:blue" %)**Soil Temperature ** | ||
497 | |||
498 | ((( | ||
499 | Get the temperature in the soil. The value range of the register is -4000 - +800(Decimal), divide this value by 100 to get the temperature in the soil. For example, if the data you get from the register is 0x09 0xEC, the temperature content in the soil is | ||
500 | ))) | ||
501 | |||
502 | ((( | ||
503 | **Example**: | ||
504 | ))) | ||
505 | |||
506 | ((( | ||
507 | If payload is 0105H: ((0x0105 & 0x8000)>>15 === 0),temp = 0105(H)/100 = 2.61 °C | ||
508 | ))) | ||
509 | |||
510 | ((( | ||
511 | If payload is FF7EH: ((FF7E & 0x8000)>>15 ===1),temp = (FF7E(H)-FFFF(H))/100 = -1.29 °C | ||
512 | ))) | ||
513 | |||
514 | |||
515 | (% style="color:blue" %)**Soil Conductivity (EC) ** | ||
516 | |||
517 | ((( | ||
518 | Obtain (% style="color:blue" %)**__soluble salt concentration__**(%%) in soil or (% style="color:blue" %)**__soluble ion concentration in liquid fertilizer__**(%%) or (% style="color:blue" %)**__planting medium__**(%%). The value range of the register is 0 - 20000(Decimal)( Can be greater than 20000). | ||
519 | ))) | ||
520 | |||
521 | ((( | ||
522 | For example, if the data you get from the register is 0x00 0xC8, the soil conductivity is 00C8(H) = 200(D) = 200 uS/cm. | ||
523 | ))) | ||
524 | |||
525 | ((( | ||
526 | Generally, the EC value of irrigation water is less than 800uS / cm. | ||
527 | ))) | ||
528 | |||
529 | |||
530 | (% style="color:blue" %)**TimeStamp: ** | ||
531 | |||
532 | Unit TimeStamp Example: 678B1740(H) = 1737168704(D) | ||
533 | |||
534 | Put the decimal value into this link([[https:~~/~~/www.epochconverter.com)>>https://www.epochconverter.com]]) to get the time. | ||
535 | |||
536 | |||
537 | ==== 2.2.2.2 AT+CFGMOD~=1(Original value) ==== | ||
538 | |||
539 | This is the HEX Format. As below: | ||
540 | |||
541 | (% style="color:#4472c4" %)**f863663062765285f46008685930143536640ccd160100000f017b13c055b300d6132b41f100450e3b237a00c31271480c678b4410** | ||
542 | |||
543 | [[image:image-20250321105250-2.png]] | ||
544 | |||
545 | If we use the MQTT client to subscribe to this MQTT topic, we can see the following information when the NB sensor uplink data. | ||
546 | |||
547 | [[image:image-20250118140729-4.png]] | ||
548 | |||
549 | |||
550 | |||
551 | |||
552 | === 2.2.3 ThingsBoard Payload(Type~=3) === | ||
553 | |||
554 | |||
555 | ==== 2.2.3.1 AT+CFGMOD~=0(Default Mode) ==== | ||
556 | |||
557 | (% style="color:#4472c4" %)**{ | ||
558 | "IMEI": "863663062765285", | ||
559 | "IMSI": "460086859301435", | ||
560 | "Model": "SE0X-NB", | ||
561 | "interrupt": 0, | ||
562 | "interrupt_level": 0, | ||
563 | "battery": 3.27, | ||
564 | "signal": 20, | ||
565 | "sensor_flag": "1111", | ||
566 | "water_soil1": 38.02, | ||
567 | "temp_soil1": 19.41, | ||
568 | "conduct_soil1": 5761, | ||
569 | "water_soil2": 41.96, | ||
570 | "temp_soil2": 19.75, | ||
571 | "conduct_soil2": 6544, | ||
572 | "water_soil3": 34.29, | ||
573 | "temp_soil3": 19.71, | ||
574 | "conduct_soil3": 5653, | ||
575 | "water_soil4": 0, | ||
576 | "temp_soil4": 20.56, | ||
577 | "conduct_soil4": 0, | ||
578 | "time": "2025/01/21 07:42:38" | ||
579 | }** | ||
580 | |||
581 | [[image:image-20250121154544-1.png]] | ||
582 | |||
583 | |||
584 | |||
585 | ==== 2.2.3.2 AT+CFGMOD~=1(Original value) ==== | ||
586 | |||
587 | (% style="color:#4472c4" %)**{ | ||
588 | "IMEI": "863663062765285", | ||
589 | "IMSI": "460086859301435", | ||
590 | "Model": "SE0X-NB", | ||
591 | "interrupt": 0, | ||
592 | "interrupt_level": 0, | ||
593 | "battery": 3.27, | ||
594 | "signal": 23, | ||
595 | "sensor_flag": "1111", | ||
596 | "Soil_dielectric_constant1": 23.4, | ||
597 | "raw_water_soil1": 4835, | ||
598 | "raw_conduct_soil1": 19052, | ||
599 | "Soil_dielectric_constant2": 27.3, | ||
600 | "raw_water_soil2": 5106, | ||
601 | "raw_conduct_soil2": 17278, | ||
602 | "Soil_dielectric_constant3": 19.8, | ||
603 | "raw_water_soil3": 4646, | ||
604 | "raw_conduct_soil3": 18886, | ||
605 | "Soil_dielectric_constant4": 1, | ||
606 | "raw_water_soil4": 2507, | ||
607 | "raw_conduct_soil4": 0, | ||
608 | "time": "2025/01/21 07:53:07" | ||
609 | }** | ||
610 | |||
611 | [[image:image-20250121155748-2.png]] | ||
612 | |||
613 | |||
614 | === 2.2.4 ThingSpeak Payload(Type~=1) === | ||
615 | |||
616 | |||
617 | This payload meets ThingSpeak platform requirement. | ||
618 | |||
619 | ThingSpeak only supports a maximum of 8 field charts per channel, so the sample screenshot contains only 8 fields charts. | ||
620 | |||
621 | |||
622 | ==== 2.2.4.1 AT+CFGMOD~=0(Default Mode) ==== | ||
623 | |||
624 | (% style="color:#4472c4" %)**field1=Battery value&field2=Signal value&field3=water_soil1 value&field4=temp_soil1 value&field5=conduct_soil1 value&field6=water_soil2 value&field7=temp_soil2 value&field8=conduct_soil2 value** | ||
625 | |||
626 | [[image:image-20250118144938-9.png]] | ||
627 | |||
628 | [[image:image-20250118144955-10.png]] | ||
629 | |||
630 | |||
631 | ==== 2.2.4.2 AT+CFGMOD~=1(Original value) ==== | ||
632 | |||
633 | (% style="color:#4472c4" %)**field1=Battery value&field2=Signal value&field3=Soil_dielectric_constant1 value&field4=raw_water_soil1 value&field5=raw_conduct_soil1 value&field6=Soil_dielectric_constant2 value&field7=raw_water_soil2 value&field8=raw_conduct_soil2 value** | ||
634 | |||
635 | [[image:image-20250118143400-5.png||height="578" width="893"]] | ||
636 | |||
637 | [[image:image-20250118143410-6.png||height="581" width="885"]] | ||
638 | |||
639 | |||
640 | = 3. Configure SE0X-NB/NS = | ||
641 | |||
642 | == 3.1 Configure Methods == | ||
643 | |||
644 | |||
645 | SE0X-NB/NS supports below configure method: | ||
646 | |||
647 | * AT Command via Bluetooth Connection (**Recommended**): [[BLE Configure Instruction>>http://wiki.dragino.com/xwiki/bin/view/Main/BLE%20Bluetooth%20Remote%20Configure/]]. | ||
648 | |||
649 | * AT Command via UART Connection : See [[UART Connection>>http://wiki.dragino.com/xwiki/bin/view/Main/UART%20Access%20for%20LoRa%20ST%20v4%20base%20model/#H2.3UARTConnectionforSN50v3basemotherboard]]. | ||
650 | |||
651 | == 3.2 Serial Access Password == | ||
652 | |||
653 | |||
654 | After the Bluetooth or UART connection is successful, use the Serial Access Password to enter the AT command window. | ||
655 | |||
656 | The label on the box of the node will print the initial password: AT+PIN=**xxxxxx**, and directly use the six-digit password to access the AT instruction window. | ||
657 | |||
658 | [[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/RS485-NB%2C-NS_RS485%2CUART_to_NB-IoT_Converter_User_Manual/WebHome/image-20250226165815-1.png?rev=1.1||alt="image-20250226165815-1.png"]] | ||
659 | |||
660 | |||
661 | If you need to change the password, use **AT+PWORD=**xxxxxx (6 characters), -NB nodes only support lowercase letters. | ||
662 | |||
663 | [[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SN50v3-CB_NB-IoTLTE-M_Sensor_Node_User_Manual/WebHome/image-20240826180321-2.png?rev=1.1||alt="image-20240826180321-2.png"]] | ||
664 | |||
665 | |||
666 | (% style="color:red" %)**Note: After entering the command, you need to add a line break, and you can also set automatic line breaks in the Bluetooth tool or UART connection tool.** | ||
667 | |||
668 | [[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SN50v3-CB_NB-IoTLTE-M_Sensor_Node_User_Manual/WebHome/image-20240826180330-3.png?rev=1.1||alt="image-20240826180330-3.png"]] | ||
669 | |||
670 | |||
671 | == 3.3 AT Commands Set == | ||
672 | |||
673 | |||
674 | AT+<CMD>? : Help on <CMD> | ||
675 | |||
676 | AT+<CMD> : Run <CMD> | ||
677 | |||
678 | AT+<CMD>=<value> : Set the value | ||
679 | |||
680 | AT+<CMD>=? : Get the value | ||
681 | |||
682 | |||
683 | (% style="color:blue" %)**General Commands** | ||
684 | |||
685 | AT : Attention | ||
686 | |||
687 | AT? : Short Help | ||
688 | |||
689 | AT+MODEL : Get module information | ||
690 | |||
691 | ATZ : Trig a reset of the MCU | ||
692 | |||
693 | AT+CFGMOD : Working mode selection | ||
694 | |||
695 | AT+DEUI : Get or set the Device ID | ||
696 | |||
697 | AT+SERVADDR: Get or Set the Server address | ||
698 | |||
699 | AT+TDC : Get or set the application data transmission interval in s | ||
700 | |||
701 | AT+INTMOD : Get or Set the trigger interrupt mode (0:input,1:falling or rising,2:falling,3:rising) | ||
702 | |||
703 | AT+APN : Get or set the APN | ||
704 | |||
705 | AT+5VT : Get or Set extend the time of 5V power | ||
706 | |||
707 | AT+PRO : Get or Set usage agreement (1:COAP,2:UDP,3:MQTT,4:TCP) | ||
708 | |||
709 | AT+RXDL : Get or Set the receiving time | ||
710 | |||
711 | AT+GETSENSORVALUE : Returns the current sensor measurement | ||
712 | |||
713 | AT+DNSCFG : Get or Set DNS Server | ||
714 | |||
715 | AT+CSQTIME : Get or Set the time to join the network | ||
716 | |||
717 | AT+BKDNS : Get or Set dynamic domain name resolution IP | ||
718 | |||
719 | AT+SLEEP : Get or Set the sleep mode | ||
720 | |||
721 | AT+DOWNTE: Get or set the conversion between the standard version and 1T version downlinks | ||
722 | |||
723 | AT+MADD: Change the sensor address to 0x01, 0x02, 0x03, 0x04 | ||
724 | |||
725 | |||
726 | (% style="color:blue" %)**MQTT Management** | ||
727 | |||
728 | AT+CLIENT : Get or Set the MQTT clientID | ||
729 | |||
730 | AT+UNAME : Get or Set the MQTT Username | ||
731 | |||
732 | AT+PWD : Get or Set the MQTT password | ||
733 | |||
734 | AT+PUBTOPIC: Get or set MQTT publishing topic | ||
735 | |||
736 | AT+SUBTOPIC: Get or set MQTT subscription topic | ||
737 | |||
738 | AT+MQOS : Set the QoS level of MQTT | ||
739 | |||
740 | AT+TLSMOD : Get or Set the TLS mode | ||
741 | |||
742 | |||
743 | (% style="color:blue" %)**COAP Management** | ||
744 | |||
745 | AT+URI1: Get or set CoAP option 1 | ||
746 | |||
747 | AT+URI2: Get or set CoAP option 2 | ||
748 | |||
749 | AT+URI3: Get or set CoAP option 3 | ||
750 | |||
751 | AT+URI4: Get or set CoAP option 4 | ||
752 | |||
753 | |||
754 | (% style="color:blue" %)**Information** | ||
755 | |||
756 | AT+FDR1 : Reset parameters to factory default values except for passwords | ||
757 | |||
758 | AT+FDR : Reset Parameters to Factory Default | ||
759 | |||
760 | AT+CFG : Print all settings | ||
761 | |||
762 | AT+PWORD : Get or set the System password | ||
763 | |||
764 | AT+LDATA : Get the last upload data | ||
765 | |||
766 | AT+GETLOG : Print serial port logs | ||
767 | |||
768 | |||
769 | == 3.4 Test Uplink and Change Update Interval == | ||
770 | |||
771 | |||
772 | By default, Sensor will send uplinks **every 2 hours.** | ||
773 | |||
774 | User can use below commands to change the uplink interval. | ||
775 | |||
776 | (% style="color:blue" %)**AT Command: **(% style="color:#037691" %)**AT+TDC** (%%) | ||
777 | |||
778 | Example: AT+TDC=7200 ~/~/ Set Update Interval to 7200 seconds | ||
779 | |||
780 | (% style="color:blue" %)**Downlink Commands: **(% style="color:#037691" %)**0x01** | ||
781 | |||
782 | Format: Command Code (0x01) followed by 3 bytes. | ||
783 | |||
784 | Example: 12 hours= 43200 seconds 43200(D)=0xA8C0(H) | ||
785 | |||
786 | Downlink Payload: **01 00 A8 C0** ~/~/ AT+TDC=43200, Set Update Interval to 12 hours. | ||
787 | |||
788 | (% style="color:red" %)**Note: User can also push the button for more than 1 second to activate an uplink.** | ||
789 | |||
790 | |||
791 | == 3.5 Working mode selection == | ||
792 | |||
793 | |||
794 | Feature: Working mode selection. | ||
795 | |||
796 | (% style="color:blue" %)**AT command: **(% style="color:#037691" %)**AT+CFGMOD** | ||
797 | |||
798 | (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:470px" %) | ||
799 | |=(% style="width: 191px; background-color: rgb(79, 129, 189); color: white;" %)**Command Example**|=(% style="width: 279px; background-color: rgb(79, 129, 189); color: white;" %)**Function** | ||
800 | |(% style="width:191px" %)AT+CFGMOD=0|(% style="width:277px" %)((( | ||
801 | Set the operating mode to the default mode | ||
802 | ))) | ||
803 | |(% style="width:191px" %)AT+CFGMOD=1|(% style="width:277px" %)Setting the operating mode to the original mode | ||
804 | |||
805 | (% style="color:blue" %)**Downlink Command: **(% style="color:#037691" %)**0x02** | ||
806 | |||
807 | * Downlink command: 02 01 ~/~/ Equal to AT+CFGMOD=0 | ||
808 | * Downlink command: 02 02 ~/~/ Equal to AT+CFGMOD=1 | ||
809 | |||
810 | == 3.6 Set the receiving time == | ||
811 | |||
812 | |||
813 | Feature: Extend the receiving time | ||
814 | |||
815 | (% style="color:blue" %)**AT Command: **(% style="color:#037691" %)**AT+RXDL** | ||
816 | |||
817 | Example: AT+RXDL=1000 ~/~/ Set the receiving time delay to 1000ms | ||
818 | |||
819 | (% style="color:blue" %)**Downlink Commands: **(% style="color:#037691" %)**0x03** | ||
820 | |||
821 | Format: Command Code (0x03) followed by 3 bytes. | ||
822 | |||
823 | Example: Downlink Payload: **03 00 03 E8 **~/~/ AT+RXDL=1000 | ||
824 | |||
825 | |||
826 | == 3.7 Reset == | ||
827 | |||
828 | |||
829 | Feature: Trig a reset of the MCU. | ||
830 | |||
831 | (% style="color:blue" %)**AT Command: **(% style="color:#037691" %)**ATZ** | ||
832 | |||
833 | (% style="color:blue" %)**Downlink Commands: **(% style="color:#037691" %)**0x04FF** | ||
834 | |||
835 | |||
836 | == 3.8 +5V == | ||
837 | |||
838 | |||
839 | Feature: Set extend the time of 5V power. | ||
840 | |||
841 | (% style="color:blue" %)**AT Command: **(% style="color:#037691" %)**AT+5VT** | ||
842 | |||
843 | Example: AT+5VT=2000 ~/~/ Set extend the time of 5V power to 2000 ms | ||
844 | |||
845 | (% style="color:blue" %)**Downlink Commands: **(% style="color:#037691" %)**0x05** | ||
846 | |||
847 | Format: Command Code (0x05) followed by 3 bytes. | ||
848 | |||
849 | Example: Downlink Payload: **05 00 07 D0 **~/~/ AT+5VT=2000 | ||
850 | |||
851 | |||
852 | == 3.9 Trigger an uplink by external interrupt == | ||
853 | |||
854 | |||
855 | SE0X-NB/NS has an external trigger interrupt function. Users can use the GPIO_EXTI pin to trigger the upload of data packets. | ||
856 | |||
857 | (% style="color:blue" %)**AT command:** | ||
858 | |||
859 | * (% style="color:#037691" %)**AT+INTMOD **(%%) ~/~/ Set the trigger interrupt mode | ||
860 | |||
861 | * (% style="color:#037691" %)**AT+INTMOD=0 **(%%) ~/~/ Disable Interrupt | ||
862 | |||
863 | * (% style="color:#037691" %)**AT+INTMOD=1 **(%%) ~/~/ Trigger by rising and falling edge | ||
864 | |||
865 | * (% style="color:#037691" %)**AT+INTMOD=2 **(%%) ~/~/ Trigger by falling edge | ||
866 | |||
867 | * (% style="color:#037691" %)**AT+INTMOD=3 **(%%) ~/~/ Trigger by rising edge | ||
868 | |||
869 | (% style="color:blue" %)**Downlink Commands: **(% style="color:#037691" %)**0x06** | ||
870 | |||
871 | Format: Command Code (0x06) followed by 3 bytes. | ||
872 | |||
873 | Example1: Downlink Payload: **06 00 00 01 **~/~/ AT+INTMOD=1 | ||
874 | |||
875 | Example2: Downlink Payload: **06 00 00 03 **~/~/ AT+INTMOD=3 | ||
876 | |||
877 | |||
878 | == 3.10 Set the QoS level == | ||
879 | |||
880 | |||
881 | This command is used to set the QoS level of **MQTT**. | ||
882 | |||
883 | (% style="color:blue" %)**AT command:** | ||
884 | |||
885 | * (% style="color:#037691" %)**AT+MQOS=xx**(%%)** **~/~/ 0~~2 | ||
886 | |||
887 | (% style="color:blue" %)**Downlink command:**(%%)** (% style="color:#037691" %)0x07(%%)** | ||
888 | |||
889 | Format: Command Code (0x07) followed by 1 byte. | ||
890 | |||
891 | **Ex1:** Downlink payload: **0x0700** ~/~/ AT+MQOS=0 | ||
892 | |||
893 | **Ex2:** Downlink payload: **0x0701** ~/~/ AT+MQOS=1 | ||
894 | |||
895 | |||
896 | == 3.11 Set the TLS mode == | ||
897 | |||
898 | |||
899 | Refer to this link ([[MQTT Connection to send data to Tago.io>>https://wiki.dragino.com/xwiki/bin/view/Main/General%20Configure%20to%20Connect%20to%20IoT%20server%20for%20-NB%20%26%20-NS%20NB-IoT%20models/#H3.8A0Tago.ioA028viaA0MQTT29]])to use the TLS mode. | ||
900 | |||
901 | (% style="color:blue" %)**AT Command: **(% style="color:#037691" %)**AT+TLSMOD** | ||
902 | |||
903 | **Example 1: ** AT+TLSMOD=0,0 ~/~/ Disable TLS Mode. | ||
904 | |||
905 | **Example 2:** AT+TLSMOD=1,0 ~/~/ No authentication | ||
906 | |||
907 | AT+TLSMOD=1,1 ~/~/ Perform server authentication | ||
908 | |||
909 | AT+TLSMOD=1,2 ~/~/ Perform server and client authentication if requested by the remote server | ||
910 | |||
911 | (% style="color:blue" %)**Downlink command:**(%%)** (% style="color:#037691" %)0x09(%%)** | ||
912 | |||
913 | Format: Command Code (0x09) followed by 2 bytes. | ||
914 | |||
915 | Example1: Downlink Payload: **09 00 00 **~/~/ AT+TLSMOD=0,0 | ||
916 | |||
917 | Example2: Downlink Payload: **09 01 02 **~/~/ AT+TLSMOD=1,2 | ||
918 | |||
919 | |||
920 | == 3.12 Set the search network time == | ||
921 | |||
922 | |||
923 | Feature: Get or Set the time to join the network(unit: minutes). | ||
924 | |||
925 | (% style="color:blue" %)**AT Command: **(% style="color:#037691" %)**AT+CSQTIME** | ||
926 | |||
927 | Example: AT+CSQTIME=10 ~/~/ Set the search time to 10 minutes. | ||
928 | |||
929 | (% style="color:blue" %)**Downlink command:**(%%)** (% style="color:#037691" %)0x13(%%)** | ||
930 | |||
931 | Format: Command Code (0x13) followed by 1 byte. | ||
932 | |||
933 | Example: Downlink Payload: **13 0A **~/~/ AT+CSQTIME=10 | ||
934 | |||
935 | |||
936 | == 3.13 Factory data reset == | ||
937 | |||
938 | |||
939 | Two different restore factory Settings configurations. | ||
940 | |||
941 | (% style="color:blue" %)**AT command:** | ||
942 | |||
943 | * (% style="color:#037691; font-weight:bold" %)**AT+FDR**(%%)** **~/~/ Reset Parameters to Factory Default. | ||
944 | * (% style="color:#037691; font-weight:bold" %)**AT+FDR1**(%%)** **~/~/ Reset parameters to factory default values **except for passwords**. | ||
945 | |||
946 | == 3.14 Set CoAP option == | ||
947 | |||
948 | |||
949 | This command sets the connection parameters of the COAP. | ||
950 | |||
951 | (% style="color:blue" %)**AT command: **(% style="color:#037691; font-weight:bold" %)**AT+URI1~~AT+URI4** | ||
952 | |||
953 | * AT+URI1 ~/~/ CoAP option name, CoAP option length, "CoAP option value" | ||
954 | * AT+URI2 ~/~/ CoAP option name, CoAP option length, "CoAP option value" | ||
955 | * AT+URI3 ~/~/ CoAP option name, CoAP option length, "CoAP option value" | ||
956 | * AT+URI4 ~/~/ CoAP option name, CoAP option length, "CoAP option value" | ||
957 | |||
958 | **Example:** | ||
959 | |||
960 | * AT+URI1=11,38,"i/faaa241f-af4a-b780-4468-c671bb574858" | ||
961 | |||
962 | == 3.15 Uplink log query == | ||
963 | |||
964 | |||
965 | * (% style="color:blue" %)**AT command:**(%%)** (% style="color:#037691" %)AT+GETLOG(%%)** | ||
966 | |||
967 | This command can be used to query upstream logs of data packets. | ||
968 | |||
969 | [[image:image-20250120102551-1.png]] | ||
970 | |||
971 | |||
972 | == 3.16 Setting the sensor address == | ||
973 | |||
974 | |||
975 | Function:Change the sensor address to 0x01, 0x02, 0x03, 0x04 | ||
976 | |||
977 | (% style="color:red" %)**(Note:When setting the address of the sensor, you need to connect the device individually for each one, and when modifying the address, you can't connect more than one sensor at the same time, otherwise it will be impossible to modify it, and when modifying it, you need to connect the yellow wire to VBAT_OUT, and after modifying it, you need to disconnect it.)** | ||
978 | |||
979 | (% style="color:blue" %)**AT Command: AT+MADD** | ||
980 | |||
981 | (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %) | ||
982 | |=(% style="width: 155px;background-color:#4F81BD;color:white" %)**Command Example**|=(% style="width: 197px;background-color:#4F81BD;color:white" %)**Function**|=(% style="width: 158px;background-color:#4F81BD;color:white" %)**Response** | ||
983 | |(% style="width:154px" %)AT+MADD=1|(% style="width:196px" %)Set sensor address to 01|(% style="width:157px" %)((( | ||
984 | Successfully modified sensor address to 0x01 | ||
985 | |||
986 | |||
987 | OK | ||
988 | ))) | ||
989 | |(% style="width:154px" %)AT+MADD=2|(% style="width:196px" %)Set sensor address to 02|(% style="width:157px" %)((( | ||
990 | Successfully modified sensor address to 0x02 | ||
991 | |||
992 | |||
993 | OK | ||
994 | ))) | ||
995 | |||
996 | (% style="color:blue" %)**Downlink Command:** | ||
997 | |||
998 | No downlink command for this feature. | ||
999 | |||
1000 | |||
1001 | == 3.17 Domain name resolution settings == | ||
1002 | |||
1003 | |||
1004 | Feature: Set dynamic domain name resolution IP. | ||
1005 | |||
1006 | (% style="color:blue" %)**AT command: AT+BKDNS** | ||
1007 | |||
1008 | (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %) | ||
1009 | |=(% style="width: 138px; background-color: rgb(79, 129, 189); color: white;" %)**Command Example**|=(% style="width: 143px; background-color: rgb(79, 129, 189); color: white;" %)**Function/Parameters**|=(% style="width: 229px; background-color: rgb(79, 129, 189); color: white;" %)**Response/Explanation** | ||
1010 | |(% style="width:134px" %)((( | ||
1011 | AT+BKDNS=? | ||
1012 | )))|(% style="width:143px" %)Get current Settings|(% style="width:606px" %)((( | ||
1013 | 0,0,NULL (default) | ||
1014 | OK | ||
1015 | ))) | ||
1016 | |(% colspan="1" rowspan="3" style="width:134px" %)((( | ||
1017 | |||
1018 | |||
1019 | |||
1020 | |||
1021 | |||
1022 | |||
1023 | |||
1024 | |||
1025 | |||
1026 | |||
1027 | |||
1028 | AT+BKDNS=a,b,c | ||
1029 | )))|(% style="width:143px" %)((( | ||
1030 | **a**: Enable/Disable dynamic domain name resolution. | ||
1031 | )))|(% style="width:606px" %)**1**: Disable dynamic domain name update. The ip address will be saved after the domain name is resolved, if the next domain name resolution fails, the last saved ip address will be used. | ||
1032 | **2**: Enable dynamic domain name update. The ip address will be saved after domain name resolution, if the next domain name resolution fails, the last saved ip address will be used, and the domain name resolution will be updated regularly according to the time set by the customer. | ||
1033 | |(% style="width:143px" %)**b**: Set the time to update the domain name resolution at regular intervals.|(% style="width:606px" %)((( | ||
1034 | Unit: hour | ||
1035 | ))) | ||
1036 | |(% style="width:143px" %)((( | ||
1037 | **c**: Set the IP address manually. | ||
1038 | )))|(% style="width:606px" %)((( | ||
1039 | The format is the same as AT+SERVADDR. | ||
1040 | If domain name resolution fails, this ip address will be used directly, if domain name resolution succeeds, parameter c will be updated to the successfully resolved IP address. | ||
1041 | ))) | ||
1042 | |||
1043 | **Example:** | ||
1044 | |||
1045 | * AT+BKDNS=1,0 ~/~/ Dynamic domain name resolution is disabled. | ||
1046 | * AT+BKDNS=2,1 ~/~/ The dynamic domain name resolution function is enabled and the automatic update time is set to 1 hour. | ||
1047 | * AT+BKDNS=2,4,3.69.98.183,1883 ~/~/ The dynamic domain name resolution function is enabled and the automatic update time is set to 4 hour, and manually set the ip address, if the domain name failed to resolve, it will directly use this ip to communicate. When the next domain name resolution is successful, it will be updated to the ip address of the successful resolution. | ||
1048 | |||
1049 | (% style="color:blue" %)**Downlink Command: ** | ||
1050 | |||
1051 | No downlink commands for feature | ||
1052 | |||
1053 | |||
1054 | == 3.18 Set the downlink debugging mode == | ||
1055 | |||
1056 | |||
1057 | Feature: Set the conversion between the standard version and 1T version downlinks. | ||
1058 | |||
1059 | (% style="color:blue" %)**AT command: AT+DOWNTE** | ||
1060 | |||
1061 | (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %) | ||
1062 | |=(% style="width: 134px; background-color: rgb(79, 129, 189); color: white;" %)**Command Example**|=(% style="width: 143px; background-color: rgb(79, 129, 189); color: white;" %)**Function/Parameters**|=(% style="width: 233px; background-color: rgb(79, 129, 189); color: white;" %)**Response/Explanation** | ||
1063 | |(% style="width:134px" %)AT+DOWNTE=?|(% style="width:143px" %)Get current Settings|(% style="width:229px" %)((( | ||
1064 | 0,0 (default) | ||
1065 | |||
1066 | OK | ||
1067 | ))) | ||
1068 | |(% colspan="1" rowspan="2" style="width:134px" %)((( | ||
1069 | |||
1070 | |||
1071 | |||
1072 | |||
1073 | AT+DOWNTE=a,b | ||
1074 | )))|(% style="width:143px" %)**a**: Set the conversion between the downlink of the standard version and 1T version|(% style="width:229px" %)((( | ||
1075 | **0**: Set the downlink of the standard version. | ||
1076 | **1**: Set the downlink of the 1T version(ThingsEye platform) | ||
1077 | ))) | ||
1078 | |(% style="width:143px" %)**b**: Enable/Disable downlink debugging|(% style="width:229px" %)((( | ||
1079 | **0**: Disable downlink debugging mode. | ||
1080 | **1**: Enable downlink debugging mode, users can see the original downlink reception. | ||
1081 | ))) | ||
1082 | |||
1083 | **Example:** | ||
1084 | |||
1085 | * AT+DOWNTE=0,1 ~/~/ Set to standard version downlink, and enable downlink debugging. | ||
1086 | * AT+DOWNTE=1,1 ~/~/ Set to 1T version downlink, and enable downlink debugging. | ||
1087 | |||
1088 | (% style="color:blue" %)**Downlink Command: ** | ||
1089 | |||
1090 | No downlink commands for feature | ||
1091 | |||
1092 | |||
1093 | = 4. Battery & Power Consumption = | ||
1094 | |||
1095 | |||
1096 | SE0X-NB use ER26500 + SPC1520 battery pack and SE0X-NS use 3000mAh Recharable Battery with Solar Panel. See below link for detail information about the battery info and how to replace. | ||
1097 | |||
1098 | [[**Battery Info & Power Consumption Analyze**>>http://wiki.dragino.com/xwiki/bin/view/Main/How%20to%20calculate%20the%20battery%20life%20of%20Dragino%20sensors%3F/]] . | ||
1099 | |||
1100 | |||
1101 | = 5. Firmware update = | ||
1102 | |||
1103 | User can change device firmware to: | ||
1104 | |||
1105 | * Update with new features. | ||
1106 | |||
1107 | * Fix bugs. | ||
1108 | |||
1109 | Firmware and changelog can be downloaded from : **[[Firmware download link>>https://www.dropbox.com/scl/fo/4risle123sihe6np9hxuw/AOwOukcJbDjvQUJAFmlWfxY?rlkey=kjyk8dp4cq5r7hs7c0omedegf&st=p7v3ffmf&dl=0]]** | ||
1110 | |||
1111 | Methods to Update Firmware: | ||
1112 | |||
1113 | * (Recommended way) OTA firmware update via BLE: [[**Instruction**>>url:http://wiki.dragino.com/xwiki/bin/view/Main/BLE_Firmware_Update_NB_Sensors_BC660K-GL/]]. | ||
1114 | |||
1115 | * Update through UART TTL interface : **[[Instruction>>url:http://wiki.dragino.com/xwiki/bin/view/Main/UART_Access_for_NB_ST_BC660K-GL/#H4.2UpdateFirmware28Assumethedevicealreadyhaveabootloader29]]**. | ||
1116 | |||
1117 | ((( | ||
1118 | |||
1119 | ))) | ||
1120 | |||
1121 | = 6. FAQ = | ||
1122 | |||
1123 | == 6.1 AT Commands input doesn't work == | ||
1124 | |||
1125 | |||
1126 | In the case if user can see the console output but can't type input to the device. Please check if you already include the (% style="color:green" %)**ENTER**(%%) while sending out the command. Some serial tool doesn't send (% style="color:green" %)**ENTER**(%%) while press the send key, user need to add ENTER in their string. | ||
1127 | |||
1128 | |||
1129 | == 6.2 Can I calibrate SE0X-NB/NS to different soil types? == | ||
1130 | |||
1131 | |||
1132 | SE0X-NB/NS can be used to measure EC/Moisture in different type of soil event concrete. | ||
1133 | |||
1134 | ((( | ||
1135 | SE0X-NB/NS is calibrated for saline-alkali soil and loamy soil. If users want to use it for other soil, they can calibrate the value in the IoT platform base on the value measured by saline-alkali soil and loamy soil. The formula can be found at [[this link>>https://www.dragino.com/downloads/downloads/LoRa_End_Node/LSE01/Calibrate_to_other_Soil_20230522.pdf]]. | ||
1136 | ))) | ||
1137 | |||
1138 | |||
1139 | = 7. Order Info = | ||
1140 | |||
1141 | |||
1142 | **Part Number: (% style="color:blue" %)SE0X-NB/NS-XX (%%)** | ||
1143 | |||
1144 | (% style="color:red" %)**XX**(%%): | ||
1145 | |||
1146 | * (% style="color:#037691" %)**GE**(%%): General version ( Exclude SIM card) | ||
1147 | |||
1148 | * (% style="color:#037691" %)**1T**(%%): with 1NCE * 10 years 500MB SIM card and Pre-configure to ThingsEye server | ||
1149 | |||
1150 | = 8. Packing Info = | ||
1151 | |||
1152 | |||
1153 | (% style="color:#037691" %)**Package Includes**: | ||
1154 | |||
1155 | * SE0X-NB/NS NB-IoT Soil Moisture & EC Sensor Transmitter | ||
1156 | |||
1157 | * External antenna x 1 | ||
1158 | |||
1159 | (% style="color:#037691" %)**Dimension and weight**: | ||
1160 | |||
1161 | * Device Size: cm | ||
1162 | |||
1163 | * Device Weight: g | ||
1164 | |||
1165 | * Package Size / pcs : cm | ||
1166 | |||
1167 | * Weight / pcs : g | ||
1168 | |||
1169 | = 9. Support = | ||
1170 | |||
1171 | |||
1172 | * 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. | ||
1173 | |||
1174 | * 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]]. |