X221, -LC, -AI
TECHNICAL REFERENCE MANUAL
VERSION: 1.4
Page 32 of 38
10.2.2
Dump i2c device registers
Syntax: i2cdump [options] <busNr> <deviceAddress>
test@test-desktop:
~
$ i2cdump -y -f 8 0x76
No size specified (using byte-data access)
0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef
00: 00 00 ff ff 00 00 ff ff XX XX XX XX XX XX XX XX ........XXXXXXXX
10: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX
20: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX
...
d0: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX
e0: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX
f0: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX
test@test-desktop:
~
$
10.2.3
Set register value:
Syntax: i2cset [options] <busNr> <deviceAddress> <register> <address> <value>
test@test-desktop:
~
$ sudo i2cset -y -f 8 0x76 0x06 0x00
test@test-desktop:
~
$
10.2.4
Read register value:
Syntax: i2cget [options] <busNr> <deviceAddress> <register> <address>
test@test-desktop:
~
$ sudo i2cget -y -f 8 0x76 0x06
0x00
test@test-desktop:
~
$
10.2.5
Test IMX219 camera stream
The parameter `sensor-id=` describes the camera target. This id can be found by using `ls /dev/`. If
the camera correctly plugged in then there should be a device called `/dev/videoX`, where X is the
camera id.
test@test-desktop:
~
$ gst-launch-1.0 nvarguscamerasrc sensor-id=0
!
'video/x-
raw(memory:NVMM), width=(int)1280, height=(int)720, format=(string)NV12,
framerate=(fraction)30/1'
!
nvvidconv
!
queue
!
xvimagesink