Phantom 3 Standard range mod , let's do it together...

Having fun ?

hello bro is there any way you guys can increase control signal power.. because after firmware upgrading to 1.6.80, like lot of other people, i m loosing controlling signal within 40-60m range.. if you guys can help me with this that will be a great help..

Thanks
Dilan
 
I was trying to help him out. With my crap. You must have alot of important problems in your life worrying about one post LOL. Good job. Now I have to get back to real problems.


Sent from my iPhone using PhantomPilots mobile app
 
Here is the script log, I save it at /etc/init.d when test, so pls ignore the path
==============================================
/etc/init.d # ./setchan.sh
Checking Connection with Phantom 3 Standard / 4K . . .
Connection - OK.
Channel 1 - In Use
Channel 2 - In Use
Channel 3 - In Use
Channel 4 - In Use
Channel 5 - In Use
Channel 6 - In Use
Channel 7 - In Use
Channel 8 - In Use
Channel 9 - In Use
Channel 10 - In Use
Channel 11 - In Use
Channel 12 - Not In Use
Set CH to 12
Try To Setting Channel = 12 . . .
Patched channel=12

Checking Connection with Phantom 3 Standard / 4K . . .
Connected . . .
Patching Phantom 3 Standard / 4K at 192.168.1.2 . . .

Entering character mode
Escape character is '^]'.




