Hello Raspberry Pi community,
I'm working on a project where I need to connect a DJI RC-N2 remote controller (from a DJI Mini 2 drone) to my Raspberry Pi. The DJI remote acts as a USB host (Uses Android Accesory protocol https://developer.android.com/develop/c ... /accessory) , so I need to configure my Raspberry Pi as a USB slave (peripheral) device.
I've tried the following steps to put raspberry pi in OTG mode:
1. Modified /boot/config.txt to include: dtoverlay=dwc2,dr_mode=peripheral
2. Added modules-load=dwc2 to /boot/cmdline.txt
3. Rebooted the Pi
However, I'm still having trouble as I don't know how to read from the remote.
My questions are:
1. Is there anything else I need to do to properly configure the Pi as a USB slave device?
2. Once connected, how can I read the data being sent from the DJI remote to the Pi?
3. Are there any specific drivers or additional software I might need for this setup?
I'm aware of a project called Cosmostream that successfully connected a Raspberry Pi to the DJI remote via USB-C, and then to an Android phone, allowing it to grab images from the DJI Mini 2 on the Raspberry Pi. I've attempted to create a basic version of this setup, but I'm having difficulties getting the Raspberry Pi configured to read from the remote.
Any guidance or suggestions would be greatly appreciated, especially if anyone has experience with similar setups or the Cosmostream project. Thank you in advance for your help!
System info:
- Raspberry Pi model: Raspberry PI 4
- Raspberry Pi OS version: Latest
I'm working on a project where I need to connect a DJI RC-N2 remote controller (from a DJI Mini 2 drone) to my Raspberry Pi. The DJI remote acts as a USB host (Uses Android Accesory protocol https://developer.android.com/develop/c ... /accessory) , so I need to configure my Raspberry Pi as a USB slave (peripheral) device.
I've tried the following steps to put raspberry pi in OTG mode:
1. Modified /boot/config.txt to include: dtoverlay=dwc2,dr_mode=peripheral
2. Added modules-load=dwc2 to /boot/cmdline.txt
3. Rebooted the Pi
However, I'm still having trouble as I don't know how to read from the remote.
My questions are:
1. Is there anything else I need to do to properly configure the Pi as a USB slave device?
2. Once connected, how can I read the data being sent from the DJI remote to the Pi?
3. Are there any specific drivers or additional software I might need for this setup?
I'm aware of a project called Cosmostream that successfully connected a Raspberry Pi to the DJI remote via USB-C, and then to an Android phone, allowing it to grab images from the DJI Mini 2 on the Raspberry Pi. I've attempted to create a basic version of this setup, but I'm having difficulties getting the Raspberry Pi configured to read from the remote.
Any guidance or suggestions would be greatly appreciated, especially if anyone has experience with similar setups or the Cosmostream project. Thank you in advance for your help!
System info:
- Raspberry Pi model: Raspberry PI 4
- Raspberry Pi OS version: Latest
Statistics: Posted by runoplays — Fri Jul 12, 2024 1:44 pm