Open 400lab opened 3 years ago
If you only get warnings then it should compile. Is there a ddserver file in the build folder? What command did you use to compile?
Thank you for the very fast reply.
The command used to compile is the standard
g++ -Wall src/main.cpp src/communicator.cpp `pkg-config --libs --cflags libusb-1.0` -lpthread -lrt -lstdc++ -o ddserver
The compiling runs with these Warnings for about 10 seconds and then stops.
At the end I get a ddserver file in the folder and then I make it executable with
chmod +x ddserver
But in the end when I launch it nothing happens
./ddserver
Searching online I have seen other Raspberry users with these warning not being able to run the software in the end.
Not sure what you mean with nothing happens. ddserver is only a small proxy application that will forward the PTP USB messages over the network between qDslrDashboard and the connected USB camera.
It does not give a feedback in terminal interface for the server running in the Raspberry?
Having hit return after ./ddserver
it just "hangs" and it does not return to bash prompt.
Why would return bash prompt when it is running? It purpose is to run. You can add it to your startup script.
Thank you again for your patience. I went ahead despite the warnings and from a subsequent check it seems that the service is active.
pi@raspberrypi:~ $ systemctl status ddserver.service
● ddserver.service - ddserver for qdslrDashboard
Loaded: loaded (/etc/systemd/system/ddserver.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2021-04-16 17:09:41 CEST; 2min 16s ago
Main PID: 325 (ddserver)
Tasks: 2 (limit: 877)
CGroup: /system.slice/ddserver.service
└─325 /usr/local/bin/ddserver &
Apr 16 17:09:41 raspberrypi systemd[1]: Started ddserver for qdslrDashboard.
Apr 16 17:09:42 raspberrypi ddserver[325]: DslrDashboardServer starting
Apr 16 17:09:42 raspberrypi ddserver[325]: Starting socket server on port 4757
Apr 16 17:09:42 raspberrypi ddserver[325]: Awaiting client connection
Apr 16 17:09:42 raspberrypi ddserver[325]: Starting UDP listener
Apr 16 17:09:42 raspberrypi ddserver[325]: join multicast group: 224.1.2.3
Apr 16 17:09:42 raspberrypi ddserver[325]: error in joining multicast group -1
pi@raspberrypi:~ $ systemctl status ddserver.service
● ddserver.service - ddserver for qdslrDashboard
Loaded: loaded (/etc/systemd/system/ddserver.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2021-04-16 17:09:41 CEST; 3min 5s ago
Main PID: 325 (ddserver)
Tasks: 2 (limit: 877)
CGroup: /system.slice/ddserver.service
└─325 /usr/local/bin/ddserver &
Apr 16 17:12:31 raspberrypi ddserver[325]: Incoming client connection
Apr 16 17:12:31 raspberrypi ddserver[325]: Awaiting client connection
Apr 16 17:12:31 raspberrypi ddserver[325]: USB Devices in
Apr 16 17:12:31 raspberrypi ddserver[325]: Number of possible configurations: 1 Device Class: 9 VendorID: 7531, ProductID: 2
Apr 16 17:12:31 raspberrypi ddserver[325]: Number of alternate settings:
Apr 16 17:12:31 raspberrypi ddserver[325]: Interface class: 9 Interface number: 0 Number of endpoints: 1
Apr 16 17:12:31 raspberrypi ddserver[325]: Imaging USB devices found: 0
Apr 16 17:12:31 raspberrypi ddserver[325]: Error reading total packet size: 0
Apr 16 17:12:31 raspberrypi ddserver[325]: Stoping client
Apr 16 17:12:33 raspberrypi ddserver[325]: Closing USB device
I am still not able to connect the camera even if I use the same cable that works on another system with qDslrDashboard, but I think this is another issue I will try to solve.
Check that your OS isn't automatically mounting the camera SD card, as then it will be not available for ddserver.
@hubaiz What's your email address? In addition, I want to know whether the client can be open source?
Hi! I've tried several times to compile ddserver on a Raspberry Pi Zero W and I get the following warnings (the software does not run at the end)