Difference between revisions of "Cosmostreamer for DJI SDR with DJI gimbals"

From Cosmostreamer Wiki
Jump to navigation Jump to search
 
(82 intermediate revisions by the same user not shown)
Line 3: Line 3:
<br><br><br>
<br><br><br>


==Video review==
==Video reviews==
No reviewes yet.
No reviewes yet.
<br><br><br>
<br><br><br>
Line 23: Line 23:
* 2 USB 2.0 ports + 2 USB 3.0 ports
* 2 USB 2.0 ports + 2 USB 3.0 ports
* 1 USB-C port (used for DJI SDR connection)
* 1 USB-C port (used for DJI SDR connection)
<br><br>
<br>


===Raspberry Pi 5===
===Raspberry Pi 5===
<pre style="color: red">Not supported </pre>
<pre style="color: red">Not supported </pre>
Without a hardware video decoder this is a bad choice for using with Cosmostreamer.
Without a hardware H264 video decoder this is a bad choice for using with Cosmostreamer.
<br><br>
 
===Raspberry Pi Zero/ZeroW===
<pre style="color: red">Not supported due too slow single-core CPU</pre>
<br>
 
===Raspberry Pi Zero2W===
<pre style="color: red">Not tested but should work</pre>
* Mini-HDMI port
* Wi-Fi 2.4GHz/5GHz
<br>
 
===Raspberry Pi 3B/3B+===
<pre style="color: red">Not supported due USB incompatibility</pre>
<br><br><br>
 
==Installing the Cosmostreamer firmware==
# Get a blank microSD card of 8GB or larger. Insert the microSD card into the card reader
# Download [https://cosmostreamer.com/apps/cosmostreamer-ng/download/cosmostreamer-ng.sdcard.zip ZIP-archive] with firmware content
# Extract .img file from downloaded ZIP archive
# Use [https://cosmostreamer.com/dl/win32diskimager-1.0.0-install.exe Win32DiskImager] on Windows or [https://www.balena.io/etcher/ Balena Etcher] on Mac and write .img file on microSD card
# Insert the microSD card into the Raspberry Pi
# If you have a monitor or a TV with HDMI input - plug it to the Raspberry Pi 4B HDMI-0 port (nearest to USB-C port)
# Plug a standard USB power supply or powerbank to the Raspberry Pi. Raspberry Pi must start booting. A couple of reboots may be during the first boot process. This is just for initial Cosmostreamer's set up. For the normal Raspberry Pi power when DJI SDR is connected use a power scheme from the chapter [[#Power_for_Raspberry_Pi| Power for Raspberry Pi]]).
<br><br><br>
 
==Power for Raspberry Pi==
For using Raspberry Pi 4 with DJI SDR it must be powered via GPIO or from PoE.
<br><br><br>
 
