Changes for page AI Image Sensor Calibration
Last modified by Karry Zhuang on 2024/12/13 11:31
Change comment:
Uploaded new attachment "image-20240429160257-2.png", version {1}
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Attachments (0 modified, 3 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -307,5 +307,92 @@ 307 307 308 308 == (% title="Click and drag to resize" %)3.1 Get Digital Reading After Calibration(%%) == 309 309 310 +This section shows an example for how to join the [[TheThingsNetwork>>url:https://www.thethingsnetwork.org/]] LoRaWAN IoT server. Usages with other LoRaWAN IoT servers are of similar procedure. 310 310 312 + 313 +Assume the DLOS8 is already set to connect to [[TTN V3 network >>url:https://eu1.cloud.thethings.network/]]. We need to add the AIS Sensor device in TTN V3 portal. 314 + 315 +**Step 1**: Create a device in TTN V3 with the OTAA keys from AIS Sensor. 316 + 317 +Each AIS Sensor is shipped with a sticker with the default DEV EUI as below: 318 + 319 +[[image:image-20230426083617-1.png||height="294" width="633"]] 320 + 321 +Enter these keys in the LoRaWAN Server portal. Below is TTN V3 screen shot: 322 + 323 +Add APP EUI in the application. 324 + 325 +choose to create the device manually. 326 + 327 +Add APP KEY and DEV EUI 328 + 329 +[[image:image-20220522232916-3.png||_mstalt="430495" _mstvisible="3"]] 330 + 331 +[[image:1655776122894-257.png]] 332 + 333 +**Default mode OTAA** 334 + 335 + 336 + 337 + 338 +[[image:1655776241177-240.png]] 339 + 340 +**Step 2**: Use ACT button to activate LHT52 and it will auto join to the TTN V3 network. After join success, it will start to upload sensor data to TTN V3 and user can see in the panel. 341 + 342 +=== 3.1.1 Uplink Payload (Fport~=5) === 343 + 344 +The uplink payload includes totally 14 bytes. Uplink packets use FPORT=5 and (% style="color:#4472c4" %)**every 20 minutes**(%%) send one uplink by default. 345 + 346 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:370px" %) 347 +|=(% style="width: 60px;background-color:#4F81BD;color:white" %)**Size(bytes)(% style="display:none" %) (%%)**|=(% style="width: 60px;background-color:#4F81BD;color:white" %)2|=(% style="width: 80px;background-color:#4F81BD;color:white" %)4|=(% style="width: 80px;background-color:#4F81BD;color:white" %)4|=(% style="width: 60px;background-color:#4F81BD;color:white" %)4 348 +|(% style="width:99px" %)Value|(% style="width:62px" %)BAT|sysTimeCurrent|Integer|Decimal 349 + 350 +[[image:1714374026505-898.png||height="200" width="736"]] 351 + 352 +Payload Example(FPort=5):(% style="background-color:yellow" %)**0D 32 66 29 AF E0 00 00 00 02 00 05 E3 B0** 353 + 354 +=== 3.1.2 BAT- Battery information === 355 + 356 +These two bytes of BAT include the battery state and the actual voltage. 357 + 358 +**Ex**:0x0B32 = 3378mV 359 + 360 +=== 3.1.3 sysTimeCurrent === 361 + 362 +These four bytes contain the year, month, day, hour, minute, and second of the time. 363 + 364 +AI Sensor use Unix TimeStamp format based on 365 + 366 +[[image:1714374373681-339.png||height="81" width="527"]] 367 + 368 +Users can get this time from the link: [[https:~~/~~/www.epochconverter.com/>>url:https://www.epochconverter.com/]] : 369 + 370 +Below is the converter example 371 + 372 +**Ex**:6629AFE0=2024-04-25 01:20:32 373 + 374 +[[image:1714374389825-148.png||height="313" width="428"]][[image:1714374398047-940.png||height="214" width="508"]] 375 + 376 +So, we can use AT+TIMESTAMP=1714012723 or downlink 6629C233 to set the current time 2024 – April ~-~- 25 Thursday 02:38:41 377 + 378 +=== 3.1.4 Integer === 379 + 380 +These four bytes display the integers in the digital wheel face 381 + 382 +[[image:file:///C:/Users/zzccc/AppData/Local/Temp/msohtmlclip1/01/clip_image002.jpg]][[image:1714374445395-196.png]] 383 + 384 +Read table integer:0x00000002=2 385 + 386 +=== 3.1.5 Decimal === 387 + 388 +These four bytes display decimals on the digital wheel. 389 + 390 +[[image:1714374493101-914.png]][[image:file:///C:/Users/zzccc/AppData/Local/Temp/msohtmlclip1/01/clip_image002.jpg]] 391 + 392 +Read table decimals:0x005E3B0/1000000= 0.385968 393 + 394 + 311 311 == (% title="Click and drag to resize" %)3.2 Get Image and show in PC(%%) == 396 + 397 + 398 +
- 1714374445395-196.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.karry - Size
-
... ... @@ -1,0 +1,1 @@ 1 +15.3 KB - Content
- 1714374493101-914.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.karry - Size
-
... ... @@ -1,0 +1,1 @@ 1 +15.6 KB - Content
- image-20240429160257-2.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.karry - Size
-
... ... @@ -1,0 +1,1 @@ 1 +201.8 KB - Content