Raspberry Pi - DDServer - No Dslr Device Found

qDslrDashbord error reports
Peanuts1_1
Posts: 5
Joined: 10 Mar 2015, 16:32

Raspberry Pi - DDServer - No Dslr Device Found

Post by Peanuts1_1 »

Hey,
I'm trying to run the DDserver on my Raspberry Pi.
I tried to follow the steps, in the desscription, but my first Problem was to >make menueconfig... because this file doesn't exists..
Run then the following commands: "make menuconfig"
Or is this Command only required for the OpenWrt installation?

Anyways, i continued with installing the Lib.

Code: Select all

sudo apt-get install build-essential pkg-config libusb-1.0-0-dev
And, compiling the Files.

Code: Select all

g++ -Wall src/main.cpp src/communicator.cpp `pkg-config --libs --cflags libusb-1.0` -lpthread -lrt -lstdc++ -o ddserver
There occurred a few Compiling Warnings, wich i tried to ignore.
so i contiuned, (>>chmod +x ddserver), an started the Server: ./ddserver - No output was given.
I connected my NikonD7000 to the Raspberry, wich is wired via Ethernet to my Network.
But the Andriod App isn't displaying anything, when i tap on "Connect to..." (Correct IP, is set)
The Windows app, just says "No Dslr Device found on DDserver 192.168.1.XX"

So, for me it looks like the DDserver cant found the Camera.
Is there any kind of Driver, wich is required? :?:

Regards Peanuts :)
hubaiz
Site Admin
Posts: 2003
Joined: 27 Jan 2015, 18:58

Re: Raspberry Pi - DDServer - No Dslr Device Found

Post by hubaiz »

Please note that there in the description there are steps for building ddserver for the OpenWrt platform and separate for building it for Linux (including the RPI)

The simple steps are:

Code: Select all

git clone https://github.com/hubaiz/DslrDashboardServer.git
cd DslrDashboardServer
sudo apt-get install build-essential pkg-config libusb-1.0-0-dev
g++ -Wall src/main.cpp src/communicator.cpp `pkg-config --libs --cflags libusb-1.0` -lpthread -lrt -lstdc++ -o ddserver
Peanuts1_1
Posts: 5
Joined: 10 Mar 2015, 16:32

Re: Raspberry Pi - DDServer - No Dslr Device Found

Post by Peanuts1_1 »

Thanks for ur Reply :)
I followed the steps, but it gives me again this Message:
Screen.jpg
Screen.jpg (8.35 KiB) Viewed 15786 times
I'm not sure if the Compile warnings, are serious:

Code: Select all

src/main.cpp: In function ‘void startUdpListener()’:
src/main.cpp:137:39: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘ssize_t {aka int}’ [-Wformat]
src/communicator.h: In constructor ‘Communicator::Communicator()’:
src/communicator.h:64:24: warning: ‘Communicator::mHandle’ will be initialized after [-Wreorder]
src/communicator.h:63:17: warning:   ‘libusb_device* Communicator::mDevice’ [-Wreorder]
src/communicator.cpp:10:1: warning:   when initialized here [-Wreorder]
src/communicator.cpp: In member function ‘bool Communicator::readFromClient()’:
src/communicator.cpp:114:51: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘ssize_t {aka int}’ [-Wformat]
src/communicator.cpp:119:60: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘ssize_t {aka int}’ [-Wformat]
src/communicator.cpp: In member function ‘void Communicator::sendUsbDeviceList(uint32_t)’:
src/communicator.cpp:662:74: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘std::vector<ImagingUsbDevice>::size_type {aka unsigned int}’ [-Wformat]
hubaiz
Site Admin
Posts: 2003
Joined: 27 Jan 2015, 18:58

Re: Raspberry Pi - DDServer - No Dslr Device Found

Post by hubaiz »

Does the OS maybe mount the camera SD card?
Peanuts1_1
Posts: 5
Joined: 10 Mar 2015, 16:32

Re: Raspberry Pi - DDServer - No Dslr Device Found

Post by Peanuts1_1 »

Now, i removed Both SD-Cards --> It Works!
But if i Want to record during LiveView, i need them. Should i then just try to unmount them?
Does the server directly allow Multiple Clients, to connect with? Or do i have to share the Connection from one client to another?

