I've been playing around with the DJI Assistant 2 with the Mini and figured out how to enable the developer tools back. I wasn't able to do much with them but maybe someone can figure out how to write the config params like in the other Mavics?
Assistant still is an Electron based application but now everything is "compiled" into an asar file. So first you need to decompile it with:
npx asar extract app.asar app
Then you'll have to edit two lines in main.js
var debug = false
Change it to true.
And uncomment the developer tools line:
mainWindow.webContents.openDevTools()
If you compile this folder into an asar, replace the original asar file and run Assistant , you'll see a new button onthe top left corner that says "Developer tools":
If you click it and open electron's dev tools (CTRL SHIFT I if im not mistaken) you'll see it's trying to find the file "tools.html". It's is not packaged anymore with Assistant. But you can import it from Assistant 1.1.2! Google it, unpack the asar and import the following files:
Code:./build/base.css ./build/a3.css ./build/tools.css ./build/locale.js ./build/utils.js ./build/ws.js ./build/dass.js ./build/ tools.js [/ CODE] Certains fichiers peuvent déjà exister dans votre nouveau fichier asar, ne les remplacez pas. Une fois que vous avez ajouté ces fichiers, reconditionnez le dossier avec [ICODE] pack asar ./app app-tools-hack.asar [/ ICODE] Remplacez le dossier asar d'origine, démarrez l'assistant, branchez votre mini et cliquez sur les outils de développement. Vous verrez quelque chose comme ça: [IMG]https://i.imgur.com/Bj0tXf8.png[/IMG] Cliquez sur connexion ouverte et envoyez cette charge utile: {"SEQ": "123456", "CMD": "} Vous récupérerez une chaîne base64 qui semble être cryptée. Points à considérer: 1) Comment décrypter ce que l'assistant renvoie 2) Pouvons-nous envoyer des paramètres et écrire sur le mini? 3) Pouvons-nous activer / désactiver des choses sympas? J'espère que quelqu'un plus intelligent que moi pourra comprendre cela. Faites-moi savoir si quelque chose n'est pas clair pour vous. [/CITATION] [QUOTE="mightypilot2000, post: 873621, member: 51296"] I've been playing around with the DJI Assistant 2 with the Mini and figured out how to enable the developer tools back. I wasn't able to do much with them but maybe someone can figure out how to write the config params like in the other Mavics? Assistant still is an Electron based application but now everything is "compiled" into an asar file. So first you need to decompile it with: [ICODE]npx asar extract app.asar app[/ICODE] Then you'll have to edit two lines in main.js [ICODE]var debug = false[/ICODE] Change it to true. And uncomment the developer tools line: [ICODE]mainWindow.webContents.openDevTools()[/ICODE] Si vous compilez ce dossier dans un asar, remplacez le fichier asar d'origine et exécutez Assistant, vous verrez un nouveau bouton dans le coin supérieur gauche qui dit "Outils de développement": [IMG]https://i.imgur.com/2cXUe0Y.png[/IMG] Si vous cliquez dessus et ouvrez les outils de développement d'électrons (CTRL SHIFT I si je ne me trompe pas), vous verrez qu'il essaie de trouver le fichier "tools.html". Il n'est plus emballé avec Assistant. Mais vous pouvez l'importer depuis l'Assistant 1.1.2! Google it, décompressez l'asar et importez les fichiers suivants: [CODE] ./ build / base.css ./build/a3.css ./build/tools.css ./build/locale.js ./build/utils.js ./build/ws.js ./build/dass.js ./build/tools.js
Certains fichiers peuvent déjà exister dans votre nouveau fichier asar, ne les remplacez pas. Une fois que vous avez ajouté ces fichiers, reconditionnez le dossier avec
pack asar ./app app-tools-hack.asar [/ ICODE] Remplacez le dossier asar d'origine, démarrez l'assistant, branchez votre mini et cliquez sur les outils de développement. Vous verrez quelque chose comme ça: [IMG]https://i.imgur.com/Bj0tXf8.png[/IMG] Cliquez sur connexion ouverte et envoyez cette charge utile: {"SEQ": "123456", "CMD": "} Vous récupérerez une chaîne base64 qui semble être cryptée. Points à considérer: 1) Comment décrypter ce que l'assistant renvoie 2) Pouvons-nous envoyer des paramètres et écrire sur le mini? 3) Pouvons-nous activer / désactiver des choses sympas? J'espère que quelqu'un plus intelligent que moi pourra comprendre cela. Faites-moi savoir si quelque chose n'est pas clair pour vous. [/CITATION]
Here's the hacked asar file if someone wants to try it out Firefox Send
Any chance of using this to increase the RTH speed? I would like to have it come back in S-mode if possible.
help me pls. i cant have debug mode
You can also activate debug mode on older version of DJI Assistanthelp me pls. i cant have debug mode
You can also activate debug mode on older version of DJI Assistant
Enable ATTI Mode in Mavic 2 with DJI Assistant 1.1.2
ATTI Mode is required to pass a flight exam for commercial drone licenses or simply if you want to become a better drone pilot. By default, Mavic 2 doesn't offer an option to switch to DJI Attitude mode but with a simple fix, we can enable Mavic 2 Atti Mode (works on both Pro and Zoom edition).kubadownload.com
The tool mentioned by edyno is better and more advanced. If you can't understand how to use it is probably better if you don't try to modify the drone settings.
Hello, I'm trying to get parameters. I'm using this command: comm_og_service_tool.py COM9 WM160 FlycParam list --start=0 --count=1500 --fmt=csv. The problem is that for some parameters there is this written (example on line 640): Response on parameter 640 indicates end of list despite larger size reported.I managed (using python) to create a list of parameters.
(without warranty)
i tried changing a few things with notepad++ but had no luck plus i have no clue about asar files or how to change themI've been playing around with the DJI Assistant 2 with the Mini and figured out how to enable the developer tools back. I wasn't able to do much with them but maybe someone can figure out how to write the config params like in the other Mavics?
Assistant still is an Electron based application but now everything is "compiled" into an asar file. So first you need to decompile it with:
npx asar extract app.asar app
Then you'll have to edit two lines in main.js
var debug = false
Change it to true.
And uncomment the developer tools line:
mainWindow.webContents.openDevTools()
If you compile this folder into an asar, replace the original asar file and run Assistant , you'll see a new button onthe top left corner that says "Developer tools":
If you click it and open electron's dev tools (CTRL SHIFT I if im not mistaken) you'll see it's trying to find the file "tools.html". It's is not packaged anymore with Assistant. But you can import it from Assistant 1.1.2! Google it, unpack the asar and import the following files:
Code:./build/base.css ./build/a3.css ./build/tools.css ./build/locale.js ./build/utils.js ./build/ws.js ./build/dass.js ./build/tools.js
Some files might already exist in your newer asar file, don't replace them. Once you added those files, repackage the folder with
asar pack ./app app-tools-hack.asar
Replace the original asar folder, start assistant, plug your mini and click developer tools.
You'll see somehting like this:
Click on open connection and send this payload:
{“SEQ”:“123456”,“CMD”:“}
You'll get back a base64 string that seems to be encrypted.
Things to think about:
1) How to decrypt what assistant sends back
2) Can we send parameters and write to the mini?
3) Can we enable/disable cool things?
Hopefully someone smarter than me can figure this out. Let me know if something is not clear to you.
We use essential cookies to make this site work, and optional cookies to enhance your experience.