realsense driver problems and solution

frames can not arrive in 5 sec.....

update firmware

follow the instractions under LINK

WHEN run

$sudo apt-get update

the following bug occured

E: Malformed entry 1 in list file /etc/apt/sources.list.d/realsense-public.list (Component)
E: The list of sources could not be read.

 

solution:

run

$sudo gedit /etc/apt/sources.list.d/realsense-public.list

 

in this file there should be a space before main

I wrote the needed steps that are given by Intel into the following bash file.

Notice: for the while loop of bash, Pipes would creat a subshell, so the variable BUS and DEVICE  were not stored,  using of these variables outside the while loop would return empty values, so my solution here is using a pair of brickets before while and after the commands that I need to run in the same shell with while loop.

#!/bin/bash

#GLOBALS
download_link="https://downloadmirror.intel.com/28377/eng/Intel%C2%AE%20RealSense%E2%84%A2D400%20Series%20Signed%20Development%20Firmware%20v5_10_13.zip"


# Add Intel server to list of repositories
echo 'deb http://realsense-hw-public.s3.amazonaws.com/Debian/apt-repo xenial main' | sudo tee /etc/apt/sources.list.d/realsense-public.list
# Register the servers public key
sudo apt-key adv --keyserver keys.gnupg.net --recv-key 6F3EFCDE
# Refresh the list of repositories and packages available
sudo apt-get update
# Install the intel-realsense-dfu package
sudo apt-get install intel-realsense-dfu*
# Download latest D400 series firmware .bin file to directory ~/Download 
cd ~/Downloads && wget $download_link
unzip Intel*.zip -d rs_firmware
rm Intel*.zip
# Plug in D400 Series camera to host USB3.1 port. Check serial # and bus#
lsusb | \
( while IFS=: read -r line
do
	#echo $line
	if [[ $line == *"Intel Corp."* ]]; then
		BUS=${line:4:3} # line:offset:length
		DEVICE=${line:15:3}
  		echo "Bus: $BUS" 
		echo "Device: $DEVICE"
	fi
done 

##################INSTALLATION#######################
#command specifies bus #, device #, -f flag to force upgrade, and –i flag for complete system path to downloaded FW.bin file
intel-realsense-dfu -b $BUS -d $DEVICE -f -i ~/Downloads/rs_firmware/Signed_Image_UVC*.bin ) #group this with while to make them run in the same shell and change the variables

echo "Check firmware:"
intel-realsense-dfu -p

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值