Last modified by Bei Jinggeng on 2024/03/30 17:53

From version 51.4
edited by Xiaoling
on 2022/09/12 15:04
Change comment: There is no comment for this version
To version 51.1
edited by Xiaoling
on 2022/09/12 14:40
Change comment: Uploaded new attachment "image-20220912144017-1.png", version {1}

Summary

Details

Page properties
Content
... ... @@ -48,6 +48,8 @@
48 48  * Micro SIM card slot
49 49  * 8500mAh Battery for long term use
50 50  
51 +
52 +
51 51  == 1.3  Specification ==
52 52  
53 53  
... ... @@ -56,6 +56,7 @@
56 56  * Supply Voltage: 2.1v ~~ 3.6v
57 57  * Operating Temperature: -40 ~~ 85°C
58 58  
61 +
59 59  (% style="color:#037691" %)**NB-IoT Spec:**
60 60  
61 61  * - B1 @H-FDD: 2100MHz
... ... @@ -65,6 +65,8 @@
65 65  * - B20 @H-FDD: 800MHz
66 66  * - B28 @H-FDD: 700MHz
67 67  
71 +
72 +
68 68  == 1.4  Probe Specification ==
69 69  
70 70  
... ... @@ -77,6 +77,7 @@
77 77  * IP68 Protection
78 78  * Length: 3.5 meters
79 79  
85 +
80 80  (% style="color:#037691" %)**Soil Temperature:**
81 81  
82 82  * Range -40℃~85℃
... ... @@ -85,10 +85,15 @@
85 85  * IP68 Protection
86 86  * Length: 3.5 meters
87 87  
94 +
95 +
88 88  == 1.5 ​Applications ==
89 89  
90 90  * Smart Agriculture
91 91  
100 +
101 +
102 +
92 92  == 1.6 Pin mapping and power on ==
93 93  
94 94  
... ... @@ -141,132 +141,107 @@
141 141  
142 142  === 2.2.3 Connect USB – TTL to NSPH01 to configure it ===
143 143  
155 +User need to configure NSPH01 via serial port to set the **Server Address** / **Uplink Topic** to define where and how-to uplink packets. NSPH01 support AT Commands, user can use a USB to TTL adapter to connect to NSPH01 and use AT Commands to configure it, as below.
144 144  
145 -User need to configure NSPH01 via serial port to set the (% style="color:blue" %)**Server Address** / **Uplink Topic**(%%) to define where and how-to uplink packets. NSPH01 support AT Commands, user can use a USB to TTL adapter to connect to NSPH01 and use AT Commands to configure it, as below.
157 +**Connection:**
146 146  
159 + USB TTL GND <~-~-~-~-> GND
147 147  
148 -(% style="color:blue" %)**Connection:**
161 + USB TTL TXD <~-~-~-~-> UART_RXD
149 149  
150 -**~ (% style="background-color:yellow" %) USB TTL GND <~-~-~-~->  GND(%%)**
163 + USB TTL RXD <~-~-~-~-> UART_TXD
151 151  
152 -**~ (% style="background-color:yellow" %) USB TTL TXD  <~-~-~-~->  UART_RXD(%%)**
153 -
154 -**~ (% style="background-color:yellow" %) USB TTL RXD  <~-~-~-~->  UART_TXD(%%)**
155 -
156 -
157 157  In the PC, use below serial tool settings:
158 158  
159 -* Baud:  (% style="color:green" %)**9600**
160 -* Data bits:**  (% style="color:green" %)8(%%)**
161 -* Stop bits:  (% style="color:green" %)**1**
162 -* Parity:  (% style="color:green" %)**None**
163 -* Flow Control: (% style="color:green" %)**None**
164 -*
167 +* Baud:  **9600**
168 +* Data bits:** 8**
169 +* Stop bits: **1**
170 +* Parity:  **None**
171 +* Flow Control: **None**
165 165  
166 -Make sure the switch is in FLASH position, then power on device by connecting the jumper on NSPH01. NSPH01 will output system info once power on as below, we can enter the (% style="color:green" %)**password: 12345678**(%%) to access AT Command input.
173 +Make sure the switch is in FLASH position, then power on device by connecting the jumper on NSPH01. NSPH01 will output system info once power on as below, we can enter the **password: 12345678** to access AT Command input.
167 167  
175 +(% style="text-align:center" %)
176 +[[image:image-20220907153529-6.png]]
168 168  
169 -[[image:image-20220912144017-1.png]]
178 +**Note: the valid AT Commands can be found at:  **[[**https:~~/~~/www.dropbox.com/sh/351dwor6joz8nwh/AADn1BQaAAxLF_QMyU8NkW47a?dl=0**>>url:https://www.dropbox.com/sh/351dwor6joz8nwh/AADn1BQaAAxLF_QMyU8NkW47a?dl=0]]
170 170  
171 -
172 -(% style="color:red" %)**Note: the valid AT Commands can be found at:**(%%)**  **[[**https:~~/~~/www.dropbox.com/sh/351dwor6joz8nwh/AADn1BQaAAxLF_QMyU8NkW47a?dl=0**>>url:https://www.dropbox.com/sh/351dwor6joz8nwh/AADn1BQaAAxLF_QMyU8NkW47a?dl=0]]
173 -
174 -
175 -
176 176  === 2.2.4 Use CoAP protocol to uplink data ===
177 177  
182 +**Note: if you don't have CoAP server, you can refer this link to set up one: **[[**http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/Set%20up%20CoAP%20Server/**>>url:http://wiki.dragino.com/xwiki/bin/view/Main/Set%20up%20CoAP%20Server/]]
178 178  
179 -(% style="color:red" %)**Note: if you don't have CoAP server, you can refer this link to set up one:**(%%)** **[[**http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/Set%20up%20CoAP%20Server/**>>url:http://wiki.dragino.com/xwiki/bin/view/Main/Set%20up%20CoAP%20Server/]]
184 +**Use below commands:**
180 180  
186 +* **AT+PRO=1**   ~/~/ Set to use CoAP protocol to uplink
187 +* **AT+SERVADDR=120.24.4.116,5683   ** ~/~/ to set CoAP server address and port
188 +* **AT+URI=5,11,"mqtt",11,"coap",12,"0",15,"c=text1",23,"0" ** ~/~/Set COAP resource path
181 181  
182 -(% style="color:blue" %)**Use below commands:**
183 -
184 -* (% style="color:#037691" %)**AT+PRO=1**                         (%%) ~/~/  Set to use CoAP protocol to uplink
185 -* (% style="color:#037691" %)**AT+SERVADDR=120.24.4.116,5683   ** (%%) ~/~/  to set CoAP server address and port
186 -* (% style="color:#037691" %)**AT+URI=5,11,"mqtt",11,"coap",12,"0",15,"c=text1",23,"0" ** (%%) ~/~/  Set COAP resource path
187 -
188 188  For parameter description, please refer to AT command set
189 189  
190 -
192 +(% style="text-align:center" %)
191 191  [[image:image-20220907153551-7.png||height="502" width="740"]]
192 192  
195 +After configure the server address and **reset the device** (via AT+ATZ ), NSPH01 will start to uplink sensor values to CoAP server.
193 193  
194 -After configure the server address and (% style="color:green" %)**reset the device (via AT+ATZ )**(%%), NSPH01 will start to uplink sensor values to CoAP server.
195 -
196 -
197 +(% style="text-align:center" %)
197 197  [[image:image-20220907153612-8.png||height="529" width="729"]]
198 198  
199 199  
200 -
201 201  === 2.2.5 Use UDP protocol to uplink data(Default protocol) ===
202 202  
203 -
204 204  This feature is supported since firmware version v1.0.1
205 205  
206 -* (% style="color:blue" %)**AT+PRO=2   ** (%%) ~/~/  Set to use UDP protocol to uplink
207 -* (% style="color:blue" %)**AT+SERVADDR=120.24.4.116,5601   ** (%%) ~/~/  to set UDP server address and port
208 -* (% style="color:blue" %)**AT+CFM=1       ** (%%) ~/~/  If the server does not respond, this command is unnecessar
205 +* **AT+PRO=2   ** ~/~/ Set to use UDP protocol to uplink
206 +* **AT+SERVADDR=120.24.4.116,5601   ** ~/~/ to set UDP server address and port
207 +* **AT+CFM=1       ** ~/~/If the server does not respond, this command is unnecessar
209 209  
210 -
211 -
209 +(% style="text-align:center" %)
212 212  [[image:image-20220907153643-9.png||height="401" width="734"]]
213 213  
214 -
212 +(% style="text-align:center" %)
215 215  [[image:image-20220907153703-10.png||height="309" width="738"]]
216 216  
217 217  
218 -
219 219  === 2.2.6 Use MQTT protocol to uplink data ===
220 220  
221 -
222 222  This feature is supported since firmware version v110
223 223  
224 -* (% style="color:blue" %)**AT+PRO=3   ** (%%) ~/~/ Set to use MQTT protocol to uplink
225 -* (% style="color:blue" %)**AT+SERVADDR=120.24.4.116,1883   ** (%%) ~/~/ Set MQTT server address and port
226 -* (% style="color:blue" %)**AT+CLIENT=CLIENT       ** (%%) ~/~/ Set up the CLIENT of MQTT
227 -* (% style="color:blue" %)**AT+UNAME=UNAME                               **(%%)~/~/ Set the username of MQTT
228 -* (% style="color:blue" %)**AT+PWD=PWD                                        **(%%)~/~/ Set the password of MQTT
229 -* (% style="color:blue" %)**AT+PUBTOPIC=NSE01_PUB                    **(%%)~/~/ Set the sending topic of MQTT
230 -* (% style="color:blue" %)**AT+SUBTOPIC=NSE01_SUB          ** (%%) ~/~/ Set the subscription topic of MQTT
220 +* **AT+PRO=3   ** ~/~/Set to use MQTT protocol to uplink
221 +* **AT+SERVADDR=120.24.4.116,1883   ** ~/~/Set MQTT server address and port
222 +* **AT+CLIENT=CLIENT       ** ~/~/Set up the CLIENT of MQTT
223 +* **AT+UNAME=UNAME                               **~/~/Set the username of MQTT
224 +* **AT+PWD=PWD                                        **~/~/Set the password of MQTT
225 +* **AT+PUBTOPIC=NSE01_PUB                    **~/~/Set the sending topic of MQTT
226 +* **AT+SUBTOPIC=NSE01_SUB          ** ~/~/Set the subscription topic of MQTT
231 231  
232 -
233 -
228 +(% style="text-align:center" %)
234 234  [[image:image-20220907153739-11.png||height="491" width="764"]]
235 235  
236 -
231 +(% style="text-align:center" %)
237 237  [[image:image-20220907153751-12.png||height="555" width="769"]]
238 238  
239 -
240 240  MQTT protocol has a much higher power consumption compare vs UDP / CoAP protocol. Please check the power analyze document and adjust the uplink period to a suitable interval.
241 241  
242 -
243 -
244 -
245 245  === 2.2.7 Use TCP protocol to uplink data ===
246 246  
247 -
248 248  This feature is supported since firmware version v110
249 249  
250 -* (% style="color:blue" %)**AT+PRO=4   ** (%%) ~/~/ Set to use TCP protocol to uplink
251 -* (% style="color:blue" %)**AT+SERVADDR=120.24.4.116,5600   ** (%%) ~/~/ to set TCP server address and port
240 +* **AT+PRO=4   ** ~/~/ Set to use TCP protocol to uplink
241 +* **AT+SERVADDR=120.24.4.116,5600   ** ~/~/ to set TCP server address and port
252 252  
253 -
254 -
243 +(% style="text-align:center" %)
255 255  [[image:image-20220907153818-13.png||height="486" width="668"]]
256 256  
257 -
246 +(% style="text-align:center" %)
258 258  [[image:image-20220907153827-14.png||height="236" width="684"]]
259 259  
260 -
261 -
262 -
263 263  === 2.2.8 Change Update Interval ===
264 264  
265 265  Users can use the below command to change the **uplink interval**.
266 266  
267 -* (% style="color:blue" %)**AT+TDC=7200      ** (%%) ~/~/ Set Update Interval to 7200s (2 hour)
253 +* **AT+TDC=7200      ** ~/~/ Set Update Interval to 7200s (2 hour)
268 268  
269 -(% style="color:red" %)**NOTE: By default, the device will send an uplink message every 2 hours. Each Uplink Include 8 set of records in this 2 hour (15 minute interval / record).**
255 +**NOTE: By default, the device will send an uplink message every 2 hours. Each Uplink Include 8 set of records in this 2 hour (15 minute interval / record).**
270 270  
271 271  
272 272  == 2.3  Uplink Payload ==
... ... @@ -306,7 +306,7 @@
306 306  
307 307  By default, the Device ID equal to the last 15 bits of IMEI.
308 308  
309 -User can use (% style="color:blue" %)**AT+DEUI** (%%)to set Device ID
295 +User can use **AT+DEUI** to set Device ID
310 310  
311 311  **Example:**
312 312