Content from http://www.phantompilots.com/threads/phantom-3-standard-range-mod-lets-do-it-together.80721/page-15#post-840050
To avoid more and more user brick the RC/Drone, I discover a new solution to do this mod:
1) connect RC/Drone
2) ftp to 192.168.1.1
/sbin/djiled.sh
to PC
3) get 4) open it by notepad++ / gedit / vi
telnetd -l /bin/ash &
at line 2, you must add at line2 before the while loop started
5) add djiled.sh
back to RC, make sure file mode = 775 (rwx rwx r_x)
6) put 7) repeat step 3-6 at 192.168.1.2
8) make sure nothing wrong then reboot
by adding telnetd -l /bin/ash
to djiled.sh
, telnet will start when system boot, so we can use telnet to access rc/drone without touching the important file "rcS". If u make anything wrong in djiled.sh
, the wifi still can startup and u can do it again until success (well, that's what I guess, i dont want to try...)
For step 9-14, if your rc/drone are using fcc mode as default, then you can skip it, dont touch the rcS file.
Use my "channel 13 mod" script at post#266, it will do 27dbm mod for you. so rcS remain as DJI original one make no chance to brick !
For more detail about "channel 13 mod", take a look at post#199-200
you can type iw reg get
to check you are in fcc or ce
9) telnet to 192.168.1.2 (yes, patch drone side first)
10) run following command 1 by 1 to patch the rcS, it will make a copy, patch FCC mode, set open channel 1-13 and 27dbm
cp /etc/init.d/rcS /etc/init.d/rcS.bck
sed -i 's/GB/OK/g' /etc/init.d/rcS
echo "iw reg set BO" >>/etc/init.d/rcS
echo "iw dev wlan0 set txpower limit 2700" >>/etc/init.d/rcS
PS: you can vi /etc/init.d/rcS
to edit by yourself too, don't try if you ask what is vi
cat /etc/init.d/rcS
11) make sure only new content is added (no diff installed, so you have to check file by yourself)
ls -ltr /etc/init.d/rcS
12) make sure it have execute mode (rwx rwx r_x)
13) repeat step 10 to 12 @192.168.1.1
14) correct me if any step is wrong or missing, then reboot rc + drone
patch the rcS by telnet at RC/Drone can avoid incorrect EOL format and file changed to non-executable accidentally
in addition, you can use "channel 13 mod" at post#266 (note: it's the file in this gist), just download and save setchan.sh
at /usr/sbin
(192.168.1.1 only) then run, default will auto select best channel from 1 to 13 for you.
You can execute as setchan.sh 13
to force it to use channel 13 (1 to 13)
---------not suggest to auto start, because need to modify rcS file, u can simply telnet to 192.168.1.1 on your phone and run setchan.sh manually ---------
if you want to make setchan.sh autorun when boot, use following command at 192.168.1.1
echo "sleep 30" >>/etc/init.d/rcS
echo "setchan.sh" >>/etc/init.d/rcS
or, if you want to use channel 13 only
echo "sleep 30" >>/etc/init.d/rcS
echo "setchan.sh 13" >>/etc/init.d/rcS