shaji
lvl.2
Spain
Offline
|
That's what my app does, I have all the proper broadcast receivers for the USB Devices and USB Accessory Attach/Detach actions.
With or without DJI stuff connected, everything else on the hub is detected as normal, the monitor, keyboard, mouse, joystick, gamepad... Except the DJI controller. Unless I connect the DJI controller directly to the phone without any hub nor other peripherals.
Yes, I've looked into AOA thoroughly in the official pages and it doesn't seem to be a coding issue.
Attached are two pictures:
- Direct connection: USB C to USB C directly to the phone, works as intended, I get the dialog to give permission to the app to use the AOA, no issues, tested with all Android devices and the 3 different DJI controllers I have and the same USB C cables.
- Through a USB Hub: Doesn't detect the AOA, no dialog popups, the Android device doesn't receive the brodcast action in the BroadcastReceiver for the USB Accessory Attached (UsbManager.ACTION_USB_ACCESSORY_ATTACHED), the action is received with direct connection with no issues.
I even tested with a high-end Thunderbolt 4 USB C hub that supports displays and peripherials through its USB C ports. Here's a link to the device (https://www.amazon.es/gp/product/B0B6GDSPB8).
As I mentioned, all other peripheralswork with no issues, even the Gamepad receives all the events and the monitor displays as expected through all the USB hubs I tested on.
The DJI AOA is simply not being detected though a USB hub.
|
-
Direct USB C connection
-
Thorugh USB Hub
|