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:
- connect RC/Drone
- ftp to 192.168.1.1
- get
/sbin/djiled.shto PC - open it by notepad++ / gedit / vi
- add
telnetd -l /bin/ash &at line 2, you must add at line2 before the while loop started - put
djiled.shback to RC, make sure file mode = 775 (rwx rwx r_x) - repeat step 3-6 at 192.168.1.2
- 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
- telnet to 192.168.1.2 (yes, patch drone side first)
- 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/rcSmake sure only new content is added (no diff installed, so you have to check file by yourself) -
ls -ltr /etc/init.d/rcSmake sure it have execute mode (rwx rwx r_x) -
repeat step 10 to 12 @192.168.1.1
-
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, 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