BusyBox v1.22.1 (2015-06-29 19:28:31 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/ # iw reg get
country US: DFS-FCC
(2402 - 2472 @ 40), (N/A, 30), (N/A)
(5170 - 5250 @ 80), (N/A, 17), (N/A)
(5250 - 5330 @ 80), (N/A, 23), (0 ms), DFS
(5735 - 5835 @ 80), (N/A, 30), (N/A)
(57240 - 63720 @ 2160), (N/A, 40), (N/A)
/ # iw reg set BO
/ # iw reg get
country BO: DFS-JP
(2402 - 2482 @ 40), (N/A, 30), (N/A)
(5735 - 5835 @ 80), (N/A, 30), (N/A)
/ # iw dev wlan0 set txpower limit 2700
/ #
Patching Phantom 3 Standard / 4K - RC . . .

Restarting AP, it may take a moment . . .
Configuration file: /var/run/hostapd-phy0.conf
Using interface wlan0 with hwaddr 60:60:1f:0b:d8:db and ssid "GaryKan-P3"
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED

Checking Final Result at 192.168.1.2 . . .

Entering character mode
Escape character is '^]'.




BusyBox v1.22.1 (2015-06-29 19:28:31 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/ # iwinfo
wlan0 ESSID: "GaryKan-P3"
Access Point: 60:60:1F:0B:D8:DB
Mode: Client Channel: 12 (2.467 GHz)
Tx-Power: 27 dBm Link Quality: 70/70
Signal: -37 dBm Noise: -95 dBm
Bit Rate: 130.0 MBit/s
Encryption: WPA2 PSK (CCMP)
Type: nl80211 HW Mode(s): 802.11abgn
Hardware: unknown [Generic MAC80211]
TX power offset: unknown
Frequency offset: unknown
Supports VAPs: yes PHY name: phy0

/ #
Checking Final Result at RC . . .
wlan0 ESSID: "GaryKan-P3"
Access Point: 60:60:1F:0B:D8:DB
Mode: Master Channel: 12 (2.467 GHz)
Tx-Power: 27 dBm Link Quality: 65/70
Signal: -45 dBm Noise: -95 dBm
Bit Rate: 65.0 MBit/s
Encryption: WPA2 PSK (CCMP)
Type: nl80211 HW Mode(s): 802.11abgn
Hardware: unknown [Generic MAC80211]
TX power offset: unknown
Frequency offset: unknown
Supports VAPs: yes PHY name: phy0

wlan0.sta1 ESSID: unknown
Access Point: 00:00:00:00:00:00
Mode: Master (VLAN) Channel: 12 (2.467 GHz)
Tx-Power: 27 dBm Link Quality: 70/70
Signal: -39 dBm Noise: -95 dBm
Bit Rate: 78.0 MBit/s
Encryption: none
Type: nl80211 HW Mode(s): 802.11abgn
Hardware: unknown [Generic MAC80211]
TX power offset: unknown
Frequency offset: unknown
Supports VAPs: yes PHY name: phy0

Patch Completed, Enjoy.
/etc/init.d #

========================================


Log for execute with INCORRECT User argument input
===========================================
/etc/init.d # ./setchan.sh 555
Checking Connection with Phantom 3 Standard / 4K . . .
Connection - OK.
User argument = 555
Input Error : Channel must be 1 to 13 !!
/etc/init.d #

===============================


Log for execute with User argument input
=======================================
/etc/init.d # ./setchan.sh 13
Checking Connection with Phantom 3 Standard / 4K . . .
Connection - OK.
User argument = 13
Try To Setting Channel = 13 . . .
Patched channel=13

Checking Connection with Phantom 3 Standard / 4K . . .
Connected . . .
Patching Phantom 3 Standard / 4K at 192.168.1.2 . . .

Entering character mode
Escape character is '^]'.




BusyBox v1.22.1 (2015-06-29 19:28:31 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/ # iw reg get
country US: DFS-FCC
(2402 - 2472 @ 40), (N/A, 30), (N/A)
(5170 - 5250 @ 80), (N/A, 17), (N/A)
(5250 - 5330 @ 80), (N/A, 23), (0 ms), DFS
(5735 - 5835 @ 80), (N/A, 30), (N/A)
(57240 - 63720 @ 2160), (N/A, 40), (N/A)
/ # iw reg set BO
/ # iw reg get
country BO: DFS-JP
(2402 - 2482 @ 40), (N/A, 30), (N/A)
(5735 - 5835 @ 80), (N/A, 30), (N/A)
/ # iw dev wlan0 set txpower limit 2700
/ #
Patching Phantom 3 Standard / 4K - RC . . .

Restarting AP, it may take a moment . . .
Configuration file: /var/run/hostapd-phy0.conf
Using interface wlan0 with hwaddr 60:60:1f:0b:d8:db and ssid "GaryKan-P3"
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED

Checking Final Result at 192.168.1.2 . . .

Entering character mode
Escape character is '^]'.




BusyBox v1.22.1 (2015-06-29 19:28:31 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/ # iwinfo
wlan0 ESSID: "GaryKan-P3"
Access Point: 60:60:1F:0B:D8:DB
Mode: Client Channel: 13 (2.472 GHz)
Tx-Power: 27 dBm Link Quality: 70/70
Signal: -33 dBm Noise: -95 dBm
Bit Rate: 57.8 MBit/s
Encryption: WPA2 PSK (CCMP)
Type: nl80211 HW Mode(s): 802.11abgn
Hardware: unknown [Generic MAC80211]
TX power offset: unknown
Frequency offset: unknown
Supports VAPs: yes PHY name: phy0

/ #
Checking Final Result at RC . . .
wlan0 ESSID: "GaryKan-P3"
Access Point: 60:60:1F:0B:D8:DB
Mode: Master Channel: 13 (2.472 GHz)
Tx-Power: 27 dBm Link Quality: 70/70
Signal: -40 dBm Noise: -95 dBm
Bit Rate: 60.6 MBit/s
Encryption: WPA2 PSK (CCMP)
Type: nl80211 HW Mode(s): 802.11abgn
Hardware: unknown [Generic MAC80211]
TX power offset: unknown
Frequency offset: unknown
Supports VAPs: yes PHY name: phy0

wlan0.sta2 ESSID: unknown
Access Point: 00:00:00:00:00:00
Mode: Master (VLAN) Channel: 13 (2.472 GHz)
Tx-Power: 27 dBm Link Quality: 70/70
Signal: -31 dBm Noise: -95 dBm
Bit Rate: 78.0 MBit/s
Encryption: none
Type: nl80211 HW Mode(s): 802.11abgn
Hardware: unknown [Generic MAC80211]
TX power offset: unknown
Frequency offset: unknown
Supports VAPs: yes PHY name: phy0

Patch Completed, Enjoy.
/etc/init.d #
==================================================================

Lovely job ! +1
 
Was looking forward to trying this but my Macbook won't connect to the Phantom3XXXX wifi connection. Anyone else had any luck?
 
Im actually going to test out that script now. I wont make it auto start until I know my other devices, such as phone and laptop can connect on channel 13 here in the US.
 
Is the benefit of channel 13 just due to less interference? That script seems like a lot of bother just to change the channel. Although if you were in a congested area with channel 13 free then I suppose it makes sense.
 
I was trying to help him out. With my crap. You must have alot of important problems in your life worrying about one post LOL. Good job. Now I have to get back to real problems.


Sent from my iPhone using PhantomPilots mobile app

Thanks for help. Do it in private message next time.
 
Is the benefit of channel 13 just due to less interference? That script seems like a lot of bother just to change the channel. Although if you were in a congested area with channel 13 free then I suppose it makes sense.

Yes, it should be less interference at channel 1 or 13, I live in urban area which my phantom found more than 20 SSID when I test the script at home, most of them are channel 1 to 11, so I want to find the best channel for every flight
 
I use LinSSID software.
Shows a nice graph.

1. Networks in my home without phantom on

linssid1.png





2. With remote on. I have it on ch 13 since is the cleanest.

linssid2.png


Signal strenght goes beyond scale. Beside 27dBm I just installed patch antennas I received this morning.
** ERROR is not an error. It's my own home wifi ;)
 
Thank for your efforts. I tried to change the mode to FCC. I did check the message that was changed US without GPS signal(indoor) But, it was returned back to GB(CE mode) when my drone received GPS signal and recorded home point.
Confirm. I also changed to FCC (check: 27 dBm via telnet, drone and remote) but after received GPS signal and recorded home point (Poland) it again back to 17dBm (CE) :(
What we can do?
 
Here is my script for Auto scan best channel from 1 to 13 (set unused channel), it will patch RC and drone as same time, then show wifi detail result after patch completed.
I don't touch DJI original /sbin/chansel because it is a binary file and I don't know what it done
so let's the original boot process complete, then execute custom script to avoid bricke the RC

- How to install
1) save script as "selchan.sh" at /sbin and chmod 775
2) enable telnet.d in rcS file at rc and drone
3) Patch force FCC mode if necessary
4) turn on rc and drone
5) telnet 192.168.1.1 and execute selchan.sh
6) check onscreen result, if result ok with no error, add "sleep 30" and "selchan.sh" in RC rcS file at last line to make it auto run when boot (sleep 30 for avoid script run b4 drone connected to RC)
7) user also can execute with argument to set channel number manually, eg : selchan.sh 13