Anyways, Thanks a lot!. ur doing a great job :)
hubaiz
Site Admin
Posts: 2003
Joined: 27 Jan 2015, 18:58

Re: Raspberry Pi - DDServer - No Dslr Device Found

Post by hubaiz »

You should prevent the OS from mounting the camera SD card.
Yes it allows multiple clients but at same time only one client could be connect to one camera.
Peanuts1_1
Posts: 5
Joined: 10 Mar 2015, 16:32

Re: Raspberry Pi - DDServer - No Dslr Device Found

Post by Peanuts1_1 »

Are there any config files for ddserver, wich i can adjust ?

This it what happens in the tail if the MessageLog (sudo tail -f /var/log/messages), if i try to connect with a DDClient, if the SD-Card is insterted.

Code: Select all

Mar 11 14:24:12 raspberrypi ddserver: Client multicast query DslrDashboardClient{f88bad6d-6e92-4e39-ae8c-ee6c7f8e7b1f}
Mar 11 14:24:12 raspberrypi ddserver: Server message length: 57   msg: DslrDashboardServer{f88bad6d-6e92-4e39-ae8c-ee6c7f8e7b1f}#001
Mar 11 14:24:12 raspberrypi ddserver: Incoming client connection
Mar 11 14:24:12 raspberrypi ddserver: Awaiting client connection
Mar 11 14:24:12 raspberrypi ddserver: USB Devices in
Mar 11 14:24:12 raspberrypi ddserver: Number of possible configurations: 1 Device Class: 9 VendorID: 1060, ProductID: 38162
Mar 11 14:24:12 raspberrypi ddserver: Number of alternate settings:
Mar 11 14:24:12 raspberrypi ddserver: Interface class: 9 Interface number: 0 Number of endpoints: 1
Mar 11 14:24:12 raspberrypi ddserver: Interface class: 9 Interface number: 0 Number of endpoints: 1
Mar 11 14:24:12 raspberrypi ddserver: Number of possible configurations: 1 Device Class: 9 VendorID: 7531, ProductID: 2
Mar 11 14:24:12 raspberrypi ddserver: Number of alternate settings:
Mar 11 14:24:12 raspberrypi ddserver: Interface class: 9 Interface number: 0 Number of endpoints: 1
Mar 11 14:24:12 raspberrypi ddserver: Number of possible configurations: 1 Device Class: 255 VendorID: 1060, ProductID: 60416
Mar 11 14:24:12 raspberrypi ddserver: Number of alternate settings:
Mar 11 14:24:12 raspberrypi ddserver: Interface class: 255 Interface number: 0 Number of endpoints: 3
Mar 11 14:24:12 raspberrypi ddserver: Number of possible configurations: 1 Device Class: 0 VendorID: 1200, ProductID: 1064
Mar 11 14:24:12 raspberrypi ddserver: Number of alternate settings:
Mar 11 14:24:12 raspberrypi ddserver: Interface class: 6 Interface number: 0 Number of endpoints: 3
Mar 11 14:24:12 raspberrypi ddserver: Found USB imaging device, get vendor and product
Mar 11 14:24:12 raspberrypi ddserver: Kernel driver active
Mar 11 14:24:12 raspberrypi ddserver: Imaging USB devices found: 0
Mar 11 14:24:14 raspberrypi ddserver: Closing USB device
It is only working, if I switch my Camera off, -> Switch it On without SDCard -> then Insert SDCard -> And then Connect with Client

But, i have no real Idea, how i can leave the Card unmounted, because nothing different is mentioned, when i switch it on with SDcard.
hubaiz
Site Admin
Posts: 2003
Joined: 27 Jan 2015, 18:58

Re: Raspberry Pi - DDServer - No Dslr Device Found

Post by hubaiz »

ddserver can't access the USB device while it is mounted.
As I said you should disable the SD card autmount.
http://www.raspberrypi.org/forums/viewt ... 91&t=91677
littlelio
Posts: 10
Joined: 13 Jul 2015, 09:07

Re: Raspberry Pi - DDServer - No Dslr Device Found

Post by littlelio »

Sorry to dig this up, but I have a very similar issue.

I have successfully run the ddserver on openwr, now I just want to try my raspberry Pi 2. After compiled and generated the bin of ddserver, I just can not connect to the ddserver using windows client, via cable network or wireless.

the error report from syslog is similar:

Code: Select all

