Changes

Jump to navigation Jump to search
5,093 bytes added ,  17:14, 6 November 2020
Line 15: Line 15:     
== Hardware Setup ==
 
== Hardware Setup ==
 +
[[File:XAVIER-FPDLINK3-4cam.jpg|center|thumb|600x600px|AGX XAVIER connnect with CS-FPD-CAMs|link=http://wiki.veye.cc/index.php/File:XAVIER-FPDLINK3-4cam.jpg]][[File:XAVIER-FPDLINK3-4cam.jpg|center|thumb|600x600px|AGX XAVIER connnect with CS-FPD-CAMs|link=http://wiki.veye.cc/index.php/File:XAVIER-FPDLINK3-4cam.jpg]][[File:TX2-FPDLINK3-4cams.jpg|center|thumb|600x600px|TX2 connect with CS-FPD-CAMs|link=http://wiki.veye.cc/index.php/File:TX2-FPDLINK3-4cams.jpg]]PS:[[FPD-LINK3-2RX Data Sheet index|FPD-LINK3-2RX]] need a 12V DC power.
    
== Upgrade Jetson Nano, Jetson TX2, AGX Xavier and Xavier NX system ==
 
== Upgrade Jetson Nano, Jetson TX2, AGX Xavier and Xavier NX system ==
 +
The steps are basically the same as  [[VEYE CS Camera for Jetson TX2#Upgrade Jetson Nano.2C Jetson TX2.2C AGX Xavier and Xavier NX system|Upgrade Jetson Nano, Jetson TX2, AGX Xavier and Xavier NX]]. Note that dts, dtb, use the version with the fpdlink suffix. Driver source code and Image, are compatible with FPD-Link and MIPI interface cameras.
    +
====Are Image and DTB upgrade successful ?====
 +
=====For Image=====
 +
<code>ls /sys/bus/i2c/drivers/</code>
 +
 +
There should have  veye327 csx307 cssc132 i2c-ds90ub954 directory.
 +
=====For DTB=====
 +
DTB varies from platform  and from camera module.
 +
 +
- Nano A02
 +
 +
<code>ls /proc/device-tree/host1x/i2c@546c0000/</code>
 +
 +
- Nano B01
 +
 +
<code>ls /proc/device-tree/cam_i2cmux/i2c@*</code>
 +
 +
- TX2 Devkit
 +
 +
<code>ls /proc/device-tree/i2c@3180000/tca9548@70/i2c@*</code>
 +
 +
- AGX Xavier
 +
 +
<code>ls /proc/device-tree/i2c@3180000/tca9548@70/i2c@*</code>
 +
 +
- Xavier NX
 +
 +
<code>ls /proc/device-tree/cam_i2cmux/i2c@*</code>
 +
 +
You should be able to find the camera model you used and ds90ub954.
 
== I2C Address ==
 
== I2C Address ==
 +
'''fpdlink port:[[FPD-LINK3-2RX Data Sheet index|FPD-LINK3-2RX]],J3 is port 0, J4 is port 1.'''
    +
====Nano A02====
 +
{| class="wikitable"
 +
!Camera Index
 +
!I2C bus
 +
!I2C Addr
 +
!Location
 +
|-
 +
|Camera 0
 +
|6
 +
|0x3b
 +
|FPD-LINK3-2RX port 0
 +
|}
 +
====Nano B01====
 +
{| class="wikitable"
 +
!Camera Index
 +
!I2C bus
 +
!I2C Addr
 +
!Location
 +
|-
 +
|Camera 0
 +
|7
 +
|0x3b
 +
|FPD-LINK3-2RX port 0
 +
|-
 +
|Camera 1
 +
|8
 +
|0x3b
 +
|FPD-LINK3-2RX port 0
 +
|}
 +
====Xavier NX====
 +
{| class="wikitable"
 +
!Camera Index
 +
!I2C bus
 +
!I2C Addr
 +
!Location
 +
|-
 +
|Camera 0
 +
|9
 +
|0x3b
 +
|FPD-LINK3-2RX port 0
 +
|-
 +
|Camera 1
 +
|10
 +
|0x3b
 +
|FPD-LINK3-2RX port 0
 +
|}
 +
====AGX Xavier====
 +
{| class="wikitable"
 +
!Camera Index
 +
!I2C bus
 +
!I2C Addr
 +
!Location
 +
|-
 +
|Camera 0
 +
|30
 +
|0x3b
 +
|ADP-N3 J1--FPD-LINK3-2RX port 0
 +
|-
 +
|Camera 1
 +
|30
 +
|0x3c
 +
|ADP-N3 J1--FPD-LINK3-2RX port 1
 +
|-
 +
|Camera 2
 +
|31
 +
|0x3b
 +
|ADP-N3 J2--FPD-LINK3-2RX port 0
 +
|-
 +
|Camera 3
 +
|31
 +
|0x3c
 +
|ADP-N3 J2--FPD-LINK3-2RX port 1
 +
|-
 +
|Camera 4
 +
|32
 +
|0x3b
 +
|ADP-N3 J3--FPD-LINK3-2RX port 0
 +
|-
 +
|Camera 5
 +
|32
 +
|0x3c
 +
|ADP-N3 J3--FPD-LINK3-2RX port 1
 +
|-
 +
|Camera 6
 +
|33
 +
|0x3b
 +
|ADP-N3 J4--FPD-LINK3-2RX port 0
 +
|-
 +
|Camera 7
 +
|33
 +
|0x3c
 +
|ADP-N3 J4--FPD-LINK3-2RX port 1
 +
|}
 +
====TX2 Devkit====
 +
{| class="wikitable"
 +
!Camera Index
 +
!I2C bus
 +
!I2C Addr
 +
!Location
 +
|-
 +
|Camera 0
 +
|30
 +
|0x3b
 +
|ADP-N2 J1--FPD-LINK3-2RX port 0
 +
|-
 +
|Camera 1
 +
|30
 +
|0x3c
 +
|ADP-N2 J1--FPD-LINK3-2RX port 1
 +
|-
 +
|Camera 2
 +
|31
 +
|0x3b
 +
|ADP-N2 J2--FPD-LINK3-2RX port 0
 +
|-
 +
|Camera 3
 +
|31
 +
|0x3c
 +
|ADP-N2 J2--FPD-LINK3-2RX port 1
 +
|-
 +
|Camera 4
 +
|32
 +
|0x3b
 +
|ADP-N2 J3--FPD-LINK3-2RX port 0
 +
|-
 +
|Camera 5
 +
|32
 +
|0x3c
 +
|ADP-N2 J3--FPD-LINK3-2RX port 1
 +
|}
 +
===Applications and Test===
 +
The same as [[VEYE CS Camera for Jetson TX2#Applications and Test|Applications and Test on Jetson of MIPI Camera]].
 
== FPD-Link III shell script manual ==
 
== FPD-Link III shell script manual ==
 +
$ ./fpdlink3_i2c_jetson.sh
 +
 +
Usage:  ./fpdlink3_i2c_jetson.sh [-f] function name -b bus -p port -p1 param1 -p2 param2 -p3 param3
 +
 +
options:
 +
 +
    -f [function name]       function name
 +
 +
    -b [i2c bus num]               i2c bus number
 +
 +
    -p [fpdlink port]      fpd link port number [0,1]
 +
 +
    -p1 [param1]                           param1 of each function
 +
 +
    -p2 [param1]                           param2 of each function
 +
 +
    -p3 [param1]                           param3 of each function
 +
 +
support functions: rpi_init,sync_init,trigger_init
 +
 +
'''fpdlink port:[[FPD-LINK3-2RX Data Sheet index|FPD-LINK3-2RX]],J3 is port 0, J4 is port 1.'''
 +
===fpdlink3_i2c.sh Usage===
 +
The probing and loading of FPD-Link devices are completed automatically when the system is powered on.
 +
=====sync_init=====
 +
<code>./fpdlink3_i2c_jetson.sh -f sync_init -b [busnum] -p [portnum] -p1 0</code>
 +
 +
Configure the camera on I2C bus [busnum], port [portnum] as the master of sync mode.
 +
 +
Connect J1 of [[FPD-LINK3-TX Data Sheet index|FPD-LINK3-TX]] on port [portnum] to J6 of [[FPD-LINK3-2RX Data Sheet index|FPD-LINK3-2RX]],direction is TX-->RX.
 +
 +
<code>./fpdlink3_i2c_jetson.sh -f sync_init  -b [busnum] -p [portnum] -p1 1</code>
 +
 +
Configure the camera on I2C bus [busnum], port [portnum] as the slave of sync mode.
 +
 +
Connect J8 of  [[FPD-LINK3-2RX Data Sheet index|FPD-LINK3-2RX]] on port [portnum] to J1 of [[FPD-LINK3-TX Data Sheet index|FPD-LINK3-TX]] ,direction is RX-->TX.
 +
 +
=====trigger_init=====
 +
<code>./fpdlink3_i2c_jetson.sh -f trigger_init -b [busnum] -p [portnum]</code>
 +
 +
Configure the camera on I2C bus [busnum], port [portnum] as the trigger mode.
    +
Connect J6-0 of  [[FPD-LINK3-2RX Data Sheet index|FPD-LINK3-2RX]] on port [portnum] to J1-0 of [[FPD-LINK3-TX Data Sheet index|FPD-LINK3-TX]] ,direction is RX-->TX.
 
== Typical application ==
 
== Typical application ==

Navigation menu