Changes for page NSPH01-NB-IoT Soil pH Sensor User Manual
Last modified by Bei Jinggeng on 2024/03/30 17:53
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -48,8 +48,6 @@ 48 48 * Micro SIM card slot 49 49 * 8500mAh Battery for long term use 50 50 51 - 52 - 53 53 == 1.3 Specification == 54 54 55 55 ... ... @@ -58,7 +58,6 @@ 58 58 * Supply Voltage: 2.1v ~~ 3.6v 59 59 * Operating Temperature: -40 ~~ 85°C 60 60 61 - 62 62 (% style="color:#037691" %)**NB-IoT Spec:** 63 63 64 64 * - B1 @H-FDD: 2100MHz ... ... @@ -68,8 +68,6 @@ 68 68 * - B20 @H-FDD: 800MHz 69 69 * - B28 @H-FDD: 700MHz 70 70 71 - 72 - 73 73 == 1.4 Probe Specification == 74 74 75 75 ... ... @@ -82,7 +82,6 @@ 82 82 * IP68 Protection 83 83 * Length: 3.5 meters 84 84 85 - 86 86 (% style="color:#037691" %)**Soil Temperature:** 87 87 88 88 * Range -40℃~85℃ ... ... @@ -91,15 +91,10 @@ 91 91 * IP68 Protection 92 92 * Length: 3.5 meters 93 93 94 - 95 - 96 96 == 1.5 Applications == 97 97 98 98 * Smart Agriculture 99 99 100 - 101 - 102 - 103 103 == 1.6 Pin mapping and power on == 104 104 105 105 ... ... @@ -152,107 +152,132 @@ 152 152 153 153 === 2.2.3 Connect USB – TTL to NSPH01 to configure it === 154 154 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. 156 156 157 -**Connect ion:**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. 158 158 159 - USB TTL GND <~-~-~-~-> GND 160 160 161 - USBTTL TXD <~-~-~-~-> UART_RXD148 +(% style="color:blue" %)**Connection:** 162 162 163 - USB TTL RXD <~-~-~-~->UART_TXD150 +**~ (% style="background-color:yellow" %) USB TTL GND <~-~-~-~-> GND(%%)** 164 164 152 +**~ (% style="background-color:yellow" %) USB TTL TXD <~-~-~-~-> UART_RXD(%%)** 153 + 154 +**~ (% style="background-color:yellow" %) USB TTL RXD <~-~-~-~-> UART_TXD(%%)** 155 + 156 + 165 165 In the PC, use below serial tool settings: 166 166 167 -* Baud: **9600** 168 -* Data bits:** 8** 169 -* Stop bits: **1** 170 -* Parity: **None** 171 -* Flow Control: **None** 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 +* 172 172 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. 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. 174 174 175 -(% style="text-align:center" %) 176 -[[image:image-20220907153529-6.png]] 177 177 178 - **Note: the valid AT Commands can befound at:**[[**https:~~/~~/www.dropbox.com/sh/351dwor6joz8nwh/AADn1BQaAAxLF_QMyU8NkW47a?dl=0**>>url:https://www.dropbox.com/sh/351dwor6joz8nwh/AADn1BQaAAxLF_QMyU8NkW47a?dl=0]]169 +[[image:image-20220912144017-1.png]] 179 179 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 + 180 180 === 2.2.4 Use CoAP protocol to uplink data === 181 181 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/]] 183 183 184 -** Usebelowcommands:**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/]] 185 185 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 189 189 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 + 190 190 For parameter description, please refer to AT command set 191 191 192 - (% style="text-align:center" %)190 + 193 193 [[image:image-20220907153551-7.png||height="502" width="740"]] 194 194 195 -After configure the server address and **reset the device** (via AT+ATZ ), NSPH01 will start to uplink sensor values to CoAP server. 196 196 197 -(% style="text-align:center" %) 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 + 198 198 [[image:image-20220907153612-8.png||height="529" width="729"]] 199 199 200 200 200 + 201 201 === 2.2.5 Use UDP protocol to uplink data(Default protocol) === 202 202 203 + 203 203 This feature is supported since firmware version v1.0.1 204 204 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 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 208 208 209 -(% style="text-align:center" %) 210 + 211 + 210 210 [[image:image-20220907153643-9.png||height="401" width="734"]] 211 211 212 - (% style="text-align:center" %)214 + 213 213 [[image:image-20220907153703-10.png||height="309" width="738"]] 214 214 215 215 218 + 216 216 === 2.2.6 Use MQTT protocol to uplink data === 217 217 221 + 218 218 This feature is supported since firmware version v110 219 219 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 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 227 227 228 -(% style="text-align:center" %) 232 + 233 + 229 229 [[image:image-20220907153739-11.png||height="491" width="764"]] 230 230 231 - (% style="text-align:center" %)236 + 232 232 [[image:image-20220907153751-12.png||height="555" width="769"]] 233 233 239 + 234 234 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. 235 235 242 + 243 + 244 + 236 236 === 2.2.7 Use TCP protocol to uplink data === 237 237 247 + 238 238 This feature is supported since firmware version v110 239 239 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 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 242 242 243 -(% style="text-align:center" %) 253 + 254 + 244 244 [[image:image-20220907153818-13.png||height="486" width="668"]] 245 245 246 - (% style="text-align:center" %)257 + 247 247 [[image:image-20220907153827-14.png||height="236" width="684"]] 248 248 260 + 261 + 262 + 249 249 === 2.2.8 Change Update Interval === 250 250 251 251 Users can use the below command to change the **uplink interval**. 252 252 253 -* **AT+TDC=7200 ** ~/~/ Set Update Interval to 7200s (2 hour) 267 +* (% style="color:blue" %)**AT+TDC=7200 ** (%%) ~/~/ Set Update Interval to 7200s (2 hour) 254 254 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).** 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).** 256 256 257 257 258 258 == 2.3 Uplink Payload == ... ... @@ -292,7 +292,7 @@ 292 292 293 293 By default, the Device ID equal to the last 15 bits of IMEI. 294 294 295 -User can use **AT+DEUI** to set Device ID 309 +User can use (% style="color:blue" %)**AT+DEUI** (%%)to set Device ID 296 296 297 297 **Example:** 298 298