===Power with GPIO (pins)===
Use any USB cable, need to cut it and connect to the RPI only 2 wires - Red (5V) and Black (Gnd). Then you can use it with any standard USB-A (bug USB port) power supply or powerbank.<br>
[https://cosmostreamer.com/img/rpi-gpio-pwr.jpg https://cosmostreamer.com/img/rpi-gpio-pwr.jpg]
<br><br><br>
 
===Power with PoE===
Need to use [https://www.raspberrypi.org/products/poe-hat/ PoE Hat] or [https://www.raspberrypi.com/products/poe-plus-hat/ PoE+ Hat]<br><br>
[https://cosmostreamer.com/img/poeplushat.jpg https://cosmostreamer.com/img/poeplushat.jpg]
<br><br><br>
 
==Network connection==
 
===Ethernet===
Only for Raspberry Pi versions with Ethernet port. Connect Ethernet cable to the Raspberry Pi Ethernet port at one side and home router or PC/Mac Ethernet port on another side
<br><br><br>
 
===Wi-Fi===
Connect your PC/Mac or smartphone to Wi-Fi network '''cosmostreamer''', password '''1234512345'''
<br><br><br>
 
==Settings and controls==
===Browser In Wi-Fi Access Point mode===
Also you could open Cosmostreamer web admin page in browser<br>
 
[http://192.168.50.1 http://192.168.50.1]<br>
[http://my.cosmostreamer.com http://my.cosmostreamer.com]<br>
 
Then click "Device settings" in menu shown by click on Menu icon in right bottom corner.
 
===Browser in WLAN client mode===
Open in browser [http://cosmostreamer.local http://cosmostreamer.local]<br>
This is dynamical host name so may not work properly if multiple Cosmostreamer devices in the same network or IP changes.
 
Then click "Device settings" in menu shown by click on Menu icon in right bottom corner.
 
<br><br><br>
 
===Windows application===
Download, install and run [https://cosmostreamer.com/apps/cosmoviewer-ng/#download CosmoViewerNG application].
<br><br><br>
 
===Mac application===
Download, install and run [https://cosmostreamer.com/apps/cosmoviewer-ng-mac/#download CosmoViewerNG application].
<br><br><br>
 
==Firmware update==
#Run CosmoViewerNG for Win or for Mac or open web page and then open device settings, chapter "System"
#Download the [https://cosmostreamer.com/apps/cosmostreamer-ng/download/cosmostreamer-ng.csuf Latest firmware update file]
#Choose downloaded update file (with .csuf extension) in "Firmware update" field and press "Upload file" button
#Raspberry Pi must goes to reboot automatically after update installed
<br><br><br>
 
==Changing camera type==
In Cosmostreamer system terminology, a camera is any device that Cosmostreamer can work with. DJI Pocket, DJI Osmo, Goggles - this all a "camera".<br>
MicroSD image with Cosmostreamer configured for "DJI Goggles2/3/Integra/N3" by default, so need to change it to type #31 "DJI SDR":
#Open device settings in CosmoViewerNG application or in web interface
#Go to chapter "Info"
#Choose camera type "DJI SDR (type #31)"
#Disable option "Allow auto detection" if enabled
#Don't forget to click "Save" button.
<br><br><br>
 
==License key==
License key is a text string, unique for each Raspberry Pi. Each camera type needs different license keys. It's possible to install multiple amount of license keys on one device and use this device for some camera types, i.e. Pocket Osmo, Pocket 2, and others. Need to buy license for correct operation process.<br>
#Buy license key on a [https://cosmostreamer.com/products/djisdr/ product page]
#Make a photo of HDMI display or screenshot of the app with a QR image and send it in email on [mailto:cosmostreamer@gmail.com cosmostreamer@gmail.com] for making a license key
#When you got a license key - use web interface or CosmoViewerNG application, menu "device settings" -> "License" and insert license key into field. And click "Install license" button.
<br><br><br>
 
==DJI SDR RX connection==
<br>
 
===Standard USB-C to USB-C cable===
<pre style="color: red">Not supported!</pre>
 
===Custom USB-C to USB-C cable===
Need to use a standard USB-C to USB-C cable but with a cutted power wire (or wires) inside the cable.
<pre style="color: red">Red wire (5V) must be cutted for using with the DJI SDR RX</pre>
<br>
[https://cosmostreamer.com/img/usb-c-custom-cable.png https://cosmostreamer.com/img/usb-c-custom-cable.png]<br>
<br>
One side - to the Raspberry Pi 4 USB-C port. Another side - into DJI SDR RX (receiver unit) "Firmware Update and Video Output Port".
<br>
[https://cosmostreamer.com/img/djisdr-rpi4-usb-connection.jpg https://cosmostreamer.com/img/djisdr-rpi4-usb-connection.jpg]<br>
 
<br><br><br>
 
==DJI SDR TX connection==
<br>
 
===Without or with only one focus motor===
This is an official DJI connection scheme. Use the camera control cable (USB-C 30cm or any other USB-C to USB-C cable) to connect the video transmission/LiDAR range finder port on the gimbal to the USB-C power and gimbal communication port on the DJI SDR TX (transmitter). This setup allows the gimbal to power the transmitter.<br>
 
If you want to use a focus motor - use another USB-C to USB-C cable and connect it to the "In" USB-C port on the motor and to the "Focus Motor Port (USB-C)" on the gimbal.<br>
 
Motor can be ONLY in "Focus" mode to be possible to control it from Cosmostreamer!
<br>
[https://cosmostreamer.com/img/djisdr-tx-rs4.jpg https://cosmostreamer.com/img/djisdr-tx-rs4.jpg]<br>
 
[https://cosmostreamer.com/img/djisdr-rs4-one-motor.jpg https://cosmostreamer.com/img/djisdr-rs4-one-motor-small.jpg]<br>
 
<br>
 
===With two motors===
<pre style="color:green">Two motors officially supported only by DJI RS4 Pro. But with a connection trick RS4 (not Pro) also works with the two motors perfectly.</pre>
To control two motors (e.g., focus and zoom, or focus and IRIS), a special connection trick is required.<br>
 
Firtst motor - as usual, connect to the "Focus Motor Port (USB-C)" on the gimbal. This motor can be ONLY in "Focus" mode!<br>
 
Connect a second motor's "In" USB-C port to the video transmission/LiDAR range finder port on the gimbal. Then connect this motor's "Out" USB-C port to the gimbal communication port on the DJI SDR TX (transmitter). I.e. DJI SDR TX will be connected only to the this motor. This motor can be in any mode (Focus, Zoom, IRIS)<br>
<br>
 
[https://cosmostreamer.com/img/dsjisdr-rs4-2motors-scheme.jpg https://cosmostreamer.com/img/dsjisdr-rs4-2motors-scheme.jpg]<br>
<br>
[https://cosmostreamer.com/img/djisdr-rs4-two-motors.jpg https://cosmostreamer.com/img/djisdr-rs4-two-motors-small.jpg]<br>
 
 
<br><br>
<br><br>
===With three motors===
<pre style="color:green">Three motors officially supported only by DJI RS4 Pro. But with a connection trick RS4 (not Pro) also should work with the three motors.</pre>
To control three motors (e.g., focus, zoom and IRIS), a special connection trick is required.<br>
First motor - as usual, connect to the "Focus Motor Port (USB-C)" on the gimbal. This motor can be ONLY in "Focus" mode!<br>
Connect a second motor's "In" USB-C port to the video transmission/LiDAR range finder port on the gimbal. Then connect this motor's "Out" USB-C port to the third motor's "In" USB-C port. And "Out" USB-C port on this motor - to gimbal communication port on the DJI SDR TX (transmitter). These motors can be in any mode (Focus, Zoom, IRIS)<br>
<br>
[https://cosmostreamer.com/img/dsjisdr-rs4-3motors-scheme.jpg https://cosmostreamer.com/img/dsjisdr-rs4-3motors-scheme.jpg]<br>
<br>
[https://cosmostreamer.com/img/djisdr-rs4-three-motors.jpg https://cosmostreamer.com/img/djisdr-rs4-three-motors-small.jpg]<br>
<pre style="color:green">Focus motor is not shown on this photo</pre>
<br><br><br>
==Downloads==
*[https://cosmostreamer.com/apps/cosmostreamer-ng/download/cosmostreamer-ng.sdcard.zip Full microSD image with firmware]<br>
*[https://cosmostreamer.com/apps/cosmostreamer-ng/download/cosmostreamer-ng.csuf Latest firmware update file]<br>
*[https://cosmostreamer.com/apps/cosmostreamer-ng/download/changelog.txt Changelog file]<br>
*[https://cosmostreamer.com/apps/cosmostreamer-ng/download/ All files]<br>
*[https://dl.djicdn.com/downloads/DJI_SDR_Transmission/20240717/UG2/DJI__SDR_Transmission_User_Guide_v1.0_EN.pdf Official DJI SDR User Guide]
*[https://dl.djicdn.com/downloads/DJI_RS_4/UM20240408/DJI_RS_4_User_Manual_v1.0_en.pdf Official DJI RS4/RS4 Pro User Manual]
*[https://dl.djicdn.com/downloads/DJI_Focus_Pro/DJI_Focus_Pro_User_Manual_en.pdf DJI Focus Pro User Manual]
<br><br><br>
==FAQ==
<br>
===What gimbals are supported?===
All DJI gimbals which are officially supported buy DJI SDR should work. Tested with DJI RS4 and DJI RS4 Pro.
<br>
===Can I control a focus motor?===
Yes. With a standard USB cables connection from DJI focus motor to RS4 or another DJI Gimbal focus motor works fine.
<br>
===Can I control additional motors (zoom, IRIS)?===
Yes, but need to use a non-standard connection scheme. Read here please: [[#With_two_motors]]
<br>

Latest revision as of 15:45, 18 June 2025

Product page

https://cosmostreamer.com/products/djisdr/


Video reviews

No reviewes yet.


Supported Gimbals

All DJI gimbals which officially supported by DJI SDR. Tested with DJI RS4 and DJI RS4 Pro.


Hardware

Cosmostreamer for DJI SDR can work on these boards:


Raspberry Pi 4B

Any RAM size. 1Gb, 2Gb, 4Gb, 8Gb.

  • Two micro-HDMI outs
  • Analog video out (CVBS, TV-out) in 3.5 mini-jack
  • DSI display may be used. If DSI display connected - only HDMI-0 may be used.
  • Wi-Fi 2.4/5 GHz
  • Ethernet 10/100/1000 Mbit/s
  • 2 USB 2.0 ports + 2 USB 3.0 ports
  • 1 USB-C port (used for DJI SDR connection)


Raspberry Pi 5

Not supported 

Without a hardware H264 video decoder this is a bad choice for using with Cosmostreamer.

Raspberry Pi Zero/ZeroW

Not supported due too slow single-core CPU


Raspberry Pi Zero2W

Not tested but should work
  • Mini-HDMI port
  • Wi-Fi 2.4GHz/5GHz


Raspberry Pi 3B/3B+

Not supported due USB incompatibility




Installing the Cosmostreamer firmware

  1. Get a blank microSD card of 8GB or larger. Insert the microSD card into the card reader
  2. Download ZIP-archive with firmware content
  3. Extract .img file from downloaded ZIP archive
  4. Use Win32DiskImager on Windows or Balena Etcher on Mac and write .img file on microSD card
  5. Insert the microSD card into the Raspberry Pi
  6. If you have a monitor or a TV with HDMI input - plug it to the Raspberry Pi 4B HDMI-0 port (nearest to USB-C port)
  7. Plug a standard USB power supply or powerbank to the Raspberry Pi. Raspberry Pi must start booting. A couple of reboots may be during the first boot process. This is just for initial Cosmostreamer's set up. For the normal Raspberry Pi power when DJI SDR is connected use a power scheme from the chapter Power for Raspberry Pi).




Power for Raspberry Pi

For using Raspberry Pi 4 with DJI SDR it must be powered via GPIO or from PoE.


Power with GPIO (pins)

Use any USB cable, need to cut it and connect to the RPI only 2 wires - Red (5V) and Black (Gnd). Then you can use it with any standard USB-A (bug USB port) power supply or powerbank.
rpi-gpio-pwr.jpg


Power with PoE

Need to use PoE Hat or PoE+ Hat

poeplushat.jpg


Network connection

Ethernet

Only for Raspberry Pi versions with Ethernet port. Connect Ethernet cable to the Raspberry Pi Ethernet port at one side and home router or PC/Mac Ethernet port on another side


Wi-Fi

Connect your PC/Mac or smartphone to Wi-Fi network cosmostreamer, password 1234512345


Settings and controls

Browser In Wi-Fi Access Point mode

Also you could open Cosmostreamer web admin page in browser

http://192.168.50.1
http://my.cosmostreamer.com

Then click "Device settings" in menu shown by click on Menu icon in right bottom corner.

Browser in WLAN client mode

Open in browser http://cosmostreamer.local
This is dynamical host name so may not work properly if multiple Cosmostreamer devices in the same network or IP changes.

Then click "Device settings" in menu shown by click on Menu icon in right bottom corner.




Windows application

Download, install and run CosmoViewerNG application.


Mac application

Download, install and run CosmoViewerNG application.


Firmware update

  1. Run CosmoViewerNG for Win or for Mac or open web page and then open device settings, chapter "System"
  2. Download the Latest firmware update file
  3. Choose downloaded update file (with .csuf extension) in "Firmware update" field and press "Upload file" button
  4. Raspberry Pi must goes to reboot automatically after update installed




Changing camera type

In Cosmostreamer system terminology, a camera is any device that Cosmostreamer can work with. DJI Pocket, DJI Osmo, Goggles - this all a "camera".
MicroSD image with Cosmostreamer configured for "DJI Goggles2/3/Integra/N3" by default, so need to change it to type #31 "DJI SDR":

  1. Open device settings in CosmoViewerNG application or in web interface
  2. Go to chapter "Info"
  3. Choose camera type "DJI SDR (type #31)"
  4. Disable option "Allow auto detection" if enabled
  5. Don't forget to click "Save" button.




License key

License key is a text string, unique for each Raspberry Pi. Each camera type needs different license keys. It's possible to install multiple amount of license keys on one device and use this device for some camera types, i.e. Pocket Osmo, Pocket 2, and others. Need to buy license for correct operation process.

  1. Buy license key on a product page
  2. Make a photo of HDMI display or screenshot of the app with a QR image and send it in email on cosmostreamer@gmail.com for making a license key
  3. When you got a license key - use web interface or CosmoViewerNG application, menu "device settings" -> "License" and insert license key into field. And click "Install license" button.




DJI SDR RX connection


Standard USB-C to USB-C cable

Not supported!

Custom USB-C to USB-C cable

Need to use a standard USB-C to USB-C cable but with a cutted power wire (or wires) inside the cable.

Red wire (5V) must be cutted for using with the DJI SDR RX


usb-c-custom-cable.png

One side - to the Raspberry Pi 4 USB-C port. Another side - into DJI SDR RX (receiver unit) "Firmware Update and Video Output Port".
djisdr-rpi4-usb-connection.jpg




DJI SDR TX connection


Without or with only one focus motor

This is an official DJI connection scheme. Use the camera control cable (USB-C 30cm or any other USB-C to USB-C cable) to connect the video transmission/LiDAR range finder port on the gimbal to the USB-C power and gimbal communication port on the DJI SDR TX (transmitter). This setup allows the gimbal to power the transmitter.

If you want to use a focus motor - use another USB-C to USB-C cable and connect it to the "In" USB-C port on the motor and to the "Focus Motor Port (USB-C)" on the gimbal.

Motor can be ONLY in "Focus" mode to be possible to control it from Cosmostreamer!
djisdr-tx-rs4.jpg

djisdr-rs4-one-motor-small.jpg


With two motors

Two motors officially supported only by DJI RS4 Pro. But with a connection trick RS4 (not Pro) also works with the two motors perfectly.

To control two motors (e.g., focus and zoom, or focus and IRIS), a special connection trick is required.

Firtst motor - as usual, connect to the "Focus Motor Port (USB-C)" on the gimbal. This motor can be ONLY in "Focus" mode!

Connect a second motor's "In" USB-C port to the video transmission/LiDAR range finder port on the gimbal. Then connect this motor's "Out" USB-C port to the gimbal communication port on the DJI SDR TX (transmitter). I.e. DJI SDR TX will be connected only to the this motor. This motor can be in any mode (Focus, Zoom, IRIS)

dsjisdr-rs4-2motors-scheme.jpg

djisdr-rs4-two-motors-small.jpg




With three motors

Three motors officially supported only by DJI RS4 Pro. But with a connection trick RS4 (not Pro) also should work with the three motors.

To control three motors (e.g., focus, zoom and IRIS), a special connection trick is required.

First motor - as usual, connect to the "Focus Motor Port (USB-C)" on the gimbal. This motor can be ONLY in "Focus" mode!

Connect a second motor's "In" USB-C port to the video transmission/LiDAR range finder port on the gimbal. Then connect this motor's "Out" USB-C port to the third motor's "In" USB-C port. And "Out" USB-C port on this motor - to gimbal communication port on the DJI SDR TX (transmitter). These motors can be in any mode (Focus, Zoom, IRIS)

dsjisdr-rs4-3motors-scheme.jpg

djisdr-rs4-three-motors-small.jpg

Focus motor is not shown on this photo





Downloads




FAQ


What gimbals are supported?

All DJI gimbals which are officially supported buy DJI SDR should work. Tested with DJI RS4 and DJI RS4 Pro.

Can I control a focus motor?

Yes. With a standard USB cables connection from DJI focus motor to RS4 or another DJI Gimbal focus motor works fine.

Can I control additional motors (zoom, IRIS)?

Yes, but need to use a non-standard connection scheme. Read here please: #With_two_motors