New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Video streaming to onboard computer & to ground server #161
Comments
@hnqiu are you saying you need to stream video to the controller after it has been processed by the Jetson? If so then I have done something similar and can give some pointers. If you just need to send the H20T video to a ground server then I think you can just pull it from the HDMI port on the controller when the H20T is selected, while pulling the same stream to the Jetson via the E-port. |
Agent comment from Leon in Zendesk ticket #106946: Greetings. Thank you for reaching out to DJI Innovations. If you wish to utilize all the functions supported by PSDK, you will need the E-Port Development Kit and the SkyportV2 Adapter Ring Kit + Payload SDK 2.0 Development Kit to connect to the drone's E-Port and Payload Port respectively. It is important to note that you still cannot run all functions simultaneously in the same PSDK program. For instance, if you intend to use a feature supported only by the PSDK port, even if you have connected the hardware to the Payload Port, you will not be able to use this feature on the PSDK running on the E-Port. You will need to run two PSDK programs on the onboard computer, each supporting independent functions, one corresponding to the E-Port and the other to the Payload Port. Should you wish to transmit H20T data to a ground server, your requirement will necessitate secondary development based on the onboard computer. You can run PSDK on the E-Port to access the H20T video stream data through PSDK interfaces, then proceed with encoding and transmission. The general process is as follows: H20T -> Payload Port -> M350 -> Onboard Computer -> WiFi -> Ground Server. We appreciate your support for DJI products! Wishing you every success! Best Regards, DJI Innovations SDK Technical Support °°° |
Thanks a lot @uzgit. Yeah that would be great if you could share some suggestions. |
Thank you @dji-dev.
Should/Can we synchronise the two instances in this case?
Is there any limitation when we use the onboard computer to stream processed videos? I understand the camera liveview functionality can only get 1080p even when H20T is capable of recording higher res videos - is this correct? |
@hnqiu so I have done something very similar to what Leon (@dji-dev) has suggested. Very nice of him to lay it out like that - could be good to provide a tutorial about these things on the PSDK site because it can be very confusing to develop this sort of use case. I will lay out my observations here so they can be open for others to use, or for DJI to tell everyone where I went wrong so others can have an easier time developing. I am using a Matrice 350 with Raspberry Pi 5 top-mounted for easy access to both the E-port and PSDK port. There's a couple of points that I would watch out for:
My end product looks like this (E-port plug on the starboard side, PSDK port plug on the port side): Hope this helps and maybe puts out some information for others who want to do this sort of thing. Some of this stuff was really a pain to figure out. |
Thanks a lot @uzgit! These are so informative and yeah it'd have taken a lot to figure out. As you suggested, we're thinking to use the psdk port application to stream videos only (and potentially do more processing on the ground server). It's good to know this is achievable while the e-port application can also do something else. Just wanted to confirm if my interpretation is correct cc: @dji-dev
The work @uzgit shared here is based on two applications, each connecting to e-port and psdk port respectively. |
Agent comment from Leon in Zendesk ticket #106946: Greetings. We appreciate your contact with DJI - Da-Jiang Innovations. Thank you for your patience. If you are running the PSDK program on the E-Port, the correct process is as follows: H20T -> Payload Port -> M350 -> Vehicle-mounted computer on the E-Port (running PSDK) -> WiFi -> Ground server. You only need to run the PSDK program on the E-Port, there is no need to run it on the Payload Port. Thank you for your support of DJI products! We wish you all the best! Best Regards, DJI - Da-Jiang Innovations SDK Technical Support °°° |
Awesome. Thanks both! |
Agent comment from Leon in Zendesk ticket #106946: Greetings! We appreciate your contact with DJI - Da-Jiang Innovations. You're welcome. If you have no further inquiries, please feel free to close this ticket. Should you encounter any SDK-related issues in the future, please don't hesitate to consult us again. Thank you once more for reaching out to us. Thank you for your support of DJI products! Wishing you all the best! Best Regards, DJI - Da-Jiang Innovations SDK Technical Support °°° |
Thank you @dji-dev. Closing this issue now. |
Hi @dji-dev,
We are planning to build applications using M350 RTK with onboard computer and I was reading this page https://developer.dji.com/doc/payload-sdk-tutorial/en/model-instruction/choose-develop-platform.html
According to the first table, some functionalities (e.g. flight control) are only available via the e port while some others (e.g. basic camera function, camera video stream) are available via the psdk port. So if I want all of these functionalities, how should I connect the onboard computer? Does the computer need two cables (e port development kit & psdk development kit) connected to the drone?
Specifically, we would like to stream payload (H20T) videos to a ground server. How does the dataflow look like in this case? Is it like
Is the video 1080p only or can be higher resolution?
Also, can we stream videos from multiple sources (e.g. H20T camera and FPV camera) at the same time?
Another question related to the onboard computer - my understanding is the computer can only get 1080p frames via the camera liveview interface. However, is there a way for the onboard computer to read higher resolution images from the SD card on H20T?
Thanks a lot
The text was updated successfully, but these errors were encountered: