brett8883 / DJI_Super-Patcher

Liberate DJI drones. Height limit, NFZ limit, enable Galileo Satellites + more
402 stars 111 forks source link

Jkson fcc mod question #13

Open brett8883 opened 5 years ago

brett8883 commented 5 years ago

@brett8883 Can I Super-Patch my bird AGAIN without causing a problem?

During the first patch JKSON_FCC_MOD offered:

1 - Auto Frequency (Default) 2 - Force Frequency to 2.3G 3 - Force Frequency to 2.5G 4 - Delete this Mod

Since I did not know exactly what each option did exactly, I followed the video and picked 3. Can someone please briefly explain what each does and why I would want/not want it?

Then POWER:

1 - Default Power 2 - Default > FCC > Boost > Reset. Loop Selector by Remote Controller 3 - Fixed FCC 4 - Fixed FCC & Boost

Again, since I did not know what each option did exactly, I followed the video and picked 4 Now I read that option 4 could cause OVER HEATING via the RF Chips. Can someone please briefly explain what each does and why I would want/not want it?

This will help me and others reading this decide what they want to do.

Thanks!

_Originally posted by @mtebbens in https://github.com/brett8883/DJI_Super-Patcher/issues/12#issuecomment-516623998_

mosheas commented 5 years ago

Boris I still don't understand how it works for you, and it doesn't work for me, what's the difference in the process?

BorisPlintovic commented 5 years ago
  1. Drone an rc is in CE (13ch)
  2. Turn of RC and apk
  3. Conect the drone to PC and aply fcc mod
  4. Restart drone, turn on RC and wait for green LED
  5. Conect OTG to phone, to rc (or with wifi its same)
  6. When the apk start, take me popup, i click to Cancel and Go
  7. 11ch, drone is in FCC video: https://drive.google.com/open?id=1beBuEjK5Kl2jOB0mpV9lsUaKSPlvXpfN
mosheas commented 5 years ago

Well, it does work for you, I'll try again later, do you think the boost works for you too?

BorisPlintovic commented 5 years ago

maybe it's step by step. first pair the drone and controller and apk last

mosheas commented 5 years ago

HI Boris.. I did exactly according to your video, and it doesn't work for me, .. Some questions ... Do you use the manufacturer's official firmware(900) ? Do you think my problem it is related to the geographical location? Because in my country it's only allowed to fly at a 2.4ghz frequency limited by the dji standard CE.. Dji closes a frequency of 5.8ghz, is it possible that it has an effect? so maybe we should change the patch?

Weirdoz commented 5 years ago

Hi Mosheas The most issues are based in the wrong windows version. I tried a lot, and the only one who is always working without any problems is a clean win10pro, 64bit. Any other like win10/32, win7/64 or 32bit are not working really good. So try it on the right win version, believe me it works.

mosheas commented 5 years ago

I definitely use with the windows 10Pro /64bit, I have no problem with the process, the process is well executed, the problem that it doesn't work for me.

BorisPlintovic commented 5 years ago

HI Boris.. I did exactly according to your video, and it doesn't work for me, .. Some questions ... Do you use the manufacturer's official firmware(900) ? Do you think my problem it is related to the geographical location? Because in my country it's only allowed to fly at a 2.4ghz frequency limited by the dji standard CE.. Dji closes a frequency of 5.8ghz, is it possible that it has an effect? so maybe we should change the patch?

In Slovakia we can use 2.4 and 5.8. I fly 2.4 because of having better penetration in terrain. I tested on the official 0900, 1000 and 0900FC-patcher, making me work all versions. Do you think there is a special version of FW for IL? You can try flash official fw using DUMLDore, first download fw via DDD ...

BorisPlintovic commented 5 years ago

Today get feedback from one user, his apk still display 13ch but he fly far >1200m, that means fcc to be active.

brett8883 commented 5 years ago

Hey @BorisPlintovic. Was it by design that you have the sleep command as part of the loop?

On standard jkson fcc the check1860.sh is:

!/system/bin/sh