PS: if you want to disbled telnet.d after make it auto execute when RC boot, You can add "iw reg set BO" in rcS at both side and remove "#patch drone side to BO" inside the script

PS2: Wifi channel can be change during in flight ! execute the script by android telnet program, and video downlink stream in DJI GO will be resume after network restart completed !!

===========================================================================
#!/bin/sh
#Auto scan and set unused Wifi channel for Phantom 3 Standard / 4K
#Author : Gary Kan
#Date : 14/06/2016
#Version 1.0

clear

DRONE="192.168.1.2"

###Make Sure network is ready and Drone side is online
echo "Checking Connection with Phantom 3 Standard / 4K . . ."
ping -c 1 -w 30 $DRONE &> /dev/null
if [ $? -ne 0 ]
then
echo "ERROR : Phantom 3 Standard / 4K at $DRONE is unreachable"
exit 1
else
echo "Connection - OK."
fi


###Check unused channel or user argument
if [ -z "$1" ]
then
for i in 1 2 3 4 5 6 7 8 9 10 11 12 13
do
iw dev wlan0 scan | grep "DS Parameter set:" | awk '{FS=" "} {print $5}' | sort -n | grep -x $i &>/dev/null
if [ $? -ne 0 ]
then
echo "Channel $i - Not In Use"
echo "Set CH to $i"
CH=$i
break
else
echo "Channel $i - In Use"
if [ $i = 13 ]
then
CH=$i
fi
fi
done
else
echo "User argument = $1"
case $1 in
1|2|3|4|5|6|7|8|9|10|11|12|13)
CH=$1
;;
*)
echo "Input Error : Channel must be 1 to 13 !!"
exit 1
;;
esac
fi


###Setup hostapd-phy0.conf with target channel number
echo "Trying To Set Channel = $CH . . ."
sed -i "/channel=/c\channel=$CH" /tmp/run/hostapd-phy0.conf
echo "Patched `grep "channel" /tmp/run/hostapd-phy0.conf`"
echo " "


