o-gs / dji-firmware-tools

Tools for handling firmwares of DJI products, with focus on quadcopters.
GNU General Public License v3.0
1.46k stars 405 forks source link

Changing tilt of aircraft #8

Open notsolowki opened 7 years ago

notsolowki commented 7 years ago

What is it going to take to achieve such a thing. im not sure that the mobile SDK will be able to accomplish this task. I'm sitting here looking at a binary with ida and have no clue what to do.

mefistotelis commented 7 years ago

Better go with the version for which the demo is prepared.

chazzzzz commented 7 years ago

Hey mefistotelis here's a list of the current output powers https://fccid.io/SS3

MrBurnsAT commented 7 years ago

"I'm now focusing on RC firmware, looking for the tx power control code.

Flight controller config would be nice to tweak, but I don't really need it."

I think we really need both!

Because there must be some fix Values in the Craft Firmware too.

I read the change log of developer firmwares. And there in 1.4.0001 and 1.4.0005 they wrote that they changed something that Users will Not be able to break the height Limit.

Look here http://download.dji-innovations.com/downloads/dev/MobileSDK/en/Release_note_Firmware_150925_en.pdf

ferraript commented 7 years ago

I did read that too, @MrBurnsAT, but, how is it then possible, that Litchi is able to break it with later published official 1.4.0010?

MrBurnsAT commented 7 years ago

I always only heared that it was possible with 1.4.0010 but never saw it live!

I think it was 1.4.0001 (Developer)

Because the Old Litchi Versions was only compatible with developer firmwares! Since 1.6.0040 there is no developer firmware anymore. Release Versions are Developer Versions too since that ;-)

MrBurnsAT commented 7 years ago

Could this maybe the reason why i cant get any Old Litchi Version running???

2.0.5 2.0.6 2.0.7 2.2.1 2.3.1

I can Start every Version but Every time, when i connect RC to my Tablet/Mobile, Litchi turns off.

Tried patching every Version with "lucky patcher" without success. Same as without patch

mefistotelis commented 7 years ago

Hey mefistotelis here's a list of the current output powers https://fccid.io/SS3

Hm, so in FCC zone P3P uses 520 mW? I was almost sure the rules allow up to 100 mW.. Also, something seem to be changing over time - in early 2015 the power was 746 mW. (which also means that power which is possible to enable is at least that high).

notsolowki commented 7 years ago

so what power level is it at right now by default

mefistotelis commented 7 years ago

After briefly looking at these docs, I don't feel confident about my conclusions. The power is clearly stated, but I'm not even sure if it's the power from aircraft side or handheld radio side.

It would probably require reading the attached PDFs to get clear conclusion.

notsolowki commented 7 years ago

how far away do you guys get with ce mode?

notsolowki commented 7 years ago

im ready to change the flight controller variables. there has to be some way of enforcing the parameters when the mobile app is not connected. maybe they are the other variables within the binary. im going to sit here with my fingers crossed and hope there will be further development to address this issue. thanks

chazzzzz commented 7 years ago

Mine for example

Aircraft= SS3-WM3231510 2015-11-06 Phantom 3 Professional Original Equipment 520mW

RC= SS3-GL3001510 2015-11-06 C1 Original Equipment 303mW

MrBurnsAT commented 7 years ago

I can fly Over 3km away with full Signal!

But ive self build patch antenna ;-) Got the same range with original Antennas and reflector

ferraript commented 7 years ago

Could this maybe the reason why i cant get any Old Litchi Version running???

@MrBurnsAT: this looks like the same issue like discussed here and that's the reason why I downgraded my RC's firmware on 1.5.7, my Litchi 2.3.1 had very similar problems and it couldn't basically connect to AC at all on 1.4.3, Litchi is finally working and I'm finally able to set maximum height to 6000m :) ( I have AC on FW 1.4.10)

MrBurnsAT commented 7 years ago

Thx !

I'll try that today!

notsolowki commented 7 years ago

