Installing DDserver on Pi os Buster Lite, Zero/w 3b and 4.

Open discussion about photography, qDslrDashboard
Post Reply
cardship
Posts: 5
Joined: 06 Oct 2020, 19:16

Installing DDserver on Pi os Buster Lite, Zero/w 3b and 4.

Post by cardship »

installing All Dependencies, configuring the wireless access point, and installing DDserver on a Rasberry Pi Z/w 3B and 4b
Dowload and install the latest Official Pi OS installer from the Raspberry Pi download site at, https://www.raspberrypi.org/downloads/
Start the installer
Select Buster Lite from the OS menu
insert an SD card 4G or larger
Write

plug SD into Pi
plug in Keyboard and monitor then connect power
login: pi
password: raspberry

Type
sudo raspi-config
set wifi location for your country under localisation Options/Change/Select WLAN Country
select back

if you are using Ethernet on pi 3 or 4 skip the wifi setup
setup wifi settings for your network under Network Options/Wireless Lan
select back
enable SSH under Interfacing Options/SSH select yes to Enable SSH
select back
select finish to exit config

Type
ifconfig
note the ip of your wlan0

from a computer on the same network download putty then open and type in the ip address for wlan0
Login: pi
Password:raspberry
Select each line of code individually (except for when you are running nano to put all of the quoted code into the file without the quotation marks.)copy and right click in the putty window to paste

All code between Quotation marks goes inside the files without quotations.
_____________________________________________________________________
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install git
sudo apt install hostapd
sudo systemctl unmask hostapd
sudo systemctl enable hostapd
sudo apt install dnsmasq
sudo DEBIAN_FRONTEND=noninteractive apt install -y netfilter-persistent iptables-persistent

sudo nano /etc/dhcpcd.conf
"
interface wlan0
static ip_address=192.168.1.1/24
nohook wpa_supplicant
"

sudo nano /etc/sysctl.d/routed-ap.conf
"
net.ipv4.ip_forward=1
"
sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
sudo netfilter-persistent save
sudo mv /etc/dnsmasq.conf /etc/dnsmasq.conf.orig

sudo nano /etc/dnsmasq.conf
"
interface=wlan0
dhcp-range=192.168.1.2,192.168.1.20,255.255.255.0,24h
domain=wlan
address=/gw.wlan/192.168.1.1
"
sudo nano /etc/hostapd/hostapd.conf
"
country_code=US
interface=wlan0
ssid=tetherpi
hw_mode=g
channel=7
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=2
wpa_passphrase=connected
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
"

sudo rfkill unblock wlan

sduo apt-get install build-essential pkg-config libusb-1.0-0-dev
git clone git://github.com/hubaiz/DslrDashboardServer package/DslrDashboardServer
cd package/DslrDashboardServer
g++ -Wall src/main.cpp src/communicator.cpp -I/usr/include/libusb-1.0/ -lusb-1.0 -lpthread -lrt -lstdc++ -o ddserver
chmod +x ddserver
./ddserver

sudo cp ddserver /usr/local/bin/

sudo nano /etc/systemd/system/ddserver.service
"
# location: /etc/systemd/system/
[Unit]
Description = ddserver for qdslrDashboard
After = syslog.target

[Service]
# make sure the shell script is executable (chmod +x $1)
# and it begins with a shebang (#!/bin/bash)
ExecStart = /usr/local/bin/ddserver &

# In case if it gets stopped, restart it immediately
##Restart = always

# With notify Type, service manager will be notified
# when the starting up has finished
#Type = notify
Type = simple

# Since Type is notify, notify only service updates
# sent from the main process of the service
#NotifyAccess= main

[Install]
# multi-user.target corresponds to run level 3
# roughtly meaning wanted by system start
WantedBy = multi-user.target
"
sudo systemctl daemon-reload
sudo systemctl enable ddserver.service


sudo systemctl reboot
_________________________________________
after the reboot you should be able to find a wifi with the name of tetherpi, password is connected.
connect your camera to the pi usb, if it is not detected the first time you may have the wrong usb port
open the Qdslrdashboard or control my camera app
click the network icon and the app should find and connect to your camera.
kirsten
Posts: 2
Joined: 25 Feb 2022, 05:17

Re: Installing DDserver on Pi os Buster Lite, Zero/w 3b and 4.

Post by kirsten »

Thanks i think i managed to figure out the 'files'.
Last edited by kirsten on 25 Feb 2022, 06:10, edited 2 times in total.
kirsten
Posts: 2
Joined: 25 Feb 2022, 05:17

Re: Installing DDserver on Pi os Buster Lite, Zero/w 3b and 4.

Post by kirsten »

kirsten wrote: 25 Feb 2022, 05:20 Thanks i think i managed to figure out the 'files'. i was able to wifi-enabled by canon T3i/600d with your instructions. I used a Raspberry Pi Zero 2 W. The only point i got stuck was after keying in:

./ddserver

I didnt get any further "pi@raspberrypi: - $" prompts and could not enter the next command.

I simply reopen another telnet session with putty and continued with the rest of your instructions.

At first DSLRdashboard on my phone gave me an error,
"DDServer not found, connecting to IP 102.168.1.1
Error getting DSLR list from IP: 192.168.1.1"

But i simply reconnected the USB port to the camera and retried and it worked! Thanks again.
Post Reply