###patch drone side to BO, make sure ready for CH12,13, telnet.d must be on in rcS, can be remove if user set country = BO in rcS at drone side
echo "Checking Connection with Phantom 3 Standard / 4K . . ."
ping -c 1 -w 30 $DRONE &> /dev/null
if [ $? -ne 0 ]
then
echo "ERROR : Phantom 3 Standard / 4K at $DRONE is unreachable"
exit 1
else
echo "Connected . . ."
echo "Patching Phantom 3 Standard / 4K at $DRONE . . ."
{ sleep 1;echo "iw reg get";echo "iw reg set BO";echo "iw reg get";echo "iw dev wlan0 set txpower limit 2700";sleep 1;} | telnet $DRONE
fi


###Patch RC Side and restart network
echo ""
echo "Patching Phantom 3 Standard / 4K - RC . . ."
iw reg set BO
iw dev wlan0 set txpower limit 2700
sleep 1
echo ""
echo "Restarting AP, it may take a moment . . ."
kill -9 `cat /tmp/run/wifi-phy0.pid`
sleep 1
/usr/sbin/hostapd -P /var/run/wifi-phy0.pid -B /var/run/hostapd-phy0.conf
sleep 1


###Final Checking, can be remove
echo ""
echo "Checking Final Result at $DRONE . . ."
ping -c 1 -w 30 $DRONE &> /dev/null
if [ $? -ne 0 ]
then
echo "ERROR : Phantom 3 Standard / 4K at $DRONE is unreachable"
exit 1
else
{ sleep 1;echo "iwinfo";sleep 1;} | telnet $DRONE
echo ""
echo "Checking Final Result at RC . . ."
iwinfo
echo "Patch Completed, Enjoy."
fi

SingLag

Can you tell me why the script inst running for me?

Nevermind, I got past that by telling it to use sh.

Now I am getting this...

/sbin # sh selchan.sh
: not found line 6:
: not found line 7: clear
: not found line 8:
: not found line 10:
Checking Connection with Phantom 3 Standard / 4K . . .
selchan.sh: line 27: syntax error: unexpected word (expecting "do")
/sbin #
 

Attachments

  • Untitled.png
    Untitled.png
    17.5 KB · Views: 402
Last edited:
if you save the script at /sbin
no need to use ./, just type setchan.sh (your file name selchan.sh)


Yeah that didnt work either. I had to force it with sh. But now I am getting this.

/sbin # sh selchan.sh
: not found line 6:
: not found line 7: clear
: not found line 8:
: not found line 10:
Checking Connection with Phantom 3 Standard / 4K . . .
selchan.sh: line 27: syntax error: unexpected word (expecting "do")
/sbin #
 
if you save the script at /sbin
no need to use ./, just type setchan.sh (your file name selchan.sh)

Here is a full list of what I did. You can see my permissions as well.


/sbin # ls
apsrv devstatus hotplug-call ifup kmodloader mdev netifd reload_config start-stop-daemon ubusd vconfig
askfirst djiled.sh hwclock init led.sh mkswap pivot_root route switch_root uci wget2nand
chansel dwifi ifconfig jffs2mark logd mount_root poweroff selchan.sh sysctl udevtrigger wifi
clisrv firstboot ifdown jffs2reset logread mtd procd snapshot syslogd udhcpc
devmem halt ifstatus klogd macset nart.out reboot snapshot_tool sysupgrade validate_data

/sbin # ls -l selchan.sh
-rwxrwxr-x 1 root root 2540 Aug 20 03:46 selchan.sh

/sbin # selchan.sh

/bin/ash: selchan.sh: not found

/sbin # sh selchan.sh
: not found line 6:
: not found line 7: clear
: not found line 8:
: not found line 10:
Checking Connection with Phantom 3 Standard / 4K . . .
selchan.sh: line 27: syntax error: unexpected word (expecting "do")

/sbin #
 
Yeah that didnt work either. I had to force it with sh. But now I am getting this.

/sbin # sh selchan.sh
: not found line 6:
: not found line 7: clear
: not found line 8:
: not found line 10:
Checking Connection with Phantom 3 Standard / 4K . . .
selchan.sh: line 27: syntax error: unexpected word (expecting "do")
/sbin #

pls double check the file content, how come you can't execute a simple "clear" and line7
or try to save it at /etc/init.d and execute by ./
 
Last edited:
Managed to attempt this but controller now won't connect to drone - ****. Any ideas?

I edited the rcs file as per the instructions and uploaded the file to remote and drone.
 

Members online

No members online now.

Forum statistics

Threads
143,066
Messages
1,467,359
Members
104,936
Latest member
hirehackers