why didn't you guys just use fw 1.7 to change the height. when i chagne my height limit i didnt even have to change it in the app. even tho the app said between 20 and 500, it still populated the app with the default value used in the fw, which could be 6000. keep in mind that if your caught going that high they will make an example out of you... so hopefully your only doing this next to a mountain side..

aka1ceman commented 7 years ago

I won't go to 1.7 until the Geo is removed. I don't want to have to authorize with DJI what I do.

aka1ceman commented 7 years ago

Ferraript to clarify... Rc= 1.4.1 Ac = 1.4.3 Litchi =2.3.1 ? Which Go version?

ferraript commented 7 years ago

@notsolowki:

  1. I don't want Geo neither
  2. by downgrading the RC there is nothing to lose
  3. I read that those earlier FWs are much better and have less issues than the newer ones
notsolowki commented 7 years ago

Theres no reason to fly in nfz'

ferraript commented 7 years ago

@aka1ceman: RC 1.4.3 AC 1.4.10 Litchi 2.3.1 DJI GO 2.4.3

I edited (and recompiled and installed) my DJI GO by changing maxValue for g_config.flying_limit.max_height_0 to 1900 in flyc_param_infos but there must be some another check or something, because if I change the value in the app to higher than 500, after reopening the menu it is set back to 500 fortunately changing value in Litchi seems to be working fine and much more, when I open DJI GO, the same value is there (until next restart of the AC)

ferraript commented 7 years ago

@notsolowki: last time I checked, there was authorization zone over whole city where I lived, so it was no go but if this map is right, then fine, it looks like they changed it and now there is no zone in my whole country at all :)

notsolowki commented 7 years ago

oh wow, so your whole country is a nfz?

ferraript commented 7 years ago

oh wow, so your whole country is a nfz?

no, sorry, I didn't write it correctly I mean there is no zone at all, like there is no restriction zone, no authorisation zone, ... so I can fly wherever I want to

notsolowki commented 7 years ago

just remember that radar can and probably will pickup your aircraft. especially if your flying high. in the event that an aircraft has a route over where your flying and his radar picks you up they will have to redirect their route and you will probably be arrested. dont think they wont see you. palnes and choppers can come out of nowhere. and the amount of time it take for this drone to land, you better be ready to catch it lol

aka1ceman commented 7 years ago

So Ferraript, what was the final combination of RC Fw, Ac FW, Go, and Litchi ? I'm trying to keep track of what works and what doesn't so we don't keep repeating steps.

I've looked for 1.4.0001 or 1.4 .0005 and can't find. I have .10

ferraript commented 7 years ago

@notsolowki, don't worry ;)

@aka1ceman, I already wrote it

aka1ceman commented 7 years ago

Yes I see that but never heard of 1.4.3. Only 1.4.01, 1.4.05, and 1.4.10

This is what lost me.

notsolowki commented 7 years ago

aka1ceman https://dl.djicdn.com/downloads/phantom_3_4k/P3XW_FW_V01.04.0030.bin

notsolowki commented 7 years ago

you two might have different copters

notsolowki commented 7 years ago

for the rc

C1_FW_V01.04.0030.bin

http://www.gerhard-weinberger.at/phpBB2/viewtopic.php?f=5&t=9

its also right here.. http://download.dji-innovations.com/downloads/RC/C1_FW_V01.04.0030.bin

ferraript commented 7 years ago

Yes I see that but never heard of 1.4.3. Only 1.4.01, 1.4.05, and 1.4.10

either you are not reading properly or you are unfamiliar with RC and AC symbols :) actually, there is RC FW 1.4.3 and AC FWs 1.4.01, 1.4.05 and 1.4.10

aka1ceman commented 7 years ago

My understanding was once we hit 1.4, both AC and RC were in same FW and no longer separate.. Sorry

ferraript commented 7 years ago

aah okay then, I'm glad it's clear now :)

ferraript commented 7 years ago

P3XW_FW_V01.04.0030.bin

watch out, that FW file is for P3 4K