A aeropic Active Member Licensed User Longtime User Apr 18, 2021 #1 Hi all, I'm still fighting with my connection problem to the DJI SDK It systematically falls into an UNBOUND state and I found it fails just when the HOME is found. Just before it is UNBOUND the state it gets is "NOT REQUIRED" and it remains in "NOT REQUIRED" until the GPS has fixed. Flying in UNBOUND is possible but the drone is limited in range (~30m) So I tried to switch off the data just before the GPS is fixed and it seems to work fine. I wanted to switch into Plane OFF mode but this seems being impossible with most recent ANDROID. Hence my question, is there a way to block the connection to DJI servers by software or to kill something to forbid it goes on trying to connect when the "NOT REQUIRED" state is reached ? ** Activity (main) Resume ** Registered successfully! activation state: UNKNOWN binding state: UNKNOWN ** Activity (main) Pause, UserClosed = false ** ** Activity (main) Resume ** Registered successfully! activation state: UNKNOWN binding state: UNKNOWN onComponentChange: REMOTE_CONTROLLER Product connected onProductChanged: WM160 SDK_BindingStateChanged: UNKNOWN Aircraft disconnected! onComponentChange: CAMERA onComponentChange: GIMBAL onComponentChange: FLIGHT_CONTROLLER onComponentChange: BATTERY onComponentChange: AIR_LINK Activation state changed: ACTIVATED SDK_BindingStateChanged: NOT_REQUIRED AfterAircraftConnected simulator: false *** Service (remote) Create *** ** Service (remote) Start ** SDK_BindingStateChanged: NOT_REQUIRED AfterAircraftConnected simulator: false ** Service (remote) Start ** MAVIC_MINI MAVIC_MINI home set SDK_BindingStateChanged: NOT_REQUIRED <<<<<<<<<<<<<<<<<<<< HERE GPS is not fixed AfterAircraftConnected <<<<<<<<<<<<<<<<<<<<<<<<<<<< I would want to stop here ;-) simulator: false ** Service (remote) Start ** SDK_BindingStateChanged: UNBOUND <<<<<<<<<<<<<<<<<<<<<<<<<<< HERE HOME POINT is set Aircraft disconnected! MAVIC_MINI ** Activity (main) Pause, UserClosed = false ** ** Service (remote) Destroy **
Hi all, I'm still fighting with my connection problem to the DJI SDK It systematically falls into an UNBOUND state and I found it fails just when the HOME is found. Just before it is UNBOUND the state it gets is "NOT REQUIRED" and it remains in "NOT REQUIRED" until the GPS has fixed. Flying in UNBOUND is possible but the drone is limited in range (~30m) So I tried to switch off the data just before the GPS is fixed and it seems to work fine. I wanted to switch into Plane OFF mode but this seems being impossible with most recent ANDROID. Hence my question, is there a way to block the connection to DJI servers by software or to kill something to forbid it goes on trying to connect when the "NOT REQUIRED" state is reached ? ** Activity (main) Resume ** Registered successfully! activation state: UNKNOWN binding state: UNKNOWN ** Activity (main) Pause, UserClosed = false ** ** Activity (main) Resume ** Registered successfully! activation state: UNKNOWN binding state: UNKNOWN onComponentChange: REMOTE_CONTROLLER Product connected onProductChanged: WM160 SDK_BindingStateChanged: UNKNOWN Aircraft disconnected! onComponentChange: CAMERA onComponentChange: GIMBAL onComponentChange: FLIGHT_CONTROLLER onComponentChange: BATTERY onComponentChange: AIR_LINK Activation state changed: ACTIVATED SDK_BindingStateChanged: NOT_REQUIRED AfterAircraftConnected simulator: false *** Service (remote) Create *** ** Service (remote) Start ** SDK_BindingStateChanged: NOT_REQUIRED AfterAircraftConnected simulator: false ** Service (remote) Start ** MAVIC_MINI MAVIC_MINI home set SDK_BindingStateChanged: NOT_REQUIRED <<<<<<<<<<<<<<<<<<<< HERE GPS is not fixed AfterAircraftConnected <<<<<<<<<<<<<<<<<<<<<<<<<<<< I would want to stop here ;-) simulator: false ** Service (remote) Start ** SDK_BindingStateChanged: UNBOUND <<<<<<<<<<<<<<<<<<<<<<<<<<< HERE HOME POINT is set Aircraft disconnected! MAVIC_MINI ** Activity (main) Pause, UserClosed = false ** ** Service (remote) Destroy **
Solution schimanski Apr 1, 2022 I want to give a short feedback of my tests: Everything works perfect. As Erel said, the binding-problem belongs to the past. Much thanks for the new DJI-lib combined with the new b4a-version.?
I want to give a short feedback of my tests: Everything works perfect. As Erel said, the binding-problem belongs to the past. Much thanks for the new DJI-lib combined with the new b4a-version.?
schimanski Well-Known Member Licensed User Longtime User Oct 18, 2021 #61 Oh, sorry. Just seen...Ich make the test tomorrow and call the result... Upvote 0
schimanski Well-Known Member Licensed User Longtime User Oct 19, 2021 #62 I have tested it as you said with targetSdkVersion to 21. But it was not possible to get a normal state. I changed between UNBOUND and UNBOUND_BUT_CANNOT_SYNC with an max. altitude of 30m. I have also tested it with my own application to check it with a login of a dji-account, but the same result. Attachments IMG_2034.jpg 167 KB · Views: 656 IMG_2036.jpg 178.7 KB · Views: 597 Upvote 0
I have tested it as you said with targetSdkVersion to 21. But it was not possible to get a normal state. I changed between UNBOUND and UNBOUND_BUT_CANNOT_SYNC with an max. altitude of 30m. I have also tested it with my own application to check it with a login of a dji-account, but the same result.
schimanski Well-Known Member Licensed User Longtime User Jan 1, 2022 #63 With date of yesterday, the new Mobile SDK 4.16 is online: https://github.com/dji-sdk/Mobile-SDK-Android It would have to support the Air 2 and Mini 2... Happy new year!!!! Upvote 0
With date of yesterday, the new Mobile SDK 4.16 is online: https://github.com/dji-sdk/Mobile-SDK-Android It would have to support the Air 2 and Mini 2... Happy new year!!!!
P prajinpraveen Active Member Licensed User Longtime User Jan 11, 2022 #64 Happy New Year. I was(am) excited about this project and bought a Mavic mini 2. Followed the steps as per Erel's post. I get the AfterAircraftConnected Camera / battery not ready (CameraReady false and BatteryReady false) Attachments error.txt error.txt 231.9 KB · Views: 597 Last edited: Jan 11, 2022 Upvote 0
Happy New Year. I was(am) excited about this project and bought a Mavic mini 2. Followed the steps as per Erel's post. I get the AfterAircraftConnected Camera / battery not ready (CameraReady false and BatteryReady false)
Erel B4X founder Staff member Licensed User Longtime User Jan 12, 2022 #65 Please start a new thread for this. Upvote 0
P prajinpraveen Active Member Licensed User Longtime User Jan 12, 2022 #66 Thanks Erel. I have created a new thread for this https://www.b4x.com/android/forum/threads/dji-binding-process-camera-battery-not-ready.137558/ Upvote 0
Thanks Erel. I have created a new thread for this https://www.b4x.com/android/forum/threads/dji-binding-process-camera-battery-not-ready.137558/
schimanski Well-Known Member Licensed User Longtime User Apr 1, 2022 #67 I want to give a short feedback of my tests: Everything works perfect. As Erel said, the binding-problem belongs to the past. Much thanks for the new DJI-lib combined with the new b4a-version.? Upvote 1 Solution
I want to give a short feedback of my tests: Everything works perfect. As Erel said, the binding-problem belongs to the past. Much thanks for the new DJI-lib combined with the new b4a-version.?