Jul 16 03:48:09 ubuntu kernel: [ 1783.987733] usb 1-1.3: new high-speed USB device number 11 using dwc_otg
Jul 16 03:48:09 ubuntu kernel: [ 1784.076689] usb 1-1.3: New USB device found, idVendor=04b0, idProduct=0426
Jul 16 03:48:09 ubuntu kernel: [ 1784.076713] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jul 16 03:48:09 ubuntu kernel: [ 1784.076729] usb 1-1.3: Product: NIKON DSC D3S
Jul 16 03:48:09 ubuntu kernel: [ 1784.076745] usb 1-1.3: Manufacturer: NIKON
Jul 16 03:48:09 ubuntu kernel: [ 1784.076760] usb 1-1.3: SerialNumber: xxxxxxxxxxxxxxxxxx
Jul 16 03:48:42 ubuntu ddserver: Incoming client connection
Jul 16 03:48:42 ubuntu ddserver: Awaiting client connection
Jul 16 03:48:42 ubuntu ddserver: USB Devices in
Jul 16 03:48:42 ubuntu ddserver: Number of possible configurations: 1 Device Class: 0 VendorID: 1200, ProductID: 1062
Jul 16 03:48:42 ubuntu ddserver: Number of alternate settings:
Jul 16 03:48:42 ubuntu ddserver: Interface class: 6 Interface number: 0 Number of endpoints: 3
Jul 16 03:48:42 ubuntu ddserver: Found USB imaging device, get vendor and product
Jul 16 03:48:42 ubuntu ddserver: Error opening USB imaging device: -3
Jul 16 03:48:42 ubuntu ddserver: Number of possible configurations: 1 Device Class: 0 VendorID: 29586, ProductID: 30737
Jul 16 03:48:42 ubuntu ddserver: Number of alternate settings:
Jul 16 03:48:42 ubuntu ddserver: Interface class: 255 Interface number: 0 Number of endpoints: 4
Jul 16 03:48:42 ubuntu ddserver: Number of possible configurations: 1 Device Class: 255 VendorID: 1060, ProductID: 60416
Jul 16 03:48:42 ubuntu ddserver: Number of alternate settings:
Jul 16 03:48:42 ubuntu ddserver: Interface class: 255 Interface number: 0 Number of endpoints: 3
Jul 16 03:48:42 ubuntu ddserver: Number of possible configurations: 1 Device Class: 9 VendorID: 1060, ProductID: 38164
Jul 16 03:48:42 ubuntu ddserver: Number of alternate settings:
Jul 16 03:48:42 ubuntu ddserver: Interface class: 9 Interface number: 0 Number of endpoints: 1
Jul 16 03:48:42 ubuntu ddserver: Interface class: 9 Interface number: 0 Number of endpoints: 1
Jul 16 03:48:42 ubuntu ddserver: Number of possible configurations: 1 Device Class: 9 VendorID: 7531, ProductID: 2
Jul 16 03:48:42 ubuntu ddserver: Number of alternate settings:
Jul 16 03:48:42 ubuntu ddserver: Interface class: 9 Interface number: 0 Number of endpoints: 1
Jul 16 03:48:42 ubuntu ddserver: Imaging USB devices found: 0
Jul 16 03:48:52 ubuntu ddserver: Error reading total packet size: -1
Jul 16 03:48:52 ubuntu ddserver: Stoping client
It is the D3S (which works on openwrt) and I can see it is connectect, but when I want to initiate connection from client, it just quit.

I tried pull CF cards out or in, but no difference.

As for the automount, I don't think it is mounted anyway?

It says "Jul 16 03:48:42 ubuntu ddserver: Imaging USB devices found: 0". Perhaps D3S behaves differently in linux?

Just need some help. Thanks!
hubaiz
Site Admin
Posts: 2003
Joined: 27 Jan 2015, 18:58

Re: Raspberry Pi - DDServer - No Dslr Device Found

Post by hubaiz »

From the log that you posted

Code: Select all

Jul 16 03:48:42 ubuntu ddserver: Found USB imaging device, get vendor and product
Jul 16 03:48:42 ubuntu ddserver: Error opening USB imaging device: -3
-3 error is:

Code: Select all

	/** Access denied (insufficient permissions) */
	LIBUSB_ERROR_ACCESS = -3,
According this the application does not have the required permission to access the USB device.
Post Reply