KenToku
November 26, 2021, 3:40am
1
Where did you get the camera module(s)?
uctronics.com
Model number of the product(s)?
Arducam 1MP*4 Quadrascopic Monochrome Camera Bundle Kit
What hardware/platform were you working on?
Jetson NX
$ uname -a
Linux jetson-nx 4.9.201-tegra #3 SMP PREEMPT Tue Jan 26 13:18:57 CST 2021 aarch64 aarch64 aarch64 GNU/Linux
$ cat /etc/nv_tegra_release
R32 (release), REVISION: 5.0, GCID: 25531747, BOARD: t186ref, EABI: aarch64, DATE: Fri Jan 15 23:21:05 UTC 2021
Instructions you have followed. (link/manual/etc.)
ContentsIntroductionWhat is CamarrayCommon SpecsImage SensorLens AssemblyBoardConnector & CableDriver Performance (With Official V4L2 Driver)Quick Start GuideHardware SetupCheck the Driver1.Driver type2.Check your driverInstall Arducam V4L2...
Est. reading time: 10 minutes
Problems you were having?
python3 arducam_displayer.py -f GREY --width 5120 --height 800 -d 0
Firmware Version: 3
Sensor ID: 0x9281
Serial Number: 0xADAF455F
VIDIOC_STREAMON: Invalid argument
Traceback (most recent call last):
File "arducam_displayer.py", line 115, in <module>
display(cap, arducam_utils, args.fps)
File "arducam_displayer.py", line 35, in display
frame = resize(frame, 1280.0)
File "arducam_displayer.py", line 13, in resize
width = frame.shape[1]
AttributeError: 'NoneType' object has no attribute 'shape'
The green LED flush during executing this command.
The dmesg log from your hardware?
dmesg | grep ardu
[ 0.442344] DTS File Name: /home/wong/Jetson/l4t-32.5.0-NX/Linux_for_Tegra/source/public/kernel_src/kernel/kernel-4.9/arch/arm64/boot/dts/../../../../../../hardware/nvidia/platform/t19x/jakku/kernel-dts/tegra194-p3668-all-p3509-0000-arducam.dts
[ 0.705413] DTS File Name: /home/wong/Jetson/l4t-32.5.0-NX/Linux_for_Tegra/source/public/kernel_src/kernel/kernel-4.9/arch/arm64/boot/dts/../../../../../../hardware/nvidia/platform/t19x/jakku/kernel-dts/tegra194-p3668-all-p3509-0000-arducam.dts
[ 2.052057] arducam-csi2: arducam_read: Reading register 0x103 failed
[ 2.052231] arducam-csi2 9-000c: probe failed
[ 2.052359] arducam-csi2 9-000c: Failed to setup board.
[ 2.076588] arducam-csi2 10-000c: firmware version: 3
[ 2.076857] arducam-csi2 10-000c: Sensor ID: 0x0000
[ 2.122260] arducam-csi2 10-000c: sensor arducam-csi2 10-000c registered
[ 3.080354] tegra194-vi5 15c10000.vi: subdev arducam-csi2 10-000c bound
Troubleshooting attempts you’ve made?
I checked wiring. I tried Jetson4.4 and 4.6, but the result is same.
What help do you need
I need to get it working
wong
December 1, 2021, 4:06am
4
Have you tried this diagnostic step?
We have recently completed a single-channel test program, and the method of use is as follows:
Download the firmware update tool to JetsonNano:
b0267_channel_test.tar.gz (23.2 KB)
Perform the following steps to update the firmware:
tar xzvf b0267_channel_test.tar.gz
cd b0267_channel_test/
sudo ./firmware_update -h # show help.
# example:
sudo ./firmware_update -i 7 -m B0267_ov9281_four_in_one_single_channel_firmware
After the firmware update is complete, please completely power off the Jet…
I failed to update firmware.
I tried on Jetson NX
sudo ./firmware_update -i 7 -m B0267_ov9281_four_in_one_single_channel_firmware
[ERROR] Failed to write register
[ERROR] Write checksum error, ret: -1
wong
December 1, 2021, 5:06am
6
For NX you can try follow steps:
unplug power of jetson and camera hat
replug power
execute this command before update firmware
sudo sh -c 'echo 50000 > /sys/bus/i2c/devices/i2c-0/bus_clk_rate'
sudo sh -c 'echo 50000 > /sys/bus/i2c/devices/i2c-1/bus_clk_rate'
do update firmware
I tried these 4 steps. But result is same.
# 3. execute this command before update firmware
sudo sh -c 'echo 50000 > /sys/bus/i2c/devices/i2c-0/bus_clk_rate'
sudo sh -c 'echo 50000 > /sys/bus/i2c/devices/i2c-1/bus_clk_rate'
# 4. do update firmware
sudo ./firmware_update -i 7 -m B0267_ov9281_four_in_one_single_channel_firmware
[ERROR] Failed to write register
[ERROR] Write checksum error, ret: -1
wong
December 1, 2021, 9:28am
8
Please use -i 10
, you are using NX, there are some differences here.
sudo ./firmware_update -i 10 -m B0267_ov9281_four_in_one_single_channel_firmware
This is the result.
sudo sh -c 'echo 50000 > /sys/bus/i2c/devices/i2c-0/bus_clk_rate'
sudo sh -c 'echo 50000 > /sys/bus/i2c/devices/i2c-1/bus_clk_rate'
sudo ./firmware_update -i 10 -m B0267_ov9281_four_in_one_single_channel_firmware
[INFO] Write checksum.
[INFO] Write update flag.
[INFO] Sending... | | ETA: 0h00m00s
[ERROR] Write firmware data failed, ret: -1, block: 0
wong
December 2, 2021, 1:10am
10
It seems that the updater cannot be used on Xavier NX, do you have Nano for the update?
KenToku
December 2, 2021, 1:16am
11
OK.Next week I can use Jetson Nano. I will report the results next week.
wong
December 2, 2021, 1:19am
12
Thank you very much, and sorry for your bad experience.
KenToku
December 6, 2021, 9:46am
13
I tried to update firmware and ran arducam_displayer.py on Jetson nano.
It worked. But there are some noise in images(red line area).
And I tried to ran arducam_displayer.py on Jetson NX after updating firmware.
The result is same.
python3 arducam_displayer.py -f GREY --width 5120 --height 800 -d 0
Firmware Version: 3
Sensor ID: 0x9281
Serial Number: 0xADAF455F
VIDIOC_STREAMON: Invalid argument
Traceback (most recent call last):
File "arducam_displayer.py", line 115, in <module>
display(cap, arducam_utils, args.fps)
File "arducam_displayer.py", line 35, in display
frame = resize(frame, 1280.0)
File "arducam_displayer.py", line 13, in resize
width = frame.shape[1]
AttributeError: 'NoneType' object has no attribute 'shape'
I expect it to work with Jetson NX on noise-free images. Is it difficult?
wong
December 7, 2021, 3:04am
14
This seems to be a problem with HTS,
you can try to increase HTS while the camera is running, the steps are as follows:
Get the current HTS
python3 rw_sensor.py -r 0x380c 0x380d
Increase HTS
python3 rw_sensor.py -r 0x380c 0x380d -v 0x03 0xD8
KenToku
December 13, 2021, 11:36am
15
I understand how to deal with noise.
Is there any way to get this to work with Jetson NX?
Jetson NX result:
python3 arducam_displayer.py -f GREY --width 5120 --height 800 -d 0
Firmware Version: 3
Sensor ID: 0x9281
Serial Number: 0xADAF455F
VIDIOC_STREAMON: Invalid argument
Traceback (most recent call last):
File "arducam_displayer.py", line 115, in <module>
display(cap, arducam_utils, args.fps)
File "arducam_displayer.py", line 35, in display
frame = resize(frame, 1280.0)
File "arducam_displayer.py", line 13, in resize
width = frame.shape[1]
AttributeError: 'NoneType' object has no attribute 'shape'
wong
December 14, 2021, 1:18am
16
After you update the firmware on Jetson, put it on the NX and run it.
From the output you provided, there seems to be some problems.
Can you try to test a single channel on NX?
KenToku
December 14, 2021, 2:24am
17
I can test a single channel on NX next week.
If i Connect a single camera on NX, so what shoud i do next?
wong
December 14, 2021, 2:29am
18
If all channels are able to work, then it may be an HTS problem, and we can fix it through a firmware update.
(If it is an HTS problem, you can use rw_sensor to find a suitable HTS on Jetson Nano, and then I can update the firmware with the value you determined.)
If there is a channel that does not work, you need to repair the abnormal channel first and test on NX again.
KenToku
December 14, 2021, 2:50am
19
Connect a single camera on Jetson NX MIPI connector, and what should I do next?
runnning below command seems to be wrong.
python3 arducam_displayer.py -f GREY --width 5120 --height 800 -d 0