Changes for page AI Image Sensor Calibration
Last modified by Karry Zhuang on 2025/07/03 11:59
From version 130.4
edited by Karry Zhuang
on 2024/04/30 16:44
on 2024/04/30 16:44
Change comment:
There is no comment for this version
To version 119.1
edited by Karry Zhuang
on 2024/04/30 15:53
on 2024/04/30 15:53
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Attachments (0 modified, 0 added, 11 removed)
Details
- Page properties
-
- Content
-
... ... @@ -379,7 +379,7 @@ 379 379 380 380 These four bytes display the integers in the digital wheel face 381 381 382 -[[image:1714374445395-196.png]] 382 +[[image:file:///C:/Users/zzccc/AppData/Local/Temp/msohtmlclip1/01/clip_image002.jpg]][[image:1714374445395-196.png]] 383 383 384 384 Read table integer:0x00000002=2 385 385 ... ... @@ -387,91 +387,9 @@ 387 387 388 388 These four bytes display decimals on the digital wheel. 389 389 390 -[[image:1714374493101-914.png]] 390 +[[image:1714374493101-914.png]][[image:file:///C:/Users/zzccc/AppData/Local/Temp/msohtmlclip1/01/clip_image002.jpg]] 391 391 392 392 Read table decimals:0x005E3B0/1000000= 0.385968 393 393 394 394 395 395 == (% title="Click and drag to resize" %)3.2 Get Image and show in PC(%%) == 396 - 397 -To get the AIS current image on the PC, you can issue commands through TTN or connect AIS to your PC with TTL to send commands through the serial port to obtain relevant data packets. 398 - 399 -=== 3.2.1 The image packets are obtained by TTN === 400 - 401 -Make sure that node ACK is on: AT+PNACKMD=1 or 34 01 402 - 403 -Then send the graph instruction 0B 01. 404 - 405 -The next time the AIS Sensor device runs at the set time, it will start collecting image data. 406 - 407 -[[image:1714465192126-772.png||height="478" width="678"]] 408 - 409 -The uplink payload includes totally 208 bytes. Uplink packets use FPORT=3 410 - 411 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:370px" %) 412 -|=(% style="width: 60px;background-color:#4F81BD;color:white" %)**Size(bytes)(% style="display:none" %) (%%)**|=(% style="width: 60px;background-color:#4F81BD;color:white" %)4|=(% style="width: 80px;background-color:#4F81BD;color:white" %)2|=(% style="width: 80px;background-color:#4F81BD;color:white" %)1|=(% style="width: 60px;background-color:#4F81BD;color:white" %)1|=(% style="width: 80px;background-color:#4F81BD;color:white" %)200 413 -|(% style="width:99px" %)Value|(% style="width:62px" %)sysTimeCurrent|BAT|total_packages|subcontracting_count|Image_date 414 - 415 -[[image:1714465532892-179.png||height="250" width="586"]] 416 - 417 -Example of the first payload(FPort=3):663095C00BBE1000FFD8FFE000104A46494600010101004800480000FFDB0043001B12141714111B1716171E1C1B2028422B28252528513A3D3042605565645F555D5B6A7899816A7190735B5D85B586909EA3ABADAB6780BCC9BAA6C799A8ABA4FFDB0043011C1E1E2823284E2B2B4EA46E5D6EA4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4FFC0000B0800F0014001012200FFC4001F00000105010101010101000000000000000001020304050607 418 - 419 -==== 3.2.1.1sysTimeCurrent ==== 420 - 421 -These four bytes contain the year, month, day, hour, minute, and second of the time. 422 - 423 -AI Sensor use Unix TimeStamp format based on. 424 - 425 -[[image:1714465658414-905.png||height="85" width="553"]] 426 - 427 -Users can get this time from the link: [[https:~~/~~/www.epochconverter.com/>>url:https://www.epochconverter.com/]] : 428 - 429 -Below is the converter example 430 - 431 -EX: 663095C0=2024-04-30 06:54:57. 432 - 433 -[[image:image-20240430162820-5.png||height="218" width="532"]] 434 - 435 -==== 3.2.1.2 BAT- Battery information ==== 436 - 437 -These two bytes of BAT include the battery state and the actual voltage. 438 - 439 -[[image:image-20240430163600-8.png||height="50" width="1141"]] 440 - 441 -**Ex**:0X0BBE= 3006 mv 442 - 443 -==== ==== 444 - 445 -==== 3.2.1.3 total_packages ==== 446 - 447 -This byte represents the total number of packets for the image fetched this time. 448 - 449 -[[image:image-20240430163626-9.png||height="47" width="1116"]] 450 - 451 -==== ==== 452 - 453 -==== 3.2.1.4 subcontracting_count ==== 454 - 455 -This byte represents the data number of the image packet retrieved 456 - 457 -[[image:image-20240430163738-10.png||height="44" width="1117"]] 458 - 459 - 460 -==== 3.2.1.5 Image_date ==== 461 - 462 -Apart from the eight bytes mentioned above, the next 200 bytes are all image data. 463 - 464 -Example the first packet:663095C00BBE1000FFD8FFE000104A46494600010101004800480000FFDB0043001B12141714111B1716171E1C1B2028422B28252528513A3D3042605565645F555D5B6A7899816A7190735B5D85B586909EA3ABADAB6780BCC9BAA6C799A8ABA4FFDB0043011C1E1E2823284E2B2B4EA46E5D6EA4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4FFC0000B0800F0014001012200FFC4001F00000105010101010101000000000000000001020304050607 465 - 466 -Image_date=FFD8FFE000104A46494600010101004800480000FFDB0043001B12141714111B1716171E1C1B2028422B28252528513A3D3042605565645F555D5B6A7899816A7190735B5D85B586909EA3ABADAB6780BCC9BAA6C799A8ABA4FFDB0043011C1E1E2823284E2B2B4EA46E5D6EA4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4A4FFC0000B0800F0014001012200FFC4001F00000105010101010101000000000000000001020304050607 467 - 468 - 469 -==== 3.2.1.6 Combined image ==== 470 - 471 -Once all the data has been uploaded to the TTN platform, the next step is to combine each packet in a new TXT file in the order it was sent. Remember to strip out the first eight bytes of each packet before combining. 472 - 473 - 474 - 475 - 476 - 477 -
- 1714465192126-772.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.karry - Size
-
... ... @@ -1,1 +1,0 @@ 1 -33.9 KB - Content
- 1714465532892-179.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.karry - Size
-
... ... @@ -1,1 +1,0 @@ 1 -101.8 KB - Content
- 1714465603386-389.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.karry - Size
-
... ... @@ -1,1 +1,0 @@ 1 -16.2 KB - Content
- 1714465658414-905.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.karry - Size
-
... ... @@ -1,1 +1,0 @@ 1 -16.2 KB - Content
- 1714465669043-619.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.karry - Size
-
... ... @@ -1,1 +1,0 @@ 1 -123.5 KB - Content
- image-20240430162820-5.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.karry - Size
-
... ... @@ -1,1 +1,0 @@ 1 -70.6 KB - Content
- image-20240430163520-6.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.karry - Size
-
... ... @@ -1,1 +1,0 @@ 1 -15.5 KB - Content
- image-20240430163532-7.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.karry - Size
-
... ... @@ -1,1 +1,0 @@ 1 -15.5 KB - Content
- image-20240430163600-8.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.karry - Size
-
... ... @@ -1,1 +1,0 @@ 1 -15.8 KB - Content
- image-20240430163626-9.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.karry - Size
-
... ... @@ -1,1 +1,0 @@ 1 -15.5 KB - Content
- image-20240430163738-10.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.karry - Size
-
... ... @@ -1,1 +1,0 @@ 1 -14.7 KB - Content