/system/bin/check_1860_state.sh& busybox ping -c 1 -w 1800 192.168.41.2 sleep 5 while : do dji_mb_ctrl -S test -R local -g 9 -s 9 -c 27 00024800FFFF0200000000 dji_mb_ctrl -S test -R local -g 9 -s 9 -c 3c break done`

Between the "while" and "break" is a loop. Notice that the sleep 5 is outside the loop

Your script is:

!/system/bin/sh

/system/bin/check_1860_state.sh& while : do dji_mb_ctrl -S test -R local -g 9 -s 9 -c 27 00024800FFFF0200000000 sleep 10 iw phy phy0 set txpower limit 3500 break done

I notice here the sleep 10 is inside the loop.

Now I dont know if that makes any difference in the first place but just curious if that was on purpose.

The dji_mb_ctrl -S test -R local -g 9 -s 9 -c 27 00024800FFFF0200000000 is what get looped I believe

BorisPlintovic commented 5 years ago

Command sleep make nothing, only wait Sleep 10 = wait 10s and go to next

BorisPlintovic commented 5 years ago

I tried without additional commands and also work

!/system/bin/sh

/system/bin/check_1860_state.sh& iw reg set US sleep 10 iw phy phy0 set txpower limit 3500

mosheas commented 5 years ago

I tried without additional commands and also work

!/system/bin/sh

/system/bin/check_1860_state.sh& iw reg set US sleep 10 iw phy phy0 set txpower limit 3500

Can you please putting this command in Batch file?, I will try it.

ausdim commented 5 years ago

Open the batch file with notepad make the changes and save it.

Downlpad and use notepad++ to make your life easy

No need to reupload all the thinks.

Thanks

mosheas commented 5 years ago

Open the batch file with notepad make the changes and save it.

I use notepad++

No need to reupload all the thinks.

Thanks You mean I will create a new batch file and just put the commands below?

!/system/bin/sh

/system/bin/check_1860_state.sh& iw reg set US sleep 10 iw phy phy0 set txpower limit 3500

ausdim commented 5 years ago

Better edit the allready downloaded .bat file. Right click on the file and open it with notepad++. Thanks

mosheas commented 5 years ago

BorisPlintovic I only edited this part, is it correct?

:EndFreqSpark echo( echo 1 - Default echo 2 - Force FCC echo 3 - Force FCC+TX POWER echo( choice /C 123 /D 1 /T 99 /M "Please select" If Errorlevel 3 echo #!/system/bin/sh > check_1860_state.sh If Errorlevel 3 echo /system/bin/check_1860_state.sh^& >> check_1860_state.sh If Errorlevel 3 echo iw reg set US >> check_1860_state.sh If Errorlevel 3 echo sleep 10 >> check_1860_state.sh If Errorlevel 3 echo iw phy phy0 set txpower limit 3500 >> check_1860_state.sh If Errorlevel 3 echo break >> check_1860_state.sh If Errorlevel 3 Goto EndModSpark If Errorlevel 2 echo #!/system/bin/sh > check_1860_state.sh If Errorlevel 2 echo /system/bin/check_1860_state.sh^& >> check_1860_state.sh If Errorlevel 2 echo iw reg set US >> check_1860_state.sh If Errorlevel 2 echo break >> check_1860_state.sh If Errorlevel 2 Goto EndModSpark If Errorlevel 1 echo break >> check_1860_state.sh

brett8883 commented 5 years ago

@BorisPlintovic’s Spark FCC + boost mod has been added to SP 2.0. Thanks Boris!

Olgmo commented 5 years ago

Would it be possible to use only "boost" in CE mode, instead of FCC+boost? Will that work?

ausdim commented 5 years ago

Hello again and thanks for v2 Is there any sign that JKson FCC works on Spark? Because do all the thinks on more time again but stay at 13 channels and didn't get he wifi Ok/Cancel popup. Flashed two times 0900 firmware via Super-Patcher 2 and after runs all the thinks included JKson FCC+BOOST.

Thanks

mosheas commented 5 years ago

The same, fcc doesn't work for me either.

ausdim commented 5 years ago

If JKson mod for spark isnt working why is added to super-patcher 2?

Thanks

brett8883 commented 5 years ago

It has worked for every person I’ve asked to test it. It does work.

ausdim commented 5 years ago

It doesnt work for me and for mosheas. I describe what i do. Vanila firmware flshing and JKson after all and doesnt work. So it doesnt work for me.

Also please tell your beta testers to confirm that was on ffc before make use the JKson.

If the procedure have any mistery step please describe it at readme otherwise i follow everything and it does not work.

Thanks

mosheas commented 5 years ago

I think the first version of @BorisPlintovicoes used, is what I wrote (edit) above, I asked Boris to confirm it if is true? , and then i can try to run it.

BorisPlintovic commented 5 years ago

TXPOWER (boost) work 100%. The problem seems to be FCC. 8 out of 10 people work. I think the problem may be apk. This is the code I use: https://drive.google.com/open?id=1xV1pt8PrIK60BvDAfiC4ViWfAnP640mr

ausdim commented 5 years ago

Is on that link anything new?

Also what apk you use?

Sorry if you already answer to that before but i think you wrote 4.3.20 unmoded apk.

Thanks

BorisPlintovic commented 5 years ago

!/system/bin/sh

/system/bin/check_1860_state.sh& iw reg set US

or

!/system/bin/sh

/system/bin/check_1860_state.sh& iw reg set US sleep 10 iw phy phy0 set txpower limit 3500

racecat007 commented 5 years ago

FCC mod works for me - thx for the mod :-) Question about the FCC Boost: is there a risk of damaging the RC? (overheating) Mavic controller has a ventilation RC from Spark not

BorisPlintovic commented 5 years ago

FCC mod works for me - thx for the mod :-) Question about the FCC Boost: is there a risk of damaging the RC? (overheating) Mavic controller has a ventilation RC from Spark not

boost on Spark runing only on AC and AC have fan.

mosheas commented 5 years ago

FCC mod works for me - thx for the mod :-) Question about the FCC Boost: is there a risk of damaging the RC? (overheating) Mavic controller has a ventilation RC from Spark not

Did you got FCC Boost by doing Super-Patcher 2.0.?

racecat007 commented 5 years ago

for Spark I used this tool from Boris: https://github.com/brett8883/DJI_Super-Patcher/issues/13#issuecomment-526941576 for Mavic "super-patcher" i will delete the mod and try with Super Patcher

racecat007 commented 5 years ago

for Spark it´s only working for me with the tool from Boris. with Super Patcher i can see 13 Channels in the App - not working i think

webvan1999 commented 5 years ago

Thanks, that's helpful. Just to be sure, to run Boris' tool you just click on "fcc.bat" ?

racecat007 commented 5 years ago

Thanks, that's helpful. Just to be sure, to run Boris' tool you just click on "fcc.bat" ? yes

brett8883 commented 5 years ago

I fixed a bug in the FCC mod script for Spark in 2.0.1. Setlocal EnableDelayedExpansion caused the "!" in the shebang for the check_1860.sh to be ignored. Super-Patcher was printing the shebang as #/system/bin/sh when it should have been #!/system/bin/sh

If this was actually causing an issue is unclear. It appears the script was working for most regardless but is an explanation for why it may not have been working.

Live and learn

misterpeppery commented 5 years ago

I've tried the tips above and I can't seem to get the FCC boost mod to work. It's tough to tell, since I am already in an FCC zone so all I can go by is the range I get. I don't seem to get any better range than before and my video link seems just as bad as it was before the mod, so I'm assuming I'm in the 20% fail category. Everything else worked great when patching to 2.0.1 using win10 home. I also have win7 Pro but I can't find the correct ADB drivers. Has anything been learned in the last 3 weeks about why this mod fails for some people? Is there a way to connect the bird to the computer to verify that the mod has worked or not so that I'm not just going by perceived range?

Edit: It looks like I have been able to get it to work. The only thing I did different was to also enable stealth mode when flashing. I don't know if there is any difference in the firmware code, or if just flashing it the 5th time made the difference, but it appears to